feat(ui): refine subscription model and usage controls

This commit is contained in:
Alexandre Teixeira
2026-09-22 13:12:19 +01:00
parent ed7ccfd584
commit 411559913c
17 changed files with 1258 additions and 103 deletions
+7 -1
View File
@@ -1663,7 +1663,12 @@ def setup_model_routes(model_discovery):
for m in pinned:
if m not in curated:
curated.append(m)
extra = [m for m in extra if m not in pinned]
models_metadata = {}
from src.chatgpt_subscription import get_chatgpt_model_metadata
for mid in list(curated) + list(extra):
meta = get_chatgpt_model_metadata(mid)
if meta:
models_metadata[mid] = meta
items.append({
"host": "custom",
"port": 0,
@@ -1677,6 +1682,7 @@ def setup_model_routes(model_discovery):
"category": category,
"endpoint_kind": kind,
"model_type": ep_model_type,
"models_metadata": models_metadata,
})
else:
# Endpoint unreachable but still show it greyed out