Skip to content

Commit de93fa5

Browse files
committed
refactor(adaptor): Comment out enable_thinking logic for clarity and future adjustments
1 parent 1c5de38 commit de93fa5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

relay/channel/ali/adaptor.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ func (a *Adaptor) ConvertOpenAIRequest(c *gin.Context, info *relaycommon.RelayIn
8282
}
8383
// docs: https://bailian.console.aliyun.com/?tab=api#/api/?type=model&url=2712216
8484
// fix: InternalError.Algo.InvalidParameter: The value of the enable_thinking parameter is restricted to True.
85-
if strings.Contains(request.Model, "thinking") {
86-
request.EnableThinking = true
87-
request.Stream = true
88-
info.IsStream = true
89-
}
90-
// fix: ali parameter.enable_thinking must be set to false for non-streaming calls
91-
if !info.IsStream {
92-
request.EnableThinking = false
93-
}
85+
//if strings.Contains(request.Model, "thinking") {
86+
// request.EnableThinking = true
87+
// request.Stream = true
88+
// info.IsStream = true
89+
//}
90+
//// fix: ali parameter.enable_thinking must be set to false for non-streaming calls
91+
//if !info.IsStream {
92+
// request.EnableThinking = false
93+
//}
9494

9595
switch info.RelayMode {
9696
default:

0 commit comments

Comments
 (0)