consolidate openrouter instance creation
parent
d9053e1fc0
commit
88adc15899
@ -1,14 +1,3 @@
|
|||||||
import { createOpenRouter } from "@openrouter/ai-sdk-provider";
|
|
||||||
import { env } from "./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 = "mistralai/mistral-nemo";
|
||||||
// export const MODEL_NAME = "z-ai/glm-4.5-air";
|
// export const MODEL_NAME = "z-ai/glm-4.5-air";
|
||||||
// export const MODEL_NAME = "openai/gpt-5-mini";
|
// export const MODEL_NAME = "openai/gpt-5-mini";
|
||||||
|
Loading…
Reference in New Issue