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 {
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user