more error handling + photos in reply in guest
This commit is contained in:
1 parent
b027361586
commit
a60caf5dba
2 files changed
+34
-14
No files matched your search
+5
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user