mirror of
https://github.com/TejasQ/basically-ai-harness.git
synced 2026-06-14 03:30:26 +00:00
9 lines
240 B
TypeScript
9 lines
240 B
TypeScript
import OpenAI from "openai";
|
|
import "dotenv/config";
|
|
|
|
// OpenRouter is OpenAI-compatible. We just swap the baseURL.
|
|
export const client = new OpenAI({
|
|
baseURL: "https://openrouter.ai/api/v1",
|
|
apiKey: process.env.OPENROUTER_API_KEY,
|
|
});
|