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

This commit is contained in:
somnifex
2025-09-15 23:43:39 +08:00
parent f7d393fc72
commit 9d952e0d78

View File

@@ -187,7 +187,7 @@ func ollamaChatHandler(c *gin.Context, info *relaycommon.RelayInfo, resp *http.R
Choices: []dto.OpenAITextResponseChoice{ {
Index: 0,
Message: dto.Message{Role: "assistant", Content: contentPtr(content)},
FinishReason: &finishReason,
FinishReason: finishReason,
} },
Usage: *usage,
}