delete some if

This commit is contained in:
Nekohy
2026-03-05 06:24:22 +08:00
parent 5b264f3a57
commit de12d6df05

View File

@@ -34,7 +34,6 @@ func ClaudeToOpenAIRequest(claudeRequest dto.ClaudeRequest, info *relaycommon.Re
isOpenRouter := info.ChannelType == constant.ChannelTypeOpenRouter isOpenRouter := info.ChannelType == constant.ChannelTypeOpenRouter
if claudeRequest.Thinking != nil && (claudeRequest.Thinking.Type == "enabled" || claudeRequest.Thinking.Type == "adaptive") {
if isOpenRouter { if isOpenRouter {
if effort := claudeRequest.GetEfforts(); effort != "" { if effort := claudeRequest.GetEfforts(); effort != "" {
effortBytes, _ := json.Marshal(effort) effortBytes, _ := json.Marshal(effort)
@@ -65,7 +64,6 @@ func ClaudeToOpenAIRequest(claudeRequest dto.ClaudeRequest, info *relaycommon.Re
openAIRequest.Model = openAIRequest.Model + thinkingSuffix openAIRequest.Model = openAIRequest.Model + thinkingSuffix
} }
} }
}
// Convert stop sequences // Convert stop sequences
if len(claudeRequest.StopSequences) == 1 { if len(claudeRequest.StopSequences) == 1 {