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{ {
|
Choices: []dto.OpenAITextResponseChoice{ {
|
||||||
Index: 0,
|
Index: 0,
|
||||||
Message: dto.Message{Role: "assistant", Content: contentPtr(content)},
|
Message: dto.Message{Role: "assistant", Content: contentPtr(content)},
|
||||||
FinishReason: &finishReason,
|
FinishReason: finishReason,
|
||||||
} },
|
} },
|
||||||
Usage: *usage,
|
Usage: *usage,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user