Commit 883c508
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 null1 parent 86eab3a commit 883c508
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
0 commit comments