Fix import for sanity sake
This commit is contained in:
parent
318927e2ea
commit
11a16b81ec
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ import { cookies } from 'next/headers';
|
||||||
import { notFound } from 'next/navigation';
|
import { notFound } from 'next/navigation';
|
||||||
|
|
||||||
import { auth } from '@/app/(auth)/auth';
|
import { auth } from '@/app/(auth)/auth';
|
||||||
import { Chat as PreviewChat } from '@/components/chat';
|
import { Chat } from '@/components/chat';
|
||||||
import { DEFAULT_MODEL_NAME, models } from '@/lib/ai/models';
|
import { DEFAULT_MODEL_NAME, models } from '@/lib/ai/models';
|
||||||
import { getChatById, getMessagesByChatId } from '@/lib/db/queries';
|
import { getChatById, getMessagesByChatId } from '@/lib/db/queries';
|
||||||
import { convertToUIMessages } from '@/lib/utils';
|
import { convertToUIMessages } from '@/lib/utils';
|
||||||
|
|
@ -37,7 +37,7 @@ export default async function Page(props: { params: Promise<{ id: string }> }) {
|
||||||
DEFAULT_MODEL_NAME;
|
DEFAULT_MODEL_NAME;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PreviewChat
|
<Chat
|
||||||
id={chat.id}
|
id={chat.id}
|
||||||
initialMessages={convertToUIMessages(messagesFromDb)}
|
initialMessages={convertToUIMessages(messagesFromDb)}
|
||||||
selectedModelId={selectedModelId}
|
selectedModelId={selectedModelId}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue