feat: add Thought field to GeminiPart and update response handling in streamResponseGeminiChat2OpenAI

This commit is contained in:
CaIon committed 2025-05-22 15:52:23 +08:00
1 parent e0fc7a501f
commit 526b7e6048
2 files changed
+10 -1

No files matched your search

+1
View File
@@ -54,6 +54,7 @@ type GeminiFileData struct {
type GeminiPart struct {
Text string `json:"text,omitempty"`
Thought bool `json:"thought,omitempty"`
InlineData *GeminiInlineData `json:"inlineData,omitempty"`
FunctionCall *FunctionCall `json:"functionCall,omitempty"`
FunctionResponse *FunctionResponse `json:"functionResponse,omitempty"`