hz ne pomny
This commit is contained in:
1 parent
38b936b35f
commit
c033859505
4 files changed
+32
-13
No files matched your search
+9
-2
@@ -202,8 +202,15 @@ async def generate(
|
||||
text = ""
|
||||
|
||||
add_one_to("stats/gens")
|
||||
|
||||
client = providers[model[0]]
|
||||
|
||||
try:
|
||||
client = providers[model[0]]
|
||||
except Exception:
|
||||
text = "произошла ошибка, возможные проблемы:\n" \
|
||||
"1. у вас выбрана удалённая модель или провайдер\n" \
|
||||
"2. конфиг бота настроен неправильно и надо связаться с хостом бота"
|
||||
return text
|
||||
|
||||
text = await openai_generate_text(
|
||||
oai=client,
|
||||
bot=bot,
|
||||
|
||||
Reference in new issue
Block a user