Documentation
¶
Index ¶
Constants ¶
View Source
const ClaudeURL = "https://api.anthropic.com/v1/messages"
Variables ¶
This section is empty.
Functions ¶
func NewTextQuerier ¶
func NewTextQuerier(conf text.Configurations) (models.ChatQuerier, error)
NewTextQuerier returns a new Claude querier using the textconfigurations to load the correct model. API key is fetched via environment variable
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"` Raw bool `json:"raw"` // contains filtered or unexported fields }
func (*Claude) Query ¶
Query performs a streamCompletion and appends the returned message to it's internal chat. Then it stores the internal chat as prevQuery.json, so that it may be used n upcoming queries
type ContentBlockDelta ¶
Click to show internal directories.
Click to hide internal directories.