feat: persist selected provider and keys globally via node backend, remove Claude, Azure, and MiniMax from UI
This commit is contained in:
+2
-23
@@ -1,6 +1,6 @@
|
||||
import { AIProvider } from './providers';
|
||||
|
||||
export type AIProvider = 'gemini' | 'openai' | 'anthropic' | 'azure' | 'ollama' | 'openrouter' | 'minimax';
|
||||
export type AIProvider = 'gemini' | 'openai' | 'ollama' | 'openrouter';
|
||||
|
||||
export const OLLAMA_AUTO_DETECT_URLS = [
|
||||
'http://localhost:11434',
|
||||
@@ -37,21 +37,7 @@ export const PROVIDERS: ProviderConfig[] = [
|
||||
models: ['gpt-4o', 'gpt-4o-mini', 'gpt-4-turbo', 'gpt-4-vision-preview'],
|
||||
defaultModel: 'gpt-4o'
|
||||
},
|
||||
{
|
||||
id: 'anthropic',
|
||||
name: 'Anthropic (Claude)',
|
||||
description: 'Claude 3 com análise avançada de documentos',
|
||||
models: ['claude-3-opus-20240229', 'claude-3-sonnet-20240229', 'claude-3-haiku-20240307'],
|
||||
defaultModel: 'claude-3-sonnet-20240229'
|
||||
},
|
||||
{
|
||||
id: 'azure',
|
||||
name: 'Azure OpenAI',
|
||||
description: 'OpenAI via Azure com segurança enterprise',
|
||||
models: ['gpt-4', 'gpt-4-32k', 'gpt-35-turbo'],
|
||||
requiresEndpoint: true,
|
||||
defaultModel: 'gpt-4'
|
||||
},
|
||||
|
||||
{
|
||||
id: 'ollama',
|
||||
name: 'Ollama (Local)',
|
||||
@@ -65,12 +51,5 @@ export const PROVIDERS: ProviderConfig[] = [
|
||||
description: 'Acesso a múltiplos modelos através do OpenRouter',
|
||||
models: ['google/gemini-2.5-flash', 'google/gemini-2.5-pro', 'anthropic/claude-3.5-sonnet', 'openai/gpt-4o', 'meta-llama/llama-3.1-70b-instruct'],
|
||||
defaultModel: 'google/gemini-2.5-flash'
|
||||
},
|
||||
{
|
||||
id: 'minimax',
|
||||
name: 'MiniMax',
|
||||
description: 'Modelos MiniMax (Vision \u0026 M3)',
|
||||
models: ['abab6.5s-chat', 'minimax-m3', 'minimax-2.7', 'minimax-3.0'],
|
||||
defaultModel: 'minimax-m3'
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user