Documentation ¶
Index ¶
Constants ¶
View Source
const ANTHROPIC_BETA = "tools-2024-04-04"
View Source
const ANTHROPIC_VERSION = "2023-06-01"
View Source
const MODULE_NAME = "claude"
View Source
const URL = "https://api.anthropic.com"
Variables ¶
View Source
var ModelsList = map[string]*Model{
"opus": {
Name: "claude-3-opus-20240229",
MaxOutputTokens: 4096,
},
"sonnet": {
Name: "claude-3-sonnet-20240229",
MaxOutputTokens: 4096,
},
"haiku": {
Name: "claude-3-haiku-20240307",
MaxOutputTokens: 4096,
},
}
Functions ¶
This section is empty.
Types ¶
type Claude ¶
type Claude struct {
// contains filtered or unexported fields
}
Configuration structure.
func (*Claude) GetHeaders ¶ added in v0.1.0
func (*Claude) GetModelMaxOutputTokens ¶
type ErrMissingAPIKey ¶
func (*ErrMissingAPIKey) Error ¶
func (e *ErrMissingAPIKey) Error() string
Click to show internal directories.
Click to hide internal directories.