удалить траст
This commit is contained in:
1 parent
351ef31489
commit
5d76e154e0
4 files changed
+2
-71
No files matched your search
+2
-11
@@ -10,7 +10,6 @@ from aiogram.types import (
|
||||
from commands import *
|
||||
from config import *
|
||||
from supergenerator import *
|
||||
from trust import *
|
||||
|
||||
|
||||
@router.callback_query(F.data.startswith("prov%"))
|
||||
@@ -31,8 +30,6 @@ async def select_provider_callback(callback: CallbackQuery):
|
||||
i = 0
|
||||
shown = set()
|
||||
|
||||
auto_entries = expand_auto_models()
|
||||
|
||||
for model in MODELS.get(provider):
|
||||
base_model = model.split("*")[0] if "*" in model else model
|
||||
if base_model in shown:
|
||||
@@ -41,16 +38,10 @@ async def select_provider_callback(callback: CallbackQuery):
|
||||
|
||||
i += 1
|
||||
full_model = f"{provider}*{base_model}"
|
||||
in_auto = any(e == full_model or e.startswith(full_model + "*") for e in auto_entries)
|
||||
if in_auto:
|
||||
m_trust = round(get_display_trust([provider, base_model]))
|
||||
model_text = f"{base_model} ({m_trust}%)"
|
||||
else:
|
||||
model_text = base_model
|
||||
if full_model == user_model or user_model.startswith(full_model + "*"):
|
||||
text = f"{model_text} ✅"
|
||||
text = f"{base_model} ✅"
|
||||
else:
|
||||
text = model_text
|
||||
text = base_model
|
||||
|
||||
if MODELS[provider][model].get("alias"):
|
||||
base_model = MODELS[provider][model].get("alias")
|
||||
|
||||
Reference in new issue
Block a user