fix: correct OpenRouter API endpoint URL
This commit is contained in:
@ -2,7 +2,7 @@ import { OpenAI, ClientOptions } from "openai";
|
|||||||
|
|
||||||
const clientOptions: ClientOptions = {
|
const clientOptions: ClientOptions = {
|
||||||
apiKey: import.meta.env["OPENAI_API_KEY"] ?? "",
|
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);
|
const openai = new OpenAI(clientOptions);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user