feat(assistant): пресет провайдера HuggingFace Router

Добавлен OpenAI-совместимый шлюз HuggingFace Router
(router.huggingface.co/v1/chat/completions, дефолт Qwen/Qwen2.5-72B-Instruct)
в ASSISTANT_PRESETS — выбирается из выпадашки при добавлении провайдера.
Эндпоинт /models публичный (121 модель), «Загрузить модели» работает;
нужен HF access-token с правом inference.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maxim Dolgolyov
2026-06-24 14:23:55 +03:00
parent d15c15ef2a
commit 4d2d02f080
@@ -939,6 +939,7 @@ const ASSISTANT_PRESETS = [
{ name: 'Google Gemini', url: 'https://generativelanguage.googleapis.com/v1beta/openai/chat/completions', model: 'gemini-2.5-flash' },
{ name: 'Groq', url: 'https://api.groq.com/openai/v1/chat/completions', model: 'llama-3.3-70b-versatile' },
{ name: 'OpenRouter', url: 'https://openrouter.ai/api/v1/chat/completions', model: 'meta-llama/llama-3.3-70b-instruct:free' },
{ name: 'HuggingFace Router', url: 'https://router.huggingface.co/v1/chat/completions', model: 'Qwen/Qwen2.5-72B-Instruct' },
{ name: 'Ollama (локально)', url: 'http://localhost:11434/v1/chat/completions', model: 'qwen2.5:3b' },
];
// Проверенные бесплатные модели шлюза Kilo (отдают чистый русский). Порядок — от мощных к лёгким.