mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 12:23:03 -06:00
[PR #190] [CLOSED] Feature: Allow cookie_path to be set directly in client constructor #212
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#212
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/190
Author: @dariush-bahrami
Created: 12/9/2025
Status: ❌ Closed
Base:
master← Head:feature-client-constructor-cache-dir-parameter📝 Commits (1)
3800e19add cookie_path parameter to the client constructor. refacotr get_access_token and rotate_1psidts to reflect this change.📊 Changes
3 files changed (+40 additions, -23 deletions)
View changed files
📝
src/gemini_webapi/client.py(+12 -10)📝
src/gemini_webapi/utils/get_access_token.py(+15 -7)📝
src/gemini_webapi/utils/rotate_1psidts.py(+13 -6)📄 Description
Addresses issue #189.
This pull request introduces a new, optional cookie_path parameter to the client constructor. This provides an explicit way to specify the cookies cache directory, which is useful when relying on environment variables is not feasible.
Precedence: The provided cookie_path parameter will take precedence over the GIMINI_COOKIE_PATH environment variable. If the parameter is not set (None), the existing logic (checking the environment variable) will be used.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.