Skip to content

Commit 883c508

Browse files
committed
Make session_id optional in chat endpoint - auto-create sessions
- Changed ChatMessage.session_id from required to Optional[str] - Updated chat endpoint to generate UUID if session_id not provided - Allows frontend to send messages without pre-creating a session - Fixes 400 Bad Request errors when session_id is null
1 parent 86eab3a commit 883c508

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/components/theme-provider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use client';
22

33
import * as React from 'react';
4-
import { ThemeProvider as NextThemesProvider } from 'next-themes';
5-
import { type ThemeProviderProps } from 'next-themes/dist/types';
4+
import { ThemeProvider as NextThemesProvider, ThemeProviderProps } from 'next-themes';
65

76
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
87
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;

0 commit comments

Comments
 (0)