options

package
v1.30.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 WithGateway(gateway string) Opt

func WithGeneratingTitle

func WithGeneratingTitle() Opt

func WithMaxTokens

func WithMaxTokens(maxTokens int64) Opt

func WithProviders

func WithProviders(providers map[string]latest.ProviderConfig) Opt

func WithStructuredOutput

func WithStructuredOutput(structuredOutput *latest.StructuredOutput) Opt

func WithThinking

func WithThinking(enabled bool) Opt

Jump to

Keyboard shortcuts

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