fix: correct OpenRouter API endpoint URL
This commit is contained in:
1 parent
e2fc73b479
commit
9d693ebbe5
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user