Make cache text gray

This commit is contained in:
David Corbitt
2023-08-12 03:06:19 -07:00
parent b06ab2cbf9
commit 5fa5109f34

View File

@@ -15,7 +15,6 @@ import {
} from "@chakra-ui/react";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import { useMemo } from "react";
import Link from "next/link";
import { type RouterOutputs } from "~/utils/api";
@@ -53,9 +52,11 @@ export const TableRow = ({
const durationCell = (
<Td isNumeric>
{loggedCall.cacheHit
? "Cache hit"
: ((loggedCall.modelResponse?.durationMs ?? 0) / 1000).toFixed(2) + "s"}
{loggedCall.cacheHit ? (
<Text color="gray.500">Cached</Text>
) : (
((loggedCall.modelResponse?.durationMs ?? 0) / 1000).toFixed(2) + "s"
)}
</Td>
);