feat: input de modelo manual para OpenRouter

This commit is contained in:
2026-06-22 20:15:42 +00:00
parent ba10367855
commit 2243462221
2 changed files with 14 additions and 10 deletions
+1 -8
View File
@@ -245,14 +245,7 @@ const testOpenRouter = async (apiKey: string): Promise<TestResult> => {
}
return {
success: true,
models: [
{ id: 'google/gemini-2.5-flash', name: 'Gemini 2.5 Flash' },
{ id: 'google/gemini-2.5-pro', name: 'Gemini 2.5 Pro' },
{ id: 'anthropic/claude-3.5-sonnet', name: 'Claude 3.5 Sonnet' },
{ id: 'openai/gpt-4o', name: 'GPT-4o' },
{ id: 'meta-llama/llama-3.1-70b-instruct', name: 'Llama 3.1 70B' }
]
success: true
};
} catch (error: any) {
return { success: false, error: error.message || 'Erro ao conectar com OpenRouter' };