浏览代码

fix: aws claude system

1808837298@qq.com 1 年之前
父节点
当前提交
7fb6420e66
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      relay/channel/aws/dto.go

+ 1 - 0
relay/channel/aws/dto.go

@@ -5,6 +5,7 @@ import "one-api/relay/channel/claude"
 type AwsClaudeRequest struct {
 	// AnthropicVersion should be "bedrock-2023-05-31"
 	AnthropicVersion string                 `json:"anthropic_version"`
+	System           string                 `json:"system"`
 	Messages         []claude.ClaudeMessage `json:"messages"`
 	MaxTokens        int                    `json:"max_tokens,omitempty"`
 	Temperature      float64                `json:"temperature,omitempty"`