Merge pull request #1 from kmac/add-openrouter-support

feat(providers): added openrouter support
This commit is contained in:
Willie Zutz 2025-07-16 23:50:38 -06:00 committed by GitHub
commit 0d7f83d4fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 108 additions and 0 deletions

View file

@ -43,6 +43,9 @@ interface Config {
LM_STUDIO: {
API_URL: string;
};
OPENROUTER: {
API_KEY: string;
};
CUSTOM_OPENAI: {
API_URL: string;
API_KEY: string;
@ -115,6 +118,8 @@ export const getOpenaiApiKey = () => loadConfig().MODELS.OPENAI.API_KEY;
export const getGroqApiKey = () => loadConfig().MODELS.GROQ.API_KEY;
export const getOpenrouterApiKey = () => loadConfig().MODELS.OPENROUTER.API_KEY;
export const getAnthropicApiKey = () => loadConfig().MODELS.ANTHROPIC.API_KEY;
export const getGeminiApiKey = () => loadConfig().MODELS.GEMINI.API_KEY;