feat: add ofcx-go provider profile for OpenCode Zen Go DeepSeek V4 Flash

- Add ofcx-go to BackendProfile type union
- Add ofcx-go backend profile spec (Codex app-server stdio)
- Add defaultConfig for ofcx-go (deepseek-v4-flash via Moon Bridge)
- Add Secret mount in deploy.json for runner projection
- Add RBAC access for ofcx-go provider secret
- Update self-test to cover 4 profiles
This commit is contained in:
Codex
2026-06-07 20:14:52 +08:00
parent 0ff445e182
commit 3afb2bf8ec
6 changed files with 37 additions and 6 deletions
+10
View File
@@ -414,6 +414,16 @@ function defaultConfig(profile: BackendProfile): ProfileConfig {
displayName: "OpenAI",
};
}
if (profile === "ofcx-go") {
return {
model: "deepseek-v4-flash",
providerName: "opencode",
baseUrl: "http://hwlab-deepseek-proxy.hwlab-v02.svc.cluster.local:4000/v1",
envKey: "OPENAI_API_KEY",
wireApi: "responses",
displayName: "OpenCode",
};
}
if (profile === "minimax-m3") {
return {
model: "MiniMax-M3",