From 809bc662e003a8f73e38ceb1d372a2bf44fe79f4 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 18 Aug 2026 15:38:23 -0400 Subject: [PATCH] Update aiClientConfig --- src/lib/aiClientConfig.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/aiClientConfig.ts b/src/lib/aiClientConfig.ts index f38f7c466..83cca4d6d 100644 --- a/src/lib/aiClientConfig.ts +++ b/src/lib/aiClientConfig.ts @@ -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"