Revert "chore: cleanup context window ui, adjust for reasoning + added db migration" (#1169)
This commit is contained in:
parent
02dde68ea3
commit
d3b3449eb8
13 changed files with 142 additions and 873 deletions
|
|
@ -7,7 +7,6 @@ import { getChatById, getMessagesByChatId } from '@/lib/db/queries';
|
|||
import { DataStreamHandler } from '@/components/data-stream-handler';
|
||||
import { DEFAULT_CHAT_MODEL } from '@/lib/ai/models';
|
||||
import { convertToUIMessages } from '@/lib/utils';
|
||||
import { LanguageModelV2Usage } from '@ai-sdk/provider';
|
||||
|
||||
export default async function Page(props: { params: Promise<{ id: string }> }) {
|
||||
const params = await props.params;
|
||||
|
|
@ -54,7 +53,6 @@ export default async function Page(props: { params: Promise<{ id: string }> }) {
|
|||
isReadonly={session?.user?.id !== chat.userId}
|
||||
session={session}
|
||||
autoResume={true}
|
||||
initialLastContext={chat.lastContext}
|
||||
/>
|
||||
<DataStreamHandler />
|
||||
</>
|
||||
|
|
@ -71,7 +69,6 @@ export default async function Page(props: { params: Promise<{ id: string }> }) {
|
|||
isReadonly={session?.user?.id !== chat.userId}
|
||||
session={session}
|
||||
autoResume={true}
|
||||
initialLastContext={chat.lastContext}
|
||||
/>
|
||||
<DataStreamHandler />
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue