fix: use resolvable opencode apk proxy
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user