File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
app/[locale]/chat/internal Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ uploads/
1414docker /elasticsearch
1515docker /minio
1616docker /postgresql
17- docker /redis
17+ docker /redis_data
1818docker /uploads
1919docker /.env
2020
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ export function ChatInterface() {
297297 if ( ! currentConversationId || currentConversationId === - 1 ) {
298298 // If no session ID or ID is -1, create new conversation first
299299 try {
300- const createData = await conversationService . create ( ) ;
300+ const createData = await conversationService . create ( t ( "chatInterface.newConversation" ) ) ;
301301 currentConversationId = createData . conversation_id ;
302302
303303 // Update current session state
Original file line number Diff line number Diff line change @@ -31,11 +31,13 @@ export const conversationService = {
3131 } ,
3232
3333 // Create new conversation
34- async create ( ) {
34+ async create ( title ?: string ) {
3535 const response = await fetch ( API_ENDPOINTS . conversation . create , {
3636 method : 'PUT' ,
3737 headers : getAuthHeaders ( ) ,
38- body : JSON . stringify ( { } ) ,
38+ body : JSON . stringify ( {
39+ title : title || "new conversation"
40+ } ) ,
3941 } ) ;
4042
4143 const data = await response . json ( ) ;
You canβt perform that action at this time.
0 commit comments