openai

package
v0.0.0-...-7354109 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderSet = wire.NewSet(
		NewConfig,
		NewOpenAIClient,
	)
)

Functions

func NewOpenAIClient

func NewOpenAIClient(config Config) gpt3.Client

Types

type Config

type Config struct {
	APIKey string `yaml:"api_key"`
}

func NewConfig

func NewConfig(provider config.Provider) (config Config, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL