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 { function buildOpencodeGuide(endpoint: string, auth: AiClientAuth): AiClientGuide {
const config = block( const config = block(
"opencode-config", "opencode-config",
"opencode.json", "Step 1: opencode.json",
() => () =>
[ [
"{", "{",
@@ -249,6 +249,11 @@ function buildOpencodeGuide(endpoint: string, auth: AiClientAuth): AiClientGuide
` "baseURL": "${endpoint}/v1"`, ` "baseURL": "${endpoint}/v1"`,
" }", " }",
" }", " }",
' "openai": {',
' "options": {',
` "baseURL": "${endpoint}/v1"`,
" }",
" }",
" }", " }",
"}" "}"
].join("\n"), ].join("\n"),
@@ -257,7 +262,7 @@ function buildOpencodeGuide(endpoint: string, auth: AiClientAuth): AiClientGuide
const authFile = block( const authFile = block(
"opencode-auth", "opencode-auth",
"auth.json", "Step 2: auth.json",
(key) => (key) =>
["{", ' "anthropic": {', ' "type": "api",', ` "key": "${key}"`, " }", "}"].join( ["{", ' "anthropic": {', ' "type": "api",', ` "key": "${key}"`, " }", "}"].join(
"\n" "\n"