fix: sync recent streaming and temporary chat changes to modular package - #67
Open
wanghaoxu001 wants to merge 1 commit into
Open
fix: sync recent streaming and temporary chat changes to modular package#67wanghaoxu001 wants to merge 1 commit into
wanghaoxu001 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改内容
将根目录单文件版本的近期修复同步到 Docker 和 Python 包实际使用的模块化版本:
temporary_chats配置及 Gemini 请求标志assistant角色sequence_number、output_index等事件字段背景
Dockerfile 运行的是
python -m gemini_web2api,即gemini_web2api/模块化包。近期相关修复只更新了根目录的
gemini_web2api.py,因此 Docker 镜像没有包含这些改动。本 PR 将相关变更同步到模块化实现,使 Docker、Python 包与单文件版本的行为保持一致。验证结果
python3 -m unittest discover -v:6 个测试通过git diff --check:通过