Commit d4706d6b by 1808837298@qq.com

Merge branch 'main' into thinking

# Conflicts:
#	relay/channel/claude/dto.go
parents 7160012f 6c8016e5
...@@ -16,6 +16,7 @@ type AwsClaudeRequest struct { ...@@ -16,6 +16,7 @@ type AwsClaudeRequest struct {
StopSequences []string `json:"stop_sequences,omitempty"` StopSequences []string `json:"stop_sequences,omitempty"`
Tools []claude.Tool `json:"tools,omitempty"` Tools []claude.Tool `json:"tools,omitempty"`
ToolChoice any `json:"tool_choice,omitempty"` ToolChoice any `json:"tool_choice,omitempty"`
Thinking *claude.Thinking `json:"thinking,omitempty"`
} }
func copyRequest(req *claude.ClaudeRequest) *AwsClaudeRequest { func copyRequest(req *claude.ClaudeRequest) *AwsClaudeRequest {
...@@ -30,5 +31,6 @@ func copyRequest(req *claude.ClaudeRequest) *AwsClaudeRequest { ...@@ -30,5 +31,6 @@ func copyRequest(req *claude.ClaudeRequest) *AwsClaudeRequest {
StopSequences: req.StopSequences, StopSequences: req.StopSequences,
Tools: req.Tools, Tools: req.Tools,
ToolChoice: req.ToolChoice, ToolChoice: req.ToolChoice,
Thinking: req.Thinking,
} }
} }
...@@ -64,8 +64,8 @@ type ClaudeRequest struct { ...@@ -64,8 +64,8 @@ type ClaudeRequest struct {
} }
type Thinking struct { type Thinking struct {
Type string `json:"type,omitempty"` Type string `json:"type"`
BudgetTokens int `json:"budget_tokens,omitempty"` BudgetTokens int `json:"budget_tokens"`
} }
type ClaudeError struct { type ClaudeError struct {
......
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