Documentation ¶
Index ¶
Constants ¶
View Source
const ClaudeURL = "https://api.anthropic.com/v1/messages"
Variables ¶
View Source
var CLAUDE_DEFAULT = Claude{ Model: "claude-3-opus-20240229", Url: ClaudeURL, AnthropicVersion: "2023-06-01", AnthropicBeta: "messages-2023-12-15", MaxTokens: 1024, }
Functions ¶
This section is empty.
Types ¶
type Claude ¶
type Claude struct { Model string `json:"model"` MaxTokens int `json:"max_tokens"` Url string `json:"url"` AnthropicVersion string `json:"anthropic-version"` AnthropicBeta string `json:"anthropic-beta"` // contains filtered or unexported fields }
func (*Claude) StreamCompletions ¶ added in v1.2.0
type ContentBlockDelta ¶
Click to show internal directories.
Click to hide internal directories.