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

This commit is contained in:
CaIon
2025-05-22 15:52:23 +08:00
parent e0fc7a501f
commit 526b7e6048
2 changed files with 10 additions and 1 deletions
+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"`