feat: persist selected provider and keys globally via node backend, remove Claude, Azure, and MiniMax from UI

This commit is contained in:
2026-06-23 16:50:35 +00:00
parent 7898b131ec
commit 94a41e6a6e
5 changed files with 157 additions and 33 deletions
-6
View File
@@ -69,11 +69,8 @@ export const ApiKeySetup: React.FC<ApiKeySetupProps> = ({ onKeySave }) => {
switch (provider) {
case 'gemini': return 'https://aistudio.google.com/app/apikey';
case 'openai': return 'https://platform.openai.com/api-keys';
case 'anthropic': return 'https://console.anthropic.com/keys';
case 'azure': return 'https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps';
case 'ollama': return 'https://ollama.com/download';
case 'openrouter': return 'https://openrouter.ai/keys';
case 'minimax': return 'https://platform.minimaxi.com/user-center/basic-information/interface-key';
default: return '#';
}
};
@@ -82,11 +79,8 @@ export const ApiKeySetup: React.FC<ApiKeySetupProps> = ({ onKeySave }) => {
switch (provider) {
case 'gemini': return 'Google Gemini';
case 'openai': return 'OpenAI';
case 'anthropic': return 'Anthropic (Claude)';
case 'azure': return 'Azure OpenAI';
case 'ollama': return 'Ollama (Local)';
case 'openrouter': return 'OpenRouter';
case 'minimax': return 'MiniMax';
default: return 'API';
}
};