This commit is contained in:
archer
2023-06-12 20:52:51 +08:00
parent 36a0ea7e43
commit ca4cd8af9d
9 changed files with 12 additions and 12 deletions

View File

@@ -645,7 +645,7 @@ const Chat = ({ modelId, chatId }: { modelId: string; chatId: string }) => {
fontSize={['sm', 'md']}
onClick={() => router.push(`/model?modelId=${chatData.modelId}`)}
>
{chatData.model.name} {ChatModelMap[chatData.chatModel].name}
{chatData.model.name} {ChatModelMap[chatData.chatModel]?.name}
{chatData.history.length > 0 ? ` (${chatData.history.length})` : ''}
</Box>
{chatId ? (