Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModelList = []*model.ModelConfig{ { Model: "claude-3-haiku@20240307", Type: relaymode.ChatCompletions, Owner: model.ModelOwnerAnthropic, }, { Model: "claude-3-sonnet@20240229", Type: relaymode.ChatCompletions, Owner: model.ModelOwnerAnthropic, }, { Model: "claude-3-opus@20240229", Type: relaymode.ChatCompletions, Owner: model.ModelOwnerAnthropic, }, { Model: "claude-3-5-sonnet@20240620", Type: relaymode.ChatCompletions, Owner: model.ModelOwnerAnthropic, }, { Model: "claude-3-5-sonnet-v2@20241022", Type: relaymode.ChatCompletions, Owner: model.ModelOwnerAnthropic, }, { Model: "claude-3-5-haiku@20241022", Type: relaymode.ChatCompletions, Owner: model.ModelOwnerAnthropic, }, }
Functions ¶
This section is empty.
Types ¶
type Adaptor ¶
type Adaptor struct{}
func (*Adaptor) ConvertRequest ¶
func (*Adaptor) DoResponse ¶
func (a *Adaptor) DoResponse(meta *meta.Meta, c *gin.Context, resp *http.Response) (usage *relaymodel.Usage, err *relaymodel.ErrorWithStatusCode)
type Request ¶
type Request struct { ToolChoice any `json:"tool_choice,omitempty"` Temperature *float64 `json:"temperature,omitempty"` TopP *float64 `json:"top_p,omitempty"` AnthropicVersion string `json:"anthropic_version"` System string `json:"system,omitempty"` Messages []anthropic.Message `json:"messages"` StopSequences []string `json:"stop_sequences,omitempty"` Tools []anthropic.Tool `json:"tools,omitempty"` MaxTokens int `json:"max_tokens,omitempty"` TopK int `json:"top_k,omitempty"` Stream bool `json:"stream,omitempty"` }
Click to show internal directories.
Click to hide internal directories.