import { VStack, Text, HStack, type StackProps, GridItem, SimpleGrid, Link, } from "@chakra-ui/react"; import { modelStats } from "~/modelProviders/modelStats"; import { type SupportedModel } from "~/server/types"; export const ModelStatsCard = ({ label, model }: { label: string; model: SupportedModel }) => { const stats = modelStats[model]; return ( {label} {stats.provider} /{" "} {model} Learn More ${(stats.promptTokenPrice * 1000).toFixed(3)} / 1K tokens } /> ${(stats.promptTokenPrice * 1000).toFixed(3)} / 1K tokens } /> {stats.speed}} /> ); }; const SelectedModelLabeledInfo = ({ label, info, ...props }: { label: string; info: string | number | React.ReactElement; } & StackProps) => ( {label} {info} );