forked from retoor/devplacepy
yex
This commit is contained in:
@@ -341,6 +341,17 @@
|
||||
<span class="ai-quota-detail">${{ '%.4f'|format(ai_quota.spent_usd) }} / {% if ai_quota.unlimited %}no cap{% else %}${{ '%.2f'|format(ai_quota.limit_usd) }}{% endif %} · {{ ai_quota.turns }} Devii turns</span>
|
||||
</div>
|
||||
</div>
|
||||
{% if 'gateway_used_pct' in ai_quota %}
|
||||
<div class="ai-quota" data-ai-quota-gateway>
|
||||
<div class="ai-quota-bar">
|
||||
<span class="ai-quota-fill {% if not ai_quota.gateway_unlimited and ai_quota.gateway_used_pct >= 90 %}ai-quota-danger{% endif %}" style="--quota-pct: {{ 0 if ai_quota.gateway_unlimited else ai_quota.gateway_used_pct }}%"></span>
|
||||
</div>
|
||||
<div class="ai-quota-meta">
|
||||
<span class="ai-quota-pct">{% if ai_quota.gateway_unlimited %}No gateway daily cap{% else %}{{ ai_quota.gateway_used_pct }}% of gateway quota used{% endif %}</span>
|
||||
<span class="ai-quota-detail">${{ '%.4f'|format(ai_quota.gateway_spent_usd) }} / {% if ai_quota.gateway_unlimited %}no cap{% else %}${{ '%.2f'|format(ai_quota.gateway_limit_usd) }}{% endif %} · direct /openai/v1/* cap{% if ai_quota.gateway_pooled %}, shared pool{% endif %}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<div class="ai-usage-body" data-ai-usage-body>
|
||||
<p class="ai-usage-empty">Loading...</p>
|
||||
@@ -360,6 +371,16 @@
|
||||
<span class="ai-quota-pct">{% if ai_quota.unlimited %}No daily AI spend cap{% else %}{{ ai_quota.used_pct }}% of your daily AI quota used{% endif %}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% if 'gateway_used_pct' in ai_quota %}
|
||||
<div class="ai-quota" data-ai-quota-gateway>
|
||||
<div class="ai-quota-bar">
|
||||
<span class="ai-quota-fill {% if not ai_quota.gateway_unlimited and ai_quota.gateway_used_pct >= 90 %}ai-quota-danger{% endif %}" style="--quota-pct: {{ 0 if ai_quota.gateway_unlimited else ai_quota.gateway_used_pct }}%"></span>
|
||||
</div>
|
||||
<div class="ai-quota-meta">
|
||||
<span class="ai-quota-pct">{% if ai_quota.gateway_unlimited %}No gateway daily cap{% else %}{{ ai_quota.gateway_used_pct }}% of your gateway quota used{% endif %}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<p class="ai-usage-empty">Quota unavailable.</p>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user