export type AIProvider = 'gemini' | 'openai' | 'ollama' | 'openrouter';

export const OLLAMA_AUTO_DETECT_URLS = [
  'http://localhost:11434',
  'http://127.0.0.1:11434',
  'http://192.168.1.100:11434',
  'http://10.0.0.1:11434',
  'http://10.0.1.1:11434',
  'https://llm.reifonas.cloud',
  'http://ollama:11434',
  'http://host.docker.internal:11434',
];

export interface ProviderConfig {
  id: AIProvider;
  name: string;
  description: string;
  models: string[];
  requiresEndpoint?: boolean;
  defaultModel: string;
}

export const PROVIDERS: ProviderConfig[] = [
  {
    id: 'gemini',
    name: 'Google Gemini',
    description: 'Modelos avançados do Google com visão multimodal',
    models: ['gemini-2.0-flash', 'gemini-2.5-flash', 'gemini-2.5-pro'],
    defaultModel: 'gemini-2.5-flash'
  },
  {
    id: 'openai',
    name: 'OpenAI',
    description: 'GPT-4 e modelos de visão da OpenAI',
    models: ['gpt-4o', 'gpt-4o-mini', 'gpt-4-turbo', 'gpt-4-vision-preview'],
    defaultModel: 'gpt-4o'
  },

  {
    id: 'ollama',
    name: 'Ollama (Local)',
    description: 'LLMs rodando localmente na sua VPS',
    models: [],
    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'
  }
];