feat: suporte para provedor OpenRouter

This commit is contained in:
2026-06-22 20:06:40 +00:00
parent f41c5eccd2
commit ba10367855
4 changed files with 95 additions and 4 deletions
+8 -2
View File
@@ -1,6 +1,6 @@
import { AIProvider } from './providers';
export type AIProvider = 'gemini' | 'openai' | 'anthropic' | 'azure' | 'ollama';
export type AIProvider = 'gemini' | 'openai' | 'anthropic' | 'azure' | 'ollama' | 'openrouter';
export const OLLAMA_AUTO_DETECT_URLS = [
'http://localhost:11434',
@@ -57,7 +57,13 @@ export const PROVIDERS: ProviderConfig[] = [
name: 'Ollama (Local)',
description: 'LLMs rodando localmente na sua VPS',
models: [],
requiresEndpoint: true,
defaultModel: 'llama3.2-vision'
},
{
id: 'openrouter',
name: 'OpenRouter',
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'
}
];