diff --git a/internal/cloud/provider-profile-management.ts b/internal/cloud/provider-profile-management.ts index 23025b87..74fb7c58 100644 --- a/internal/cloud/provider-profile-management.ts +++ b/internal/cloud/provider-profile-management.ts @@ -5,7 +5,7 @@ const DEFAULT_AGENTRUN_MGR_URL = "http://agentrun-mgr.agentrun-v01.svc.cluster.l const DEFAULT_AGENTRUN_HOST = "agentrun-mgr.agentrun-v01.svc.cluster.local"; const DEFAULT_TIMEOUT_MS = 30000; -const publicProfiles = new Set(["deepseek", "codex-api", "minimax-m3"]); +const publicProfiles = new Set(["deepseek", "codex-api", "minimax-m3", "ofcx-go"]); export async function handleProviderProfilesHttp(request, response, url, options = {}) { try { @@ -205,6 +205,7 @@ function normalizeProfileData(item) { copy.profile = "codex-api"; } if (copy.profile === "deepseek") copy.bridge = deepseekBridgeSummary(); + if (copy.profile === "ofcx-go") copy.bridge = opencodeZenGoBridgeSummary(); copy.valuesPrinted = false; return copy; } @@ -299,6 +300,20 @@ function deepseekBridgeSummary() { }; } +function opencodeZenGoBridgeSummary() { + return { + kind: "moon-bridge", + route: "HWLAB Moon Bridge -> OpenCode Zen Go Chat Completions", + serviceUrl: "http://hwlab-deepseek-proxy.hwlab-v02.svc.cluster.local:4000/v1", + responsesPath: "/v1/responses", + model: "deepseek-v4-flash", + upstreamProvider: "opencode", + upstreamProtocol: "openai-chat", + forbiddenHosts: ["hyueapi.com"], + valuesPrinted: false + }; + } + function resolveAgentRunManagerUrl(env) { const raw = text(env.AGENTRUN_MGR_URL) || text(env.HWLAB_CODE_AGENT_AGENTRUN_MGR_URL) || text(env.AGENTRUN_MANAGER_URL) || DEFAULT_AGENTRUN_MGR_URL; let parsed;