feat: add reasoning effort logging and display

- Add `ReasoningEffort` field to `RelayInfo` struct
- Update log generation to include reasoning effort in admin info
- Modify logs table component to display reasoning effort when available
- Preserve reasoning effort information during request processing
This commit is contained in:
1808837298@qq.com
2025-02-03 14:44:40 +08:00
parent a29e1e0aa3
commit 834ceda827
4 changed files with 12 additions and 2 deletions

View File

@@ -127,7 +127,8 @@ func (a *Adaptor) ConvertRequest(c *gin.Context, info *relaycommon.RelayInfo, re
request.ReasoningEffort = "medium"
request.Model = strings.TrimSuffix(request.Model, "-medium")
}
info.UpstreamModelName = request.Model
info.ReasoningEffort = request.ReasoningEffort
//info.UpstreamModelName = request.Model
}
if request.Model == "o1" || request.Model == "o1-2024-12-17" || strings.HasPrefix(request.Model, "o3") {
//修改第一个Message的内容将system改为developer

View File

@@ -45,6 +45,7 @@ type RelayInfo struct {
RealtimeTools []dto.RealTimeTool
IsFirstRequest bool
AudioUsage bool
ReasoningEffort string
ChannelSetting map[string]interface{}
}