Commit b798e349 by Seefs Committed by GitHub

fix: aws ak/sk context management (#5547)

parent 3b345cfd
...@@ -18,13 +18,14 @@ type AwsClaudeRequest struct { ...@@ -18,13 +18,14 @@ type AwsClaudeRequest struct {
AnthropicBeta json.RawMessage `json:"anthropic_beta,omitempty"` AnthropicBeta json.RawMessage `json:"anthropic_beta,omitempty"`
System any `json:"system,omitempty"` System any `json:"system,omitempty"`
Messages []dto.ClaudeMessage `json:"messages"` Messages []dto.ClaudeMessage `json:"messages"`
MaxTokens uint `json:"max_tokens,omitempty"` MaxTokens *uint `json:"max_tokens,omitempty"`
Temperature *float64 `json:"temperature,omitempty"` Temperature *float64 `json:"temperature,omitempty"`
TopP float64 `json:"top_p,omitempty"` TopP *float64 `json:"top_p,omitempty"`
TopK int `json:"top_k,omitempty"` TopK *int `json:"top_k,omitempty"`
StopSequences []string `json:"stop_sequences,omitempty"` StopSequences []string `json:"stop_sequences,omitempty"`
Tools any `json:"tools,omitempty"` Tools any `json:"tools,omitempty"`
ToolChoice any `json:"tool_choice,omitempty"` ToolChoice any `json:"tool_choice,omitempty"`
ContextManagement json.RawMessage `json:"context_management,omitempty"`
Thinking *dto.Thinking `json:"thinking,omitempty"` Thinking *dto.Thinking `json:"thinking,omitempty"`
OutputConfig json.RawMessage `json:"output_config,omitempty"` OutputConfig json.RawMessage `json:"output_config,omitempty"`
//Metadata json.RawMessage `json:"metadata,omitempty"` //Metadata json.RawMessage `json:"metadata,omitempty"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment