fix: record reasoning effort consistently in usage logs (#6641)

This commit is contained in:
Seefs
2026-08-10 12:48:14 +08:00
committed by GitHub
parent 7dd1000a19
commit eab18a8357
10 changed files with 333 additions and 14 deletions
+5
View File
@@ -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 {