fix: add missing 'system' parameter to the aws claude request

This commit is contained in:
1808837298@qq.com 2024-04-29 00:19:58 +08:00
parent 1c2654320e
commit 59233aa897

View File

@ -8,6 +8,7 @@ import "github.com/songquanpeng/one-api/relay/adaptor/anthropic"
type Request struct {
// AnthropicVersion should be "bedrock-2023-05-31"
AnthropicVersion string `json:"anthropic_version"`
System string `json:"system,omitempty"`
Messages []anthropic.Message `json:"messages"`
MaxTokens int `json:"max_tokens,omitempty"`
Temperature float64 `json:"temperature,omitempty"`