-
Notifications
You must be signed in to change notification settings - Fork 147
Curated history not set for Gemini 3.X when using streaming #795
Copy link
Copy link
Open
Labels
api:gemini-apiIssues related to Gemini APIIssues related to Gemini APIpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Metadata
Metadata
Assignees
Labels
api:gemini-apiIssues related to Gemini APIIssues related to Gemini APIpriority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I noticed an issue when using the new Gemini models 3.1 Flash Lite and 3.5 Flash with streaming and function calling.
I think it is related to how the new models generate/return chunks and parts, and how
CuratedHistoryis set in a chat instance when using streaming (details below). It works as expected with non-streaming, since the check before settingCuratedHistoryis handled differently there.Environment details
Steps to reproduce
(c *Chats) Createand include tools in the config.SendMessageStream.STOP.CuratedHistory.SendMessageStreamagain, theCuratedHistoryused is empty.