diff --git a/relay/channel/aws/dto.go b/relay/channel/aws/dto.go index 505967ad..e87ed6ec 100644 --- a/relay/channel/aws/dto.go +++ b/relay/channel/aws/dto.go @@ -16,6 +16,7 @@ type AwsClaudeRequest struct { StopSequences []string `json:"stop_sequences,omitempty"` Tools []claude.Tool `json:"tools,omitempty"` ToolChoice any `json:"tool_choice,omitempty"` + Thinking *claude.Thinking `json:"thinking,omitempty"` } func copyRequest(req *claude.ClaudeRequest) *AwsClaudeRequest { @@ -30,5 +31,6 @@ func copyRequest(req *claude.ClaudeRequest) *AwsClaudeRequest { StopSequences: req.StopSequences, Tools: req.Tools, ToolChoice: req.ToolChoice, + Thinking: req.Thinking, } } diff --git a/relay/channel/claude/dto.go b/relay/channel/claude/dto.go index 40ce55c4..90f06b26 100644 --- a/relay/channel/claude/dto.go +++ b/relay/channel/claude/dto.go @@ -64,8 +64,8 @@ type ClaudeRequest struct { } type Thinking struct { - Type string `json:"type,omitempty"` - BudgetTokens int `json:"budget_tokens,omitempty"` + Type string `json:"type"` + BudgetTokens int `json:"budget_tokens"` } type ClaudeError struct {