Documentation
¶
Index ¶
- type ModelOptions
- func (c *ModelOptions) Gateway() string
- func (c *ModelOptions) GeneratingTitle() bool
- func (c *ModelOptions) MaxTokens() int64
- func (c *ModelOptions) Providers() map[string]latest.ProviderConfig
- func (c *ModelOptions) StructuredOutput() *latest.StructuredOutput
- func (c *ModelOptions) Thinking() *bool
- type Opt
- func FromModelOptions(m ModelOptions) []Opt
- func WithGateway(gateway string) Opt
- func WithGeneratingTitle() Opt
- func WithMaxTokens(maxTokens int64) Opt
- func WithProviders(providers map[string]latest.ProviderConfig) Opt
- func WithStructuredOutput(structuredOutput *latest.StructuredOutput) Opt
- func WithThinking(enabled bool) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelOptions ¶
type ModelOptions struct {
// contains filtered or unexported fields
}
func (*ModelOptions) Gateway ¶
func (c *ModelOptions) Gateway() string
func (*ModelOptions) GeneratingTitle ¶
func (c *ModelOptions) GeneratingTitle() bool
func (*ModelOptions) MaxTokens ¶
func (c *ModelOptions) MaxTokens() int64
func (*ModelOptions) Providers ¶
func (c *ModelOptions) Providers() map[string]latest.ProviderConfig
func (*ModelOptions) StructuredOutput ¶
func (c *ModelOptions) StructuredOutput() *latest.StructuredOutput
func (*ModelOptions) Thinking ¶
func (c *ModelOptions) Thinking() *bool
type Opt ¶
type Opt func(*ModelOptions)
func FromModelOptions ¶
func FromModelOptions(m ModelOptions) []Opt
FromModelOptions converts a concrete ModelOptions value into a slice of Opt configuration functions. Later Opts override earlier ones when applied.
func WithGateway ¶
func WithGeneratingTitle ¶
func WithGeneratingTitle() Opt
func WithMaxTokens ¶
func WithProviders ¶
func WithProviders(providers map[string]latest.ProviderConfig) Opt
func WithStructuredOutput ¶
func WithStructuredOutput(structuredOutput *latest.StructuredOutput) Opt
func WithThinking ¶
Click to show internal directories.
Click to hide internal directories.