Commit 39bee2f9 authored by Your Name's avatar Your Name

Fix: Model performance Type column now shows provider type (kilo, claude,...

Fix: Model performance Type column now shows provider type (kilo, claude, qwen, etc) instead of generic 'Provider Model'
parent 39a9cb9e
......@@ -773,9 +773,20 @@ class Analytics:
if provider_stats['requests']['total'] == 0:
continue
# Get provider type from config
provider_type = 'unknown'
try:
from .config import config
provider_config = config.get_provider(provider_id)
if provider_config:
provider_type = provider_config.type
except Exception:
pass
results.append({
'provider_id': provider_id,
'model_name': model_name,
'provider_type': provider_type,
'context_size': dim.get('context_size'),
'effective_context': dim.get('effective_context'),
'condense_context': dim.get('condense_context'),
......
......@@ -638,7 +638,7 @@ fetch('{{ url_for(request, "/dashboard/response-cache/stats") }}')
{% elif model.is_autoselect %}
<span style="color: #9b59b6;">Autoselect: {{ model.autoselect_id }}</span>
{% else %}
<span style="color: #3498db;">Provider Model</span>
<span style="color: #3498db;">{{ model.provider_type|title }}</span>
{% endif %}
</td>
<td>{{ model.context_size|default('N/A') }}</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment