From 59233aa89743739aba6d0d6c3c5b78aedde2f74c Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Mon, 29 Apr 2024 00:19:58 +0800 Subject: [PATCH] fix: add missing 'system' parameter to the aws claude request --- relay/adaptor/aws/model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/relay/adaptor/aws/model.go b/relay/adaptor/aws/model.go index bcbfb584..223a90c6 100644 --- a/relay/adaptor/aws/model.go +++ b/relay/adaptor/aws/model.go @@ -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"`