fix: Enhance logs table with sorting, quotas, and UI improvements

- Improve LogsTable functionality for admin users.
- Add quota calculation column.
- Display quotas in the summary header.
This commit is contained in:
Laisky.Cai 2024-03-02 01:17:03 +00:00
parent a7c43ab248
commit 5bdf577b0e

View File

@ -359,7 +359,7 @@ const LogsTable = () => {
<Table.Cell>{log.model_name ? <Label basic>{log.model_name}</Label> : ''}</Table.Cell>
<Table.Cell>{log.prompt_tokens ? log.prompt_tokens : ''}</Table.Cell>
<Table.Cell>{log.completion_tokens ? log.completion_tokens : ''}</Table.Cell>
<Table.Cell>{log.quota ? renderQuota(log.quota, 6) : ''}</Table.Cell>
<Table.Cell>{log.quota ? renderQuota(log.quota, 6) : 'free'}</Table.Cell>
<Table.Cell>{log.content}</Table.Cell>
</Table.Row>
);