feat(lib): add OpenRouter client implementation

This commit is contained in:
2026-04-07 08:08:58 -04:00
parent c3e3018018
commit a897e8ead1

View File

@@ -0,0 +1,9 @@
import { OpenRouter } from "@openrouter/sdk";
if (!process.env.OPENROUTER_API_KEY) {
throw new Error("OPENROUTER_API_KEY environment variable is not set");
}
export const openRouterClient = new OpenRouter({
apiKey: process.env.OPENROUTER_API_KEY,
});