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
Unverified
Commit
b798e349
authored
Jun 17, 2026
by
Seefs
Committed by
GitHub
Jun 17, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: aws ak/sk context management (#5547)
parent
3b345cfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
relay/channel/aws/dto.go
+14
-13
No files found.
relay/channel/aws/dto.go
View file @
b798e349
...
...
@@ -14,19 +14,20 @@ import (
type
AwsClaudeRequest
struct
{
// AnthropicVersion should be "bedrock-2023-05-31"
AnthropicVersion
string
`json:"anthropic_version"`
AnthropicBeta
json
.
RawMessage
`json:"anthropic_beta,omitempty"`
System
any
`json:"system,omitempty"`
Messages
[]
dto
.
ClaudeMessage
`json:"messages"`
MaxTokens
uint
`json:"max_tokens,omitempty"`
Temperature
*
float64
`json:"temperature,omitempty"`
TopP
float64
`json:"top_p,omitempty"`
TopK
int
`json:"top_k,omitempty"`
StopSequences
[]
string
`json:"stop_sequences,omitempty"`
Tools
any
`json:"tools,omitempty"`
ToolChoice
any
`json:"tool_choice,omitempty"`
Thinking
*
dto
.
Thinking
`json:"thinking,omitempty"`
OutputConfig
json
.
RawMessage
`json:"output_config,omitempty"`
AnthropicVersion
string
`json:"anthropic_version"`
AnthropicBeta
json
.
RawMessage
`json:"anthropic_beta,omitempty"`
System
any
`json:"system,omitempty"`
Messages
[]
dto
.
ClaudeMessage
`json:"messages"`
MaxTokens
*
uint
`json:"max_tokens,omitempty"`
Temperature
*
float64
`json:"temperature,omitempty"`
TopP
*
float64
`json:"top_p,omitempty"`
TopK
*
int
`json:"top_k,omitempty"`
StopSequences
[]
string
`json:"stop_sequences,omitempty"`
Tools
any
`json:"tools,omitempty"`
ToolChoice
any
`json:"tool_choice,omitempty"`
ContextManagement
json
.
RawMessage
`json:"context_management,omitempty"`
Thinking
*
dto
.
Thinking
`json:"thinking,omitempty"`
OutputConfig
json
.
RawMessage
`json:"output_config,omitempty"`
//Metadata json.RawMessage `json:"metadata,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