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 1f9fc09989
commit 66bdfe180c
2 changed files with 10 additions and 1 deletions

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"`