[PR #190] [CLOSED] Feature: Allow cookie_path to be set directly in client constructor #212

Closed
opened 2026-02-13 17:28:06 -06:00 by mirrors · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/HanaokaYuzu/Gemini-API/pull/190
Author: @dariush-bahrami
Created: 12/9/2025
Status: Closed

Base: masterHead: feature-client-constructor-cache-dir-parameter


📝 Commits (1)

  • 3800e19 add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/HanaokaYuzu/Gemini-API/pull/190 **Author:** [@dariush-bahrami](https://github.com/dariush-bahrami) **Created:** 12/9/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feature-client-constructor-cache-dir-parameter` --- ### 📝 Commits (1) - [`3800e19`](https://github.com/HanaokaYuzu/Gemini-API/commit/3800e19d53f9934f83e3db3d2461502b6aef08ff) add 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) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Addresses [issue #189](https://github.com/HanaokaYuzu/Gemini-API/issues/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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirrors 2026-02-13 17:28:06 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mirrors/Gemini-API#212
No description provided.