openai

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.0

type Config struct {
	APIKey string `mapstructure:"apiKey"`
}

func (Config) Configure added in v0.2.0

func (c Config) Configure() (any, error)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(filepath string) (*Provider, error)

NewProvider creates a new OpenAI provider using the configuration file

func (*Provider) GetCommitMessages added in v0.2.1

func (p *Provider) GetCommitMessages(diff string, n int) ([]string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳