Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Models = map[string]ModelConfig{ "ClaudeSonnet": { Name: "claude-3-5-sonnet-latest", SupportsVision: true, MaxTokens: 8192, Description: `The upgraded Claude 3.5 Sonnet is now state-of-the-art for a variety of tasks including real-world software engineering, enhanced agentic capabilities, and computer use.`, }, "ClaudeHaiku": { Provider: "anthropic", Name: "claude-3-5-haiku-latest", SupportsVision: false, MaxTokens: 8192, Description: `Claude 3 Haiku is Anthropic's fastest vision and text model for near-instant responses to simple queries, meant for seamless AI experiences mimicking human interactions.`, }, }
Functions ¶
func Authenticate ¶
func Completion ¶
Types ¶
type ChatMessage ¶
type ChatMessage struct { Role Role `json:"role"` Parts MessagePart `json:"parts"` }
type ImagePayload ¶
type MessagePart ¶
type MessagePart struct {
Text string `json:"text,omitempty"`
}
type ModelConfig ¶
Click to show internal directories.
Click to hide internal directories.