удалить траст

This commit is contained in:
huker667 committed 2026-09-16 12:26:16 +03:00
1 parent 351ef31489
commit 5d76e154e0
4 files changed
+2 -71

No files matched your search

-11
View File
@@ -5,7 +5,6 @@ from colors import *
from helpers import *
from config import *
from vars import *
from trust import *
from aiogram.exceptions import TelegramBadRequest
@@ -130,13 +129,6 @@ async def generate(
await msg.edit_text(make_graph(message, process))
expanded = expand_auto_models()
expanded = [
e for _, e in sorted(
enumerate(expanded),
key=lambda x: get_trust(x[1].split("*"))[1] + (5 if x[0] == 0 else 0),
reverse=True
)
]
last_type = ""
for entry in expanded:
if last_type == "da":
@@ -171,9 +163,7 @@ async def generate(
message_id=message_id,
inline_id=inline_id
)
update_trust(parts, text)
last_type = text["type"]
if text == "":
text = {"type": "error", "text": "все модели в автовыборе вернули ошибку"}
else:
@@ -214,7 +204,6 @@ async def generate(
message_id=message_id,
inline_id=inline_id
)
update_trust(model, text)
if user_id:
user_contexts[user_id].append({"role": "assistant", "content": {"type": "text", "text": text["text"]}})