options

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 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 added in v1.9.21

func (c *ModelOptions) GeneratingTitle() bool

func (*ModelOptions) MaxTokens added in v1.9.24

func (c *ModelOptions) MaxTokens() int64

func (*ModelOptions) StructuredOutput added in v1.7.1

func (c *ModelOptions) StructuredOutput() *latest.StructuredOutput

type Opt

type Opt func(*ModelOptions)

func FromModelOptions added in v1.7.1

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 added in v1.9.21

func WithGeneratingTitle() Opt

func WithMaxTokens added in v1.9.24

func WithMaxTokens(maxTokens int64) Opt

func WithStructuredOutput added in v1.7.1

func WithStructuredOutput(structuredOutput *latest.StructuredOutput) Opt

Jump to

Keyboard shortcuts

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