Repository navigation
fix(relay): 允许 Azure 渠道启用 Responses WebSocket - #147
Merged
Merged
Conversation
…antumNous#8047) (QuantumNous#8075) Azure channels with responses_websocket_enabled were rejected by FilterResponsesWebSocket, and the channel form hid the toggle for type 3. The OpenAI adaptor already builds the Azure /openai/v1/responses URL with api-version and sets the api-key header, and DoWssRequest reuses both, so no relay URL change is needed. (cherry picked from commit 26c488c)
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.
🔗 关联任务 / Related Issue
Closes #136
上游提交:26c488c4476aa7d8f7e8afc33421b70ee8e9f617
🚀 变更类型 / Type of change
📝 变更描述 / Description
隔离 cherry-pick 上游修复:允许显式开启 Responses WebSocket 的 Azure 渠道通过筛选,并展示已有设置开关。复用现有 ResponsesWebSocketSetting,不改变 URL、鉴权、计费或数据库实现。仅修改授权的四个文件,patch-id 与上游一致。
由 AI 辅助移植与验证。已检查 git 身份 woncc(当前邮箱与主要历史邮箱不同);正文已经精炼,作者负责本次提交内容,人工审阅项留待维护者确认。
📸 运行证明 / Proof of Work
GOMAXPROCS=2 GOWORK=off go test -p=2 ./relay/ ./model/ -count=1 -run 'Responses|WebSocket|Azure':通过;relay 覆盖 Azure 选择及三种 URL/api-version/api-key 握手;model 无匹配测试。bun run test src/features/channels/components/__tests__/responses-websocket-setting.test.tsx:27 项通过。用基线准入文件配合新增测试复现 2 项失败,随后恢复候选文件且工作树干净。GOMAXPROCS=2 bun run typecheck:通过。首次未限制并行度运行被 SIGKILL 终止;缺少依赖的首次检查经bun install --frozen-lockfile恢复,锁文件未变。bun x --no-install oxlint -c .oxlintrc.json src/features/channels/lib/responses-websocket.ts src/features/channels/components/__tests__/responses-websocket-setting.test.tsx:退出 0。git diff HEAD^ HEAD --check、修改 Go 文件 gofmt 检查通过。✅ 提交前检查项 / Checklist