You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
470 B
TypeScript
15 lines
470 B
TypeScript
import { createOpenRouter } from "@openrouter/ai-sdk-provider";
|
|
import { env } from "../../server/env.js";
|
|
export const openrouter = createOpenRouter({
|
|
apiKey: env.OPENROUTER_API_KEY,
|
|
});
|
|
|
|
export function getOpenrouter(OPENROUTER_API_KEY: string) {
|
|
return createOpenRouter({
|
|
apiKey: OPENROUTER_API_KEY,
|
|
});
|
|
}
|
|
export const MODEL_NAME = "mistralai/mistral-nemo";
|
|
// export const MODEL_NAME = "z-ai/glm-4.5-air";
|
|
// export const MODEL_NAME = "openai/gpt-5-mini";
|