Skip to content

fix: sync recent streaming and temporary chat changes to modular package - #67

Open
wanghaoxu001 wants to merge 1 commit into
Sophomoresty:mainfrom
wanghaoxu001:codex/sync-modular-docker-fixes
Open

fix: sync recent streaming and temporary chat changes to modular package#67
wanghaoxu001 wants to merge 1 commit into
Sophomoresty:mainfrom
wanghaoxu001:codex/sync-modular-docker-fixes

Conversation

@wanghaoxu001

Copy link
Copy Markdown

修改内容

将根目录单文件版本的近期修复同步到 Docker 和 Python 包实际使用的模块化版本:

  • 同步 temporary_chats 配置及 Gemini 请求标志
  • 为 Chat Completions 流式响应首块增加 assistant 角色
  • 补齐 Responses API 文本及函数调用的标准 SSE 事件序列
  • 增加 sequence_numberoutput_index 等事件字段
  • 补充中英文配置文档
  • 新增模块化版本回归测试

背景

Dockerfile 运行的是 python -m gemini_web2api,即 gemini_web2api/ 模块化包。

近期相关修复只更新了根目录的 gemini_web2api.py,因此 Docker 镜像没有包含这些改动。本 PR 将相关变更同步到模块化实现,使 Docker、Python 包与单文件版本的行为保持一致。

验证结果

  • python3 -m unittest discover -v:6 个测试通过
  • git diff --check:通过
  • Python 3.8 语法兼容检查:通过
  • Docker 镜像构建:通过
  • 独立容器冒烟测试:通过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant