Repository navigation
Conversation
dxiaom
force-pushed
the
feat/provider-proxy
branch
from
September 30, 2026 05:19
e2330b2 to
176e0fd
Compare
Route the LLM requests of a single provider through an optional proxy without affecting other providers or the process-wide env vars: - store extra_json.proxy on the provider row and forward it to the harness ProviderConfig (works with the octop-harness proxy field) - connectivity probes and remote model fetching also honor the proxy - return extra_json from the providers API so the UI can render it - dashboard: HTTP Proxy input in provider create/edit forms; test connection and fetch-models requests carry the proxy - add httpx[socks] so SOCKS proxy URLs work out of the box No DB schema change: proxy lives in the existing extra_json column.
dxiaom
force-pushed
the
feat/provider-proxy
branch
from
October 19, 2026 10:30
176e0fd to
c4c551c
Compare
Collaborator
GitHub PR 提交规范✅ PR 必备清单1. 📸 提供视觉证明(截图/录屏)必须贴截图,无论放在 PR 描述中还是评论里——让 reviewer 看到"人",证明是经过人工检查、用心完成的。 2. 🧪 测试用例完整 & CI 通过
3. 🔄 与 AI 协作:确认理解一致
4. 🎯 代码质量:最小修改 & 追问优化
📋 Quick Checklist(可直接放进 PR 模板)- [ ] 📸 已提供 UI 截图/功能演示
- [ ] 🧱 测试用例已添加并通过
- [ ] ✅ CI Workflow 全部通过
- [ ] 🤖 已与 AI 对齐需求理解
- [ ] 🎯 遵循最小修改原则,代码结构清晰
- [ ] 📝 已询问并处理代码优化建议核心原则:PR 是沟通,不是交接。让 reviewer 轻松,就是让自己更快合入。 🔍 本 PR 自动检查发现的问题
|
Collaborator
|
请把这个变更重新提交到 Please open this change against |
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.
Summary
Allow each LLM provider to route its traffic through its own HTTP/SOCKS proxy, without affecting other providers or the process environment.
Motivation
Some deployments need only a specific model vendor's endpoint to go through a proxy (e.g. to reach a geo-restricted API or reuse an existing corporate egress). There was no per-provider proxy option:
HTTP(S)_PROXYenv vars are global, and theproxyfield added in octop-harness #21 was never surfaced through the provider config.Changes
infra/agents/providers/store.py: parseextra_json.proxyfrom the provider row and forward it to the harnessProviderConfiginfra/agents/providers/probe.py: connectivity probes and remote model fetching also honor the proxy (provider_proxy()helper)api/routers/providers.py: returnextra_jsonin the providers API so the UI can render current proxyextra_json.proxy, no DB schema change)httpx[socks]added sosocks5:///socks4://proxies work out of the boxNotes
extra_jsoncolumn.octop-harnesscompanion PR exposingProviderConfig.proxy.Test
extra_json={"proxy":"socks5://..."};ProviderStore.build_harness_configs()showsproxypopulated and the ChatOpenAI transport mounts a SOCKS pool.anthropic_proxy.extra_jsonkeys.