From 9d693ebbe501927feea21545d31251f3e2c9b38f Mon Sep 17 00:00:00 2001 From: "Satsuki Akiba (aider)" Date: Wed, 4 Jun 2025 12:04:56 +0900 Subject: [PATCH] fix: correct OpenRouter API endpoint URL --- services/llm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/llm.ts b/services/llm.ts index 5828ec7..6b21159 100644 --- a/services/llm.ts +++ b/services/llm.ts @@ -2,7 +2,7 @@ import { OpenAI, ClientOptions } from "openai"; const clientOptions: ClientOptions = { apiKey: import.meta.env["OPENAI_API_KEY"] ?? "", - baseURL: import.meta.env["OPENAI_API_ENDPOINT"] ?? undefined, + baseURL: import.meta.env["OPENAI_API_ENDPOINT"] ?? "https://openrouter.ai/v1", }; const openai = new OpenAI(clientOptions);