more error handling + photos in reply in guest

This commit is contained in:
huker667 committed 2026-05-22 20:04:26 +03:00
1 parent b027361586
commit a60caf5dba
2 files changed
+34 -14

No files matched your search

+5 -1
View File
@@ -149,7 +149,11 @@ async def generate(
user_contexts[user_id] = []
config = get_user_config(user_id)
model = config.get("model").split("*", 2)
if "*" in config.get("model", ""):
model = config.get("model").split("*", 2)
else:
print(f"{RED} -- err model - failed to get prov&model in \"{config.get('model','')}\"{RESET}")
return "произошла ошибка при парсинге вашей выбранной модели. либо хост бота гандон либо тебе надо сменить модель в настройках!!"
stream_cf = config["stream"]
if stream_cf == "native" and user_id == chat_id: