chore: cleanup context window ui, adjust for reasoning + added db migration

This commit is contained in:
Nicklas Scharpff 2025-09-08 23:47:13 +02:00 committed by GitHub
parent 431eb919b5
commit 02dde68ea3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 875 additions and 144 deletions

View file

@ -31,6 +31,7 @@ export function Chat({
isReadonly,
session,
autoResume,
initialLastContext,
}: {
id: string;
initialMessages: ChatMessage[];
@ -39,6 +40,7 @@ export function Chat({
isReadonly: boolean;
session: Session;
autoResume: boolean;
initialLastContext?: LanguageModelUsage;
}) {
const { visibilityType } = useChatVisibility({
chatId: id,
@ -49,7 +51,9 @@ export function Chat({
const { setDataStream } = useDataStream();
const [input, setInput] = useState<string>('');
const [usage, setUsage] = useState<LanguageModelUsage | undefined>(undefined);
const [usage, setUsage] = useState<LanguageModelUsage | undefined>(
initialLastContext,
);
const {
messages,