Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1b80d60
authored
Apr 29, 2024
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: aws claude system
parent
c5a9fa97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
relay/channel/aws/dto.go
+1
-0
No files found.
relay/channel/aws/dto.go
View file @
e1b80d60
...
@@ -5,6 +5,7 @@ import "one-api/relay/channel/claude"
...
@@ -5,6 +5,7 @@ import "one-api/relay/channel/claude"
type
AwsClaudeRequest
struct
{
type
AwsClaudeRequest
struct
{
// AnthropicVersion should be "bedrock-2023-05-31"
// AnthropicVersion should be "bedrock-2023-05-31"
AnthropicVersion
string
`json:"anthropic_version"`
AnthropicVersion
string
`json:"anthropic_version"`
System
string
`json:"system"`
Messages
[]
claude
.
ClaudeMessage
`json:"messages"`
Messages
[]
claude
.
ClaudeMessage
`json:"messages"`
MaxTokens
int
`json:"max_tokens,omitempty"`
MaxTokens
int
`json:"max_tokens,omitempty"`
Temperature
float64
`json:"temperature,omitempty"`
Temperature
float64
`json:"temperature,omitempty"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment