добавит процент крутости у модели
This commit is contained in:
1 parent
b0541faa3d
commit
8812393f9f
4 files changed
+28
-4
No files matched your search
+4
-2
@@ -10,6 +10,7 @@ from aiogram.types import (
|
||||
from commands import *
|
||||
from config import *
|
||||
from supergenerator import *
|
||||
from trust import *
|
||||
|
||||
|
||||
@router.callback_query(F.data.startswith("prov%"))
|
||||
@@ -37,11 +38,12 @@ async def select_provider_callback(callback: CallbackQuery):
|
||||
shown.add(base_model)
|
||||
|
||||
i += 1
|
||||
m_trust = round(get_display_trust([provider, base_model]))
|
||||
full_model = f"{provider}*{base_model}"
|
||||
if full_model == user_model or user_model.startswith(full_model + "*"):
|
||||
text = f"{base_model} ✅"
|
||||
text = f"{base_model} ({m_trust}%) ✅"
|
||||
else:
|
||||
text = base_model
|
||||
text = f"{base_model} ({m_trust}%)"
|
||||
|
||||
if MODELS[provider][model].get("alias"):
|
||||
base_model = MODELS[provider][model].get("alias")
|
||||
|
||||
Reference in new issue
Block a user