fix: correct OpenRouter API endpoint URL
This commit is contained in:
		@@ -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