mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
show status on ui
This commit is contained in:
parent
e8b6d7caa2
commit
3ba518979e
1 changed files with 18 additions and 0 deletions
|
|
@ -56,6 +56,24 @@ export const columns: ColumnDef<LogEntry>[] = [
|
|||
accessorKey: "startTime",
|
||||
cell: (info: any) => <TimeCell utcTime={info.getValue()} />,
|
||||
},
|
||||
{
|
||||
header: "Status",
|
||||
accessorKey: "metadata.status",
|
||||
cell: (info: any) => {
|
||||
const status = info.getValue() || "Success";
|
||||
const isSuccess = status.toLowerCase() !== "failure";
|
||||
|
||||
return (
|
||||
<span className={`px-2 py-1 rounded-md text-xs font-medium inline-block text-center w-16 ${
|
||||
isSuccess
|
||||
? 'bg-green-100 text-green-800'
|
||||
: 'bg-red-100 text-red-800'
|
||||
}`}>
|
||||
{isSuccess ? "Success" : "Failure"}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
header: "Request ID",
|
||||
accessorKey: "request_id",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue