Commit 1b179862 by Nekohy

delete some if

parent a4629f26
...@@ -34,7 +34,6 @@ func ClaudeToOpenAIRequest(claudeRequest dto.ClaudeRequest, info *relaycommon.Re ...@@ -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 ...@@ -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 {
......
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