Merge pull request #1174 from QuantumNous/refactor/message

refactor: message content 改成 any
This commit is contained in:
Calcium-Ion authored and GitHub committed 2025-06-08 16:22:20 +08:00
commit 5d7e688bfe
16 files changed
+319 -122

No files matched your search

+1 -2
View File
@@ -611,14 +611,13 @@ func responseGeminiChat2OpenAI(response *GeminiChatResponse) *dto.OpenAITextResp
Created: common.GetTimestamp(),
Choices: make([]dto.OpenAITextResponseChoice, 0, len(response.Candidates)),
}
content, _ := json.Marshal("")
isToolCall := false
for _, candidate := range response.Candidates {
choice := dto.OpenAITextResponseChoice{
Index: int(candidate.Index),
Message: dto.Message{
Role: "assistant",
Content: content,
Content: "",
},
FinishReason: constant.FinishReasonStop,
}