mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-18 06:27:26 +00:00
fix: 修复ollamaChatHandler中的FinishReason字段赋值逻辑
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user