Merge remote-tracking branch 'origin/alpha' into alpha

This commit is contained in:
CaIon committed 2025-06-19 14:36:55 +08:00
commit fd943659c0
10 files changed
+388 -190

No files matched your search

+3 -1
View File
@@ -374,7 +374,9 @@ func CovertGemini2OpenAI(textRequest dto.GeneralOpenAIRequest, info *relaycommon
if content.Role == "assistant" {
content.Role = "model"
}
geminiRequest.Contents = append(geminiRequest.Contents, content)
if len(content.Parts) > 0 {
geminiRequest.Contents = append(geminiRequest.Contents, content)
}
}
if len(system_content) > 0 {