fix: 修复ollamaChatHandler中ReasoningContent字段的赋值逻辑

This commit is contained in:
somnifex
2025-09-16 08:54:34 +08:00
parent 414b959e65
commit 05241aea92

View File

@@ -189,7 +189,7 @@ func ollamaChatHandler(c *gin.Context, info *relaycommon.RelayInfo, resp *http.R
if finishReason == "" { finishReason = "stop" }
msg := dto.Message{Role: "assistant", Content: contentPtr(content)}
if rc := reasoningBuilder.String(); rc != "" { msg.ReasoningContent = &rc }
if rc := reasoningBuilder.String(); rc != "" { msg.ReasoningContent = rc }
full := dto.OpenAITextResponse{
Id: common.GetUUID(),
Model: model,