Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageResponse ¶ added in v1.8.5
type MessageUsage ¶ added in v1.8.5
type Request ¶
type Request struct {
Prompt string `json:"prompt,omitempty"`
System string `json:"system,omitempty"`
Messages []*Message `json:"messages,omitempty"`
MaxTokensToSample int `json:"max_tokens_to_sample,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
TopP float64 `json:"top_p,omitempty"`
TopK int `json:"top_k,omitempty"`
StopSequences []string `json:"stop_sequences,omitempty"`
AnthropicVersion string `json:"anthropic_version,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.