mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-19 10:42:57 +02:00
Update aiClientConfig
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user