mirror of
https://github.com/praveentcom/openproxy.git
synced 2026-07-15 08:27:20 +02:00
refactor: use Number.parseInt/Number.isNaN for numeric parsing across API and UI
Co-authored-by: Genie <genie@cosine.sh>
This commit is contained in:
committed by
Genie
parent
01737528aa
commit
beb4ce46f1
@@ -40,8 +40,8 @@ export default function ModelBreakdown({ models }: ModelBreakdownProps) {
|
||||
<td style={styles.td}>
|
||||
<strong>{model.model}</strong>
|
||||
</td>
|
||||
<td style={styles.td}>{parseInt(model.request_count).toLocaleString()}</td>
|
||||
<td style={styles.td}>{parseInt(model.total_tokens).toLocaleString()}</td>
|
||||
<td style={styles.td}>{Number.parseInt(model.request_count).toLocaleString()}</td>
|
||||
<td style={styles.td}>{Number.parseInt(model.total_tokens).toLocaleString()}</td>
|
||||
<td style={styles.td}>${parseFloat(model.total_cost).toFixed(4)}</td>
|
||||
<td style={styles.td}>{Math.round(parseFloat(model.avg_response_time))}ms</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user