Documentation ¶
Index ¶
Constants ¶
View Source
const OpenAiChatSlug = "openai-chat"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParameterLayer ¶
type ParameterLayer struct {
*layers.ParameterLayerImpl `yaml:",inline"`
}
func NewParameterLayer ¶
func NewParameterLayer(options ...layers.ParameterLayerOptions) (*ParameterLayer, error)
type Settings ¶
type Settings struct { // How many choice to create for each prompt N *int `yaml:"n" glazed.parameter:"openai-n"` // PresencePenalty to use PresencePenalty *float64 `yaml:"presence_penalty,omitempty" glazed.parameter:"openai-presence-penalty"` // FrequencyPenalty to use FrequencyPenalty *float64 `yaml:"frequency_penalty,omitempty" glazed.parameter:"openai-frequency-penalty"` // LogitBias to use // TODO(manuel, 2023-03-28) Properly load logit bias // See https://github.com/go-go-golems/geppetto/issues/48 LogitBias map[string]string `yaml:"logit_bias,omitempty" glazed.parameter:"openai-logit-bias"` BaseURL *string `yaml:"base_url,omitempty" glazed.parameter:"openai-base-url"` APIKey *string `yaml:"api_key,omitempty" glazed.parameter:"openai-api-key"` }
func NewSettings ¶
func NewSettings() *Settings
Click to show internal directories.
Click to hide internal directories.