mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Simplify status usage limit output
This commit is contained in:
parent
bf78000b52
commit
de806e7945
1 changed files with 1 additions and 4 deletions
|
|
@ -1414,10 +1414,7 @@ function upsertThread(threads: Thread[], thread: Thread): Thread[] {
|
|||
}
|
||||
|
||||
function usageLimitStatusLines(limit: RateLimitSummary): string[] {
|
||||
return [
|
||||
`Usage limits: ${limit.title}`,
|
||||
...limit.rows.map((row) => `- ${row.label}: ${row.value}${row.resetLabel ? ` (${row.resetLabel})` : ""}`),
|
||||
];
|
||||
return ["Usage limits", ...limit.rows.map((row) => `${row.label}: ${row.value}${row.resetLabel ? ` (${row.resetLabel})` : ""}`)];
|
||||
}
|
||||
|
||||
function jsonPreview(value: unknown, fallback: string): string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue