mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-11 14:41:21 +00:00
fix: record reasoning effort consistently in usage logs (#6641)
This commit is contained in:
@@ -106,6 +106,11 @@ func ClaudeHelper(c *gin.Context, info *relaycommon.RelayInfo) (newAPIError *typ
|
||||
}
|
||||
info.UpstreamModelName = request.Model
|
||||
}
|
||||
if !model_setting.GetGlobalSettings().PassThroughRequestEnabled && !info.ChannelSetting.PassThroughBodyEnabled {
|
||||
if effort := request.GetEfforts(); effort != "" {
|
||||
info.SetReasoningEffort(effort)
|
||||
}
|
||||
}
|
||||
|
||||
if info.ChannelSetting.SystemPrompt != "" {
|
||||
if request.System == nil {
|
||||
|
||||
Reference in New Issue
Block a user