Commit f57c539a by somnifex

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

parent a1f79761
......@@ -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,
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment