feat: 发布 API Hub v2.1.0 流式与智能体支持 - #1
Draft
jiaguangqi wants to merge 1 commit into
Draft
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.
变更摘要
将 GPU10
/opt/api-hub-v2上已完成真实验证的 API Hub 更新同步到 GitHub,并发布代码版本2.1.0。功能与修复
tools、tool_choice、response_format、采样参数和 token 限制。stream: true被当作 JSON 解析而返回 HTTP 500。根因
体验中心使用非流式请求,因此能够正常工作;普通 OpenAI SDK 或智能体启用
stream: true后,上游返回 SSE,而旧代理强制调用response.json(),导致 HTTP 500。安全处理
database.sql已改为纯结构文件,移除用户、渠道、订单、SMTP、API Key 等运行数据。验证结果
node --check server.js:通过。sqlite3 :memory: < database.sql:通过。git diff --check:通过。/v1/models、非流式 chat、流式 chat 和 function tool call 均通过。部署影响
2.1.0。69e825d0e2f3686cfe18fef31718dd3e4e8fd84c,或恢复服务器备份server.js.bak_20260810_stream_proxy_fix。已知限制