feat: suporte para provedor OpenRouter
This commit is contained in:
+8
-2
@@ -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'
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user