Documentation
¶
Overview ¶
Package openai adapts OpenAI-compatible Chat Completions APIs to enno.Provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIKey string
BaseURL string
Model string
// MaxHTTPRetries overrides the SDK HTTP retry count when positive (option.WithMaxRetries).
// Zero selects defaultHTTPMaxRetries. The SDK retries 429, 5xx, timeouts, and connection errors.
MaxHTTPRetries int
// HTTPProxy is an optional proxy URL (http(s):// or socks5://). Empty uses SDK default (environment proxy vars still apply).
HTTPProxy string
}
Click to show internal directories.
Click to hide internal directories.