commit 384b74ef70e0e19a3b61112bfd4d8f6f1779b20e
parent ba234cfc5b0cfcd3597093f80970fe05837c058f
Author: Henry Unite <unitehenry@gmail.com>
Date: Thu, 26 Feb 2026 09:07:31 +0000
feat: opencode base url env var
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/prompt.ts b/prompt.ts
@@ -12,7 +12,7 @@ interface PromptParams {
}
export default async (params: PromptParams): Promise<PromptResult> => {
- const baseUrl = "http://127.0.0.1:36967";
+ const baseUrl = process.env.OPENCODE_BASE_URL || undefined;
const { message, sessionId } = params;