Wilker
fix: troca default para ministral3b-mst (groq HTTP, zero RAM local) evita OOM no boot
8b22735 | # โโ Configuration Module โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| """Configuraรงรฃo independente sem imports circulares""" | |
| TEXT_MODELS = { | |
| # โโ KILO BACKEND (do maior para o menor porte) โโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| "nemotron-ultra-free": { | |
| "backend": "kilo", | |
| "model_id": "nvidia/nemotron-3-ultra-550b-a55b:free", | |
| "label": "Nemotron Ultra 550B (free)", | |
| "desc": "๐ Kilo free โข 550B NVIDIA", | |
| }, | |
| "hy3-free": { | |
| "backend": "kilo", | |
| "model_id": "tencent/hy3:free", | |
| "label": "Hy3 295B (free)", | |
| "desc": "๐ฅ Kilo free โข 295B MoE Tencent", | |
| }, | |
| "nemotron-super-free": { | |
| "backend": "kilo", | |
| "model_id": "nvidia/nemotron-3-super-120b-a12b:free", | |
| "label": "Nemotron Super 120B (free)", | |
| "desc": "๐ Kilo free โข 120B NVIDIA", | |
| }, | |
| "laguna-free": { | |
| "backend": "kilo", | |
| "model_id": "poolside/laguna-m.1:free", | |
| "label": "Laguna M.1 (free)", | |
| "desc": "โก Kilo free โข Poolside", | |
| }, | |
| "laguna-xs-free": { | |
| "backend": "kilo", | |
| "model_id": "poolside/laguna-xs-2.1:free", | |
| "label": "Laguna XS 2.1 (free)", | |
| "desc": "โก Kilo free โข coding agent 33B", | |
| }, | |
| "nemotron-nano-omni-free": { | |
| "backend": "kilo", | |
| "model_id": "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free", | |
| "label": "Nemotron Nano Omni 30B (free)", | |
| "desc": "โก Kilo free โข multimodal + reasoning", | |
| }, | |
| "north-mini-code-free": { | |
| "backend": "kilo", | |
| "model_id": "cohere/north-mini-code:free", | |
| "label": "North Mini Code (free)", | |
| "desc": "๐ป Kilo free โข Cohere coding", | |
| }, | |
| "openrouter-auto-free": { | |
| "backend": "kilo", | |
| "model_id": "openrouter/free", | |
| "label": "OpenRouter Auto (free)", | |
| "desc": "๐ฒ Kilo free โข roteador automรกtico", | |
| }, | |
| # โโ OPENROUTER BACKEND (texto, do maior para o menor porte) โโโโโโโโโโโโโ | |
| "gemma4-31b-free": { | |
| "backend": "openrouter", | |
| "model_id": "google/gemma-4-31b-it:free", | |
| "label": "Gemma 4 31B (free)", | |
| "desc": "๐ฅ OpenRouter free โข Google", | |
| }, | |
| "nemotron-nano30b-free": { | |
| "backend": "openrouter", | |
| "model_id": "nvidia/nemotron-3-nano-30b-a3b:free", | |
| "label": "Nemotron Nano 30B (free)", | |
| "desc": "โก OpenRouter free โข rรกpido", | |
| }, | |
| "gemma4-26b-free": { | |
| "backend": "openrouter", | |
| "model_id": "google/gemma-4-26b-a4b-it:free", | |
| "label": "Gemma 4 26B A4B (free)", | |
| "desc": "๐ฅ OpenRouter free โข Google", | |
| }, | |
| "gptoss-20b-free": { | |
| "backend": "openrouter", | |
| "model_id": "openai/gpt-oss-20b:free", | |
| "label": "GPT-OSS 20B (free)", | |
| "desc": "๐ค OpenRouter free โข OpenAI open-weight", | |
| }, | |
| "nemotron-vl-free": { | |
| "backend": "openrouter", | |
| "model_id": "nvidia/nemotron-nano-12b-v2-vl:free", | |
| "label": "Nemotron Nano 12B VL (free)", | |
| "desc": "๐ OpenRouter free โข visรฃo + texto", | |
| }, | |
| "nemotron-nano9b-free": { | |
| "backend": "openrouter", | |
| "model_id": "nvidia/nemotron-nano-9b-v2:free", | |
| "label": "Nemotron Nano 9B (free)", | |
| "desc": "โก OpenRouter free โข ultra rรกpido", | |
| }, | |
| # โโ OPENROUTER BACKEND (รกudio โ geraรงรฃo de mรบsica, PAGO) โโโโโโโโโโโโโโโโ | |
| "lyria-pro-preview": { | |
| "backend": "openrouter", | |
| "model_id": "google/lyria-3-pro-preview", | |
| "label": "Lyria 3 Pro (รกudio)", | |
| "desc": "๐ต OpenRouter โข geraรงรฃo de mรบsica (pago: $0.08/mรบsica)", | |
| "paid": True, | |
| }, | |
| "lyria-clip-preview": { | |
| "backend": "openrouter", | |
| "model_id": "google/lyria-3-clip-preview", | |
| "label": "Lyria 3 Clip (รกudio)", | |
| "desc": "๐ต OpenRouter โข geraรงรฃo de mรบsica curta (pago: $0.04/clipe)", | |
| "paid": True, | |
| }, | |
| # โโ GROQ BACKEND โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| "llama33-70b-groq": { | |
| "backend": "groq", | |
| "model_id": "llama-3.3-70b-versatile", | |
| "label": "Llama 3.3 70B (Groq)", | |
| "desc": "โก Groq free โข ultra rรกpido, LPU", | |
| }, | |
| "gptoss120b-groq": { | |
| "backend": "groq", | |
| "model_id": "openai/gpt-oss-120b", | |
| "label": "GPT-OSS 120B (Groq)", | |
| "desc": "๐ฅ Groq free โข open-weight OpenAI", | |
| }, | |
| "gptoss20b-groq": { | |
| "backend": "groq", | |
| "model_id": "openai/gpt-oss-20b", | |
| "label": "GPT-OSS 20B (Groq)", | |
| "desc": "โก Groq free โข rรกpido", | |
| }, | |
| "qwen36-27b-groq": { | |
| "backend": "groq", | |
| "model_id": "qwen/qwen3.6-27b", | |
| "label": "Qwen3.6 27B (Groq)", | |
| "desc": "๐ Groq free โข Alibaba via LPU", | |
| }, | |
| "llama31-8b-groq": { | |
| "backend": "groq", | |
| "model_id": "llama-3.1-8b-instant", | |
| "label": "Llama 3.1 8B (Groq)", | |
| "desc": "โก Groq free โข instant", | |
| }, | |
| "compound-groq": { | |
| "backend": "groq", | |
| "model_id": "groq/compound", | |
| "label": "Compound (Groq)", | |
| "desc": "๐ ๏ธ Groq free โข agente com tool-use nativo", | |
| }, | |
| # โโ MISTRAL BACKEND โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| "mistral-small-mst": { | |
| "backend": "mistral", | |
| "model_id": "mistral-small-latest", | |
| "label": "Mistral Small (free)", | |
| "desc": "๐ซ๐ท Mistral free โข geral", | |
| }, | |
| "open-nemo-mst": { | |
| "backend": "mistral", | |
| "model_id": "open-mistral-nemo", | |
| "label": "Mistral Nemo (free)", | |
| "desc": "๐ซ๐ท Mistral free โข open-weight", | |
| }, | |
| "ministral8b-mst": { | |
| "backend": "mistral", | |
| "model_id": "ministral-8b-latest", | |
| "label": "Ministral 8B (free)", | |
| "desc": "โก Mistral free โข rรกpido", | |
| }, | |
| "ministral3b-mst": { | |
| "backend": "mistral", | |
| "model_id": "ministral-3b-latest", | |
| "label": "Ministral 3B (free)", | |
| "desc": "โก Mistral free โข ultra rรกpido", | |
| }, | |
| "devstral-mst": { | |
| "backend": "mistral", | |
| "model_id": "devstral-latest", | |
| "label": "Devstral (free)", | |
| "desc": "๐ป Mistral free โข especialista cรณdigo", | |
| }, | |
| "magistral-small-mst": { | |
| "backend": "mistral", | |
| "model_id": "magistral-small-latest", | |
| "label": "Magistral Small (free)", | |
| "desc": "๐ง Mistral free โข reasoning", | |
| }, | |
| # โโ GEMINI BACKEND โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| "gemma4-26b-google": { | |
| "backend": "gemini", | |
| "model_id": "gemma-4-26b-a4b-it", | |
| "label": "Gemma 4 26B (Google direto)", | |
| "desc": "๐ฅ Google free โข sem thinkingConfig", | |
| "rpd": 14400, | |
| "rpm": 30, | |
| }, | |
| "gemma4-31b-google": { | |
| "backend": "gemini", | |
| "model_id": "gemma-4-31b-it", | |
| "label": "Gemma 4 31B (Google direto)", | |
| "desc": "๐ฅ Google free โข sem thinkingConfig", | |
| "rpd": 14400, | |
| "rpm": 30, | |
| }, | |
| "gemini31-flash-lite": { | |
| "backend": "gemini", | |
| "model_id": "gemini-3.1-flash-lite", | |
| "label": "Gemini 3.1 Flash Lite", | |
| "desc": "โก Google free โข leve, cota maior", | |
| "rpd": 500, | |
| "rpm": 15, | |
| }, | |
| "gemini35-flash": { | |
| "backend": "gemini", | |
| "model_id": "gemini-3.5-flash", | |
| "label": "Gemini 3.5 Flash", | |
| "desc": "โจ Google free โข mais recente", | |
| "rpd": 20, | |
| "rpm": 5, | |
| }, | |
| "gemini3-flash-preview": { | |
| "backend": "gemini", | |
| "model_id": "gemini-3-flash-preview", | |
| "label": "Gemini 3 Flash Preview", | |
| "desc": "๐ฌ Google free โข preview", | |
| "rpd": 20, | |
| "rpm": 5, | |
| }, | |
| "gemini-flash-lite-latest": { | |
| "backend": "gemini", | |
| "model_id": "gemini-flash-lite-latest", | |
| "label": "Gemini Flash Lite (latest)", | |
| "desc": "โก Google free โข leve, 20/dia", | |
| "rpd": 20, | |
| "rpm": 10, | |
| }, | |
| # โโ TRANSFORMERS BACKEND โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| "gemma-1b": { | |
| "backend": "transformers", | |
| "id": "google/gemma-3-1b-it", | |
| "label": "Gemma 3 1B", | |
| "desc": "Rรกpido โข conversaรงรฃo geral", | |
| }, | |
| "qwen-coder-3b": { | |
| "backend": "transformers", | |
| "id": "Qwen/Qwen2.5-Coder-3B-Instruct", | |
| "label": "Qwen2.5-Coder 3B", | |
| "desc": "Especialista em cรณdigo", | |
| }, | |
| # โโ GGUF BACKEND โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| "gemma-4b": { | |
| "backend": "gguf", | |
| "repo": "bartowski/google_gemma-3-4b-it-GGUF", | |
| "file": "google_gemma-3-4b-it-Q4_K_M.gguf", | |
| "label": "Gemma 3 4B", | |
| "desc": "โก Rรกpido โข bem mais forte que o 1B โข ~2.5GB", | |
| }, | |
| "gemma-12b": { | |
| "backend": "gguf", | |
| "repo": "bartowski/google_gemma-3-12b-it-GGUF", | |
| "file": "google_gemma-3-12b-it-Q4_K_M.gguf", | |
| "label": "Gemma 3 12B", | |
| "desc": "๐ Gemma mais forte โข ~7.3GB", | |
| }, | |
| "llama32-3b": { | |
| "backend": "gguf", | |
| "repo": "bartowski/Llama-3.2-3B-Instruct-GGUF", | |
| "file": "Llama-3.2-3B-Instruct-Q4_K_M.gguf", | |
| "label": "Llama 3.2 3B", | |
| "desc": "โก Rรกpido โข teste e bate-papo โข ~2GB", | |
| }, | |
| "llama31-8b": { | |
| "backend": "gguf", | |
| "repo": "bartowski/Meta-Llama-3.1-8B-Instruct-GGUF", | |
| "file": "Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf", | |
| "label": "Llama 3.1 8B", | |
| "desc": "Cรณdigo + matemรกtica โข ~5GB", | |
| }, | |
| "hermes3-8b": { | |
| "backend": "gguf", | |
| "repo": "NousResearch/Hermes-3-Llama-3.1-8B-GGUF", | |
| "file": "Hermes-3-Llama-3.1-8B.Q4_K_M.gguf", | |
| "label": "Nous-Hermes 3 8B", | |
| "desc": "Escrita criativa โข ~5GB", | |
| }, | |
| "qwen-14b-gguf": { | |
| "backend": "gguf", | |
| "repo": "bartowski/Qwen2.5-14B-Instruct-GGUF", | |
| "file": "Qwen2.5-14B-Instruct-Q4_K_M.gguf", | |
| "label": "Qwen2.5 14B GGUF", | |
| "desc": "๐ฅ Mais forte โข mais lento (~9GB)", | |
| }, | |
| "deepseek-r1-distill-14b": { | |
| "backend": "gguf", | |
| "repo": "bartowski/DeepSeek-R1-Distill-Qwen-14B-GGUF", | |
| "file": "DeepSeek-R1-Distill-Qwen-14B-Q4_K_M.gguf", | |
| "label": "DeepSeek R1 Distill 14B", | |
| "desc": "๐งฎ Raciocรญnio avanรงado โข ~9GB GGUF", | |
| }, | |
| } | |
| DEFAULT_MODEL_KEY = "ministral3b-mst" | |
| IMAGE_MODEL_ID = "stabilityai/sd-turbo" | |
| # โโ Transcription Models โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| TRANSCRIPTION_MODELS = { | |
| "whisper-turbo": { | |
| "model_id": "whisper-large-v3-turbo", | |
| "label": "Whisper Large v3 Turbo (Groq)", | |
| "desc": "๐๏ธ Groq free โข rรกpido", | |
| }, | |
| "whisper-v3": { | |
| "model_id": "whisper-large-v3", | |
| "label": "Whisper Large v3 (Groq)", | |
| "desc": "๐๏ธ Groq free โข mais preciso", | |
| }, | |
| } | |