Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnthropicOptions ¶
type AnthropicOptions struct { *schema.CallbackOptions // Model name to use. ModelName string // Denotes the number of tokens to predict per generation. MaxTokens int }
type OpenAIOptions ¶
type OpenAIOptions struct { *schema.CallbackOptions // Model name to use. ModelName string // Sampling temperature to use. Temperatur float32 // The maximum number of tokens to generate in the completion. // -1 returns as many tokens as possible given the prompt and //the models maximal context size. MaxTokens int // Total probability mass of tokens to consider at each step. TopP float32 // Penalizes repeated tokens. PresencePenalty float32 // Penalizes repeated tokens according to frequency. FrequencyPenalty float32 // How many completions to generate for each prompt. N int // Batch size to use when passing multiple documents to generate. BatchSize int }
Click to show internal directories.
Click to hide internal directories.