feat: input de modelo manual para OpenRouter
This commit is contained in:
@@ -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' };
|
||||
|
||||
Reference in New Issue
Block a user