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