base

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ModelConfig  *latest.ModelConfig
	ModelOptions options.ModelOptions
}

Config is a common base configuration shared by all provider clients. It can be embedded in provider-specific Client structs to avoid code duplication.

func (*Config) ID

func (c *Config) ID() string

ID returns the provider and model ID in the format "provider/model"

func (*Config) MaxTokens

func (c *Config) MaxTokens() int

MaxTokens returns the maximum tokens configured for this provider's model

func (*Config) Options

func (c *Config) Options() options.ModelOptions

Options returns the effective model options used by this provider's model

Jump to

Keyboard shortcuts

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