Documentation
¶
Overview ¶
Package openai adapts the official OpenAI Go SDK to SuperCode's Provider interface. It uses Chat Completions because that protocol is implemented by OpenAI and most OpenAI-compatible services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingAPIKey = errors.New("OPENAI_API_KEY is required")
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements provider.Provider with the OpenAI Chat Completions API.
func New ¶
New creates an OpenAI-compatible provider. The API key is intentionally supplied by the caller so secret loading stays outside the adapter.
Click to show internal directories.
Click to hide internal directories.