diff --git a/relay/channel/ollama/stream.go b/relay/channel/ollama/stream.go index 167c676d6..ad12e7f83 100644 --- a/relay/channel/ollama/stream.go +++ b/relay/channel/ollama/stream.go @@ -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, }