Skip to content

Commit d3cbb96

Browse files
authored
πŸ› Initialization title is not adapted to the language.
2 parents 72d933e + d68d015 commit d3cbb96

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ uploads/
1414
docker/elasticsearch
1515
docker/minio
1616
docker/postgresql
17-
docker/redis
17+
docker/redis_data
1818
docker/uploads
1919
docker/.env
2020

β€Žfrontend/app/[locale]/chat/internal/chatInterface.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

β€Žfrontend/services/conversationService.tsβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
Β (0)