УЛЬТРА КРУТОЙ ВАЙБКОД ФИКСЫ И АВТОМОДЕЛЬ ТЕСЛА

This commit is contained in:
huker667 committed 2026-09-15 21:34:10 +03:00
1 parent 5be8fcce19
commit b0541faa3d
8 files changed
+328 -106

No files matched your search

+17 -8
View File
@@ -161,20 +161,29 @@ async def guest_middleware(handler, event, data):
voice = None
model = config["model"].split("*", 1)
model = config["model"].split("*")
is_auto = config["model"] == "all*auto" and AUTO_MODEL and AUTO_MODELS
if VOSK_API != "":
if message.voice:
voice = message.voice
elif replied and replied.voice:
voice = replied.voice
process = {
"text": "wait",
"photo_a": "wait" if replied and replied.photo and MODELS[model[0]].get("vision", False) == False else None,
"photo": "wait" if message.photo and MODELS[model[0]][model[1]].get("vision", False) == False else None,
"stt": "wait" if voice else None,
}
if is_auto:
process = {
"text": "wait",
"photo_a": "wait" if replied and replied.photo else None,
"photo": "wait" if message.photo else None,
"stt": "wait" if voice else None,
}
else:
process = {
"text": "wait",
"photo_a": "wait" if replied and replied.photo and MODELS[model[0]].get("vision", False) == False else None,
"photo": "wait" if message.photo and MODELS[model[0]][model[1]].get("vision", False) == False else None,
"stt": "wait" if voice else None,
}
if event.message:
if (config["stream"] == "edit") or (config["stream"] == "native" and user_id == message.chat.id):