config

package
v1.36.22 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDeepSeekModel            = "deepseek-chat"
	DefaultDeepSeekBaseURL          = "https://api.deepseek.com"
	DefaultDeepSeekFrequencyPenalty = 0.0
	DefaultDeepSeekPresencePenalty  = 0.0
	DefaultDeepSeekTopP             = 1.0
)

Functions

func GetMaxTokensForModel

func GetMaxTokensForModel(model string) *float64

Types

type ClassSettings

type ClassSettings interface {
	Model() string
	MaxTokens() *float64
	Temperature() *float64
	FrequencyPenalty() float64
	PresencePenalty() float64
	TopP() float64
	BaseURL() string
	Stop() []string
	Validate(class *models.Class) error
}

func NewClassSettings

func NewClassSettings(cfg moduletools.ClassConfig) ClassSettings

Jump to

Keyboard shortcuts

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