mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 04:19:46 -06:00
[PR #215] feat: add temporary single-call mode #219
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#219
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/215
Author: @JidaDiao
Created: 1/19/2026
Status: 🔄 Open
Base:
master← Head:002-add-temporary-chat📝 Commits (8)
04eb796feat: add temporary chat mode support820b427chore: add temporary chat demo script8552500test: use local src import in temporary chat tests8cee2b4test: exercise temporary chat integration flowbe91649chore: remove temporary chat demo script3442e34test: bootstrap src imports for tests0317e41test: assert temporary responses lack metadata814febftest: validate temporary request flag📊 Changes
5 files changed (+196 additions, -50 deletions)
View changed files
📝
src/gemini_webapi/client.py(+121 -50)📝
src/gemini_webapi/constants.py(+2 -0)📝
src/gemini_webapi/exceptions.py(+8 -0)➕
tests/__init__.py(+8 -0)➕
tests/test_temporary_chat.py(+57 -0)📄 Description
Why
Some API-driven apps only need stateless, single-turn requests. This adds a temporary mode to reduce the number of web UI history records (avoid junk chat entries) while keeping one-off calls simple.
What
temporaryflag togenerate_contentand mark the request payloadtemporaryinChatSession(single-call only)TemporaryChatNotSupportedandTEMPORARY_CHAT_FLAG_INDEXteststo import localsrc(avoid installed package drift)Limitations
Tests
python -m unittest tests/test_temporary_chat.py🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.