feat(lib): add OpenRouter client implementation
This commit is contained in:
1 parent
c3e3018018
commit
a897e8ead1
1 file changed
+9
@@ -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,
|
||||||
|
});
|
||||||
Reference in new issue
Block a user