mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 12:23:03 -06:00
[PR #213] [CLOSED] Google RPC fix and enhancement #216
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#216
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/213
Author: @ww2283
Created: 1/14/2026
Status: ❌ Closed
Base:
master← Head:master📝 Commits (2)
8c370a2fix: improve security by enabling SSL verification and restricting cookie file permissions111a441fix: handle multi-line JSON chunks in extract_json_from_response() - Fixes #1📊 Changes
4 files changed (+546 additions, -4 deletions)
View changed files
📝
src/gemini_webapi/utils/get_access_token.py(+1 -2)📝
src/gemini_webapi/utils/parsing.py(+135 -2)📝
src/gemini_webapi/utils/rotate_1psidts.py(+1 -0)➕
tests/test_parsing.py(+409 -0)📄 Description
Summary
splitlines()which broke multi-line JSON and incorrectly returned numeric length markersChanges
src/gemini_webapi/utils/parsing.py: Added_parse_with_length_markers(),_sanitize_json_newlines(),_maybe_unwrap()tests/test_parsing.py: 23 unit tests for parsing moduleTest Plan
Fixes #212
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.