fix: use resolvable opencode apk proxy

This commit is contained in:
UniDesk Codex
2026-06-30 11:44:16 +08:00
parent 64a377d0f0
commit 2e7380ea2d
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -5657,6 +5657,7 @@ function opencodeRuntimeConfigForProfile(deploy, profile) {
smallModel,
baseURL: providerProxyBaseURL,
upstreamBaseURL,
apkProxyURL: configString(config.apkProxyURL) || "",
providerProxyPort,
providerProxyBasePath,
npm: configString(config.npm) || "@ai-sdk/openai-compatible",
@@ -5763,7 +5764,7 @@ function opencodeServerManifest({ profile = "v03", source, deploy = null, catalo
const configContent = opencodeConfigContent(opencodeConfig);
const configSha256 = createHash("sha256").update(configContent).digest("hex");
const apiKeySecretRef = secretRefObjectForProfile(opencodeConfig.apiKeySecretRef, profile);
const opencodeApkProxyUrl = opencodeEgressProxyUrlForProfile(deploy, profile);
const opencodeApkProxyUrl = opencodeConfig.apkProxyURL || opencodeEgressProxyUrlForProfile(deploy, profile);
const opencodeApkNoProxy = opencodeEgressNoProxyForProfile(deploy, profile);
const annotations = {
"hwlab.pikastech.local/rendered-by": "scripts/gitops-render.mjs",