Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultOpenAIModel = "gpt-3.5-turbo" DefaultOpenAITemperature = 0.0 DefaultOpenAIMaxTokens = defaultMaxTokens[DefaultOpenAIModel] DefaultOpenAIFrequencyPenalty = 0.0 DefaultOpenAIPresencePenalty = 0.0 DefaultOpenAITopP = 1.0 )
Functions ¶
This section is empty.
Types ¶
type ClassSettings ¶ added in v1.18.4
type ClassSettings interface { IsLegacy() bool Model() string MaxTokens() float64 Temperature() float64 FrequencyPenalty() float64 PresencePenalty() float64 TopP() float64 ResourceName() string DeploymentID() string IsAzure() bool GetMaxTokensForModel(model string) float64 Validate(class *models.Class) error }
func NewClassSettings ¶
func NewClassSettings(cfg moduletools.ClassConfig) ClassSettings
Click to show internal directories.
Click to hide internal directories.