fix: 修复ollamaChatHandler中的FinishReason字段赋值逻辑
This commit is contained in:
parent
a1f79761cf
commit
f57c539a1f
@ -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,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user