Update aiClientConfig

This commit is contained in:
Owen
2026-08-18 15:38:23 -04:00
parent a74e1e765a
commit 809bc662e0
+7 -2
View File
@@ -238,7 +238,7 @@ function buildCodexGuide(endpoint: string, auth: AiClientAuth): AiClientGuide {
function buildOpencodeGuide(endpoint: string, auth: AiClientAuth): AiClientGuide {
const config = block(
"opencode-config",
"opencode.json",
"Step 1: opencode.json",
() =>
[
"{",
@@ -249,6 +249,11 @@ function buildOpencodeGuide(endpoint: string, auth: AiClientAuth): AiClientGuide
` "baseURL": "${endpoint}/v1"`,
" }",
" }",
' "openai": {',
' "options": {',
` "baseURL": "${endpoint}/v1"`,
" }",
" }",
" }",
"}"
].join("\n"),
@@ -257,7 +262,7 @@ function buildOpencodeGuide(endpoint: string, auth: AiClientAuth): AiClientGuide
const authFile = block(
"opencode-auth",
"auth.json",
"Step 2: auth.json",
(key) =>
["{", ' "anthropic": {', ' "type": "api",', ` "key": "${key}"`, " }", "}"].join(
"\n"