mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 12:23:03 -06:00
[PR #220] [MERGED] Add streaming responses, enhance parsing efficiency, and implement a better retry solution. #221
Labels
No labels
advanced
advanced
bug
dependencies
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
model
pull-request
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mirrors/Gemini-API#221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HanaokaYuzu/Gemini-API/pull/220
Author: @luuquangvu
Created: 1/28/2026
Status: ✅ Merged
Merged: 2/3/2026
Merged by: @HanaokaYuzu
Base:
master← Head:improve-parsing-efficiency📝 Commits (10+)
1b5ad5dRefactor: improve nested value retrieval and enhance JSON parsing functions01e1007Refactor: remove unnecessary verification flag from AsyncClient initializationf9a8581Refactor: enhance cookie rotation logic and add verbose logging optiond477ca0Refactor: enhance cookie refresh handling and enable concurrent file uploads76f3327Refactor: improve cookie and access token refresh logic with enhanced locking mechanism0d963daRefactor: improve JSON response handling and enhance nested value extraction in GemMixin117fd4eRefactor: enhance cookie refresh logic with improved error handling and concurrency731b199Refactor: update model headerseb85ec9Revert "Refactor: update model headers"3f3cf9aRefactor: enable HTTP/2 support in AsyncClient across multiple modules📊 Changes
15 files changed (+1148 additions, -504 deletions)
View changed files
📝
README.md(+5 -5)📝
pyproject.toml(+3 -3)📝
src/gemini_webapi/client.py(+644 -306)📝
src/gemini_webapi/components/gem_mixin.py(+35 -20)📝
src/gemini_webapi/constants.py(+11 -8)📝
src/gemini_webapi/types/candidate.py(+2 -0)📝
src/gemini_webapi/types/image.py(+8 -7)📝
src/gemini_webapi/types/modeloutput.py(+8 -0)📝
src/gemini_webapi/utils/__init__.py(+1 -6)📝
src/gemini_webapi/utils/decorators.py(+75 -30)📝
src/gemini_webapi/utils/get_access_token.py(+55 -34)📝
src/gemini_webapi/utils/parsing.py(+207 -37)📝
src/gemini_webapi/utils/rotate_1psidts.py(+40 -21)📝
src/gemini_webapi/utils/upload_file.py(+51 -24)📝
tests/test_client_features.py(+3 -3)📄 Description
Here's a quick summary of the changes, sorry if this PR turned out a bit larger than expected.
I tested it and it worked fine for me, but I'd really appreciate it if someone else could try it out to catch any potential issues.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.