Skip to content

Streaming requests aborted prematurely when HTTP timeout is set #649

@ainilili

Description

@ainilili

Setting any HTTP timeout makes the client cancel streaming calls as soon as the timer expires, even though the stream is still healthy.

https://github.com/googleapis/go-genai/blob/main/api_client.go#L58-L65

Metadata

Metadata

Labels

api:gemini-apiIssues related to Gemini APIpriority: p2Moderately-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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions