Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListModels ¶
func SetOpenAIBaseURL ¶
func SetOpenAIBaseURL(url string)
SetOpenAIBaseURL overrides the OpenAI API base URL.
func SetOpenAIHTTPClientFactory ¶
SetOpenAIHTTPClientFactory overrides the HTTP client factory used for OpenAI list models.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model adapts OpenAI's chat completions to the ADK model.LLM interface.
func NewOpenAIModel ¶
NewOpenAIModel creates a model.LLM adapter backed by OpenAI chat completions.
func NewOpenAIModelWithClient ¶
NewOpenAIModelWithClient creates a model.LLM adapter with a custom HTTP client.
func (*Model) GenerateContent ¶
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
func WithClient ¶
func WithClient(opt *http.Client) OptOptionsSetter
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions( apiKey string, model string, options ...OptOptionsSetter, ) Options
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProviderWithClient ¶
NewProviderWithClient creates an OpenAI provider with a custom HTTP client.
func (*Provider) GenerateCommand ¶
Click to show internal directories.
Click to hide internal directories.