feat(chat): Add folder support in new chat screen

This commit is contained in:
cogwheel0
2025-12-16 19:59:28 +05:30
parent a0aee08e73
commit d67780dbbe
6 changed files with 206 additions and 38 deletions

View File

@@ -812,6 +812,7 @@ class ApiService {
required List<ChatMessage> messages,
String? model,
String? systemPrompt,
String? folderId,
}) async {
_traceApi('Creating new conversation on OpenWebUI server');
_traceApi('Title: $title, Messages: ${messages.length}');
@@ -893,7 +894,7 @@ class ApiService {
'tags': [],
'timestamp': DateTime.now().millisecondsSinceEpoch,
},
'folder_id': null,
'folder_id': folderId,
};
_traceApi('Sending chat data with proper parent-child structure');