Spaces:
Paused
Paused
Upload 3 files
Browse files- templates/dashboard.html +18 -11
templates/dashboard.html
CHANGED
|
@@ -459,21 +459,22 @@
|
|
| 459 |
margin-top: 1rem;
|
| 460 |
}
|
| 461 |
|
| 462 |
-
/* Token
|
| 463 |
.token-method {
|
| 464 |
-
padding:
|
| 465 |
border-radius: 4px;
|
| 466 |
-
font-size:
|
|
|
|
| 467 |
}
|
| 468 |
|
| 469 |
-
.token-method
|
| 470 |
-
background-color:
|
| 471 |
-
color: #
|
| 472 |
}
|
| 473 |
|
| 474 |
-
.token-method
|
| 475 |
-
background-color:
|
| 476 |
-
color: #
|
| 477 |
}
|
| 478 |
|
| 479 |
/* 时间日期样式 */
|
|
@@ -892,14 +893,20 @@
|
|
| 892 |
<td class="token-count">{{ record.prompt_tokens }}</td>
|
| 893 |
<td class="token-count">{{ record.completion_tokens }}</td>
|
| 894 |
<td>{{ record.prompt_tokens + record.completion_tokens }}</td>
|
| 895 |
-
<td
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 896 |
<td>{{ record.compute_points if record.compute_points is not none else 'null' }}</td>
|
| 897 |
</tr>
|
| 898 |
{% endfor %}
|
| 899 |
</tbody>
|
| 900 |
</table>
|
| 901 |
<div class="token-note">
|
| 902 |
-
<small>* Token计算方式:<span class="token-method
|
| 903 |
</div>
|
| 904 |
</div>
|
| 905 |
</div>
|
|
|
|
| 459 |
margin-top: 1rem;
|
| 460 |
}
|
| 461 |
|
| 462 |
+
/* Token计算方法标签样式 */
|
| 463 |
.token-method {
|
| 464 |
+
padding: 4px 8px;
|
| 465 |
border-radius: 4px;
|
| 466 |
+
font-size: 0.85rem;
|
| 467 |
+
font-weight: 500;
|
| 468 |
}
|
| 469 |
|
| 470 |
+
.token-method-exact {
|
| 471 |
+
background-color: rgba(54, 211, 153, 0.2);
|
| 472 |
+
color: #36d399;
|
| 473 |
}
|
| 474 |
|
| 475 |
+
.token-method-estimate {
|
| 476 |
+
background-color: rgba(251, 189, 35, 0.2);
|
| 477 |
+
color: #fbbd23;
|
| 478 |
}
|
| 479 |
|
| 480 |
/* 时间日期样式 */
|
|
|
|
| 893 |
<td class="token-count">{{ record.prompt_tokens }}</td>
|
| 894 |
<td class="token-count">{{ record.completion_tokens }}</td>
|
| 895 |
<td>{{ record.prompt_tokens + record.completion_tokens }}</td>
|
| 896 |
+
<td>
|
| 897 |
+
{% if record.calculation_method == "精确" %}
|
| 898 |
+
<span class="token-method token-method-exact">精确</span>
|
| 899 |
+
{% else %}
|
| 900 |
+
<span class="token-method token-method-estimate">估算</span>
|
| 901 |
+
{% endif %}
|
| 902 |
+
</td>
|
| 903 |
<td>{{ record.compute_points if record.compute_points is not none else 'null' }}</td>
|
| 904 |
</tr>
|
| 905 |
{% endfor %}
|
| 906 |
</tbody>
|
| 907 |
</table>
|
| 908 |
<div class="token-note">
|
| 909 |
+
<small>* Token计算方式:<span class="token-method token-method-exact">精确</span> 表示调用官方API精确计算,<span class="token-method token-method-estimate">估算</span> 表示使用gpt-4o模型估算。所有统计数据仅供参考,不代表实际计费标准。</small>
|
| 910 |
</div>
|
| 911 |
</div>
|
| 912 |
</div>
|