feat: use Qwen as default text provider
This commit is contained in:
1 parent
054789049f
commit
5dbe1427eb
5 files changed
+140
-66
No files matched your search
@@ -489,8 +489,8 @@ def provider_submit(
|
||||
text_preset = PROVIDER_PRESETS.get(text_provider_type, {})
|
||||
if not text_use_global and text_preset.get("needs_key") and not text_api_key.strip():
|
||||
errors.append("Укажите API ключ для текстового провайдера или выберите «Использовать глобальные настройки».")
|
||||
if not text_use_global and text_provider_type == "custom" and not text_base_url.strip():
|
||||
errors.append("Для кастомного текстового провайдера укажите Base URL.")
|
||||
if not text_use_global and text_provider_type in ("custom", "qwen") and not (text_base_url.strip() or text_preset.get("base_url")):
|
||||
errors.append("Для этого текстового провайдера укажите Base URL.")
|
||||
|
||||
# Валидация image-провайдера
|
||||
if image_provider_type not in PROVIDER_PRESETS:
|
||||
|
||||
Reference in new issue
Block a user