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

@ -33,6 +33,7 @@ interface SettingsType {
};
openaiApiKey: string;
groqApiKey: string;
openrouterApiKey: string;
anthropicApiKey: string;
geminiApiKey: string;
ollamaApiUrl: string;
@ -1673,6 +1674,25 @@ export default function SettingsPage() {
/>
</div>
<div className="flex flex-col space-y-1">
<p className="text-black/70 dark:text-white/70 text-sm">
OpenRouter API Key
</p>
<InputComponent
type="password"
placeholder="OpenRouter API Key"
value={config.openrouterApiKey}
isSaving={savingStates['openrouterApiKey']}
onChange={(e) => {
setConfig((prev) => ({
...prev!,
openrouterApiKey: e.target.value,
}));
}}
onSave={(value) => saveConfig('openrouterApiKey', value)}
/>
</div>
<div className="flex flex-col space-y-1">
<p className="text-black/70 dark:text-white/70 text-sm">
Anthropic API Key