chore: better image gen ux

This commit is contained in:
cogwheel0
2025-08-21 15:08:57 +05:30
parent e63c57d1fe
commit c874031e9b
2 changed files with 279 additions and 6 deletions

View File

@@ -879,6 +879,7 @@ class ApiService {
if (msg.role == 'user' && model != null) 'models': [model],
if (msg.attachmentIds != null && msg.attachmentIds!.isNotEmpty)
'files': msg.attachmentIds!.map((id) => {'file_id': id}).toList(),
if (msg.files != null && msg.files!.isNotEmpty) 'files': msg.files,
};
// Update parent's childrenIds
@@ -902,6 +903,7 @@ class ApiService {
if (msg.role == 'user' && model != null) 'models': [model],
if (msg.attachmentIds != null && msg.attachmentIds!.isNotEmpty)
'files': msg.attachmentIds!.map((id) => {'file_id': id}).toList(),
if (msg.files != null && msg.files!.isNotEmpty) 'files': msg.files,
});
previousId = messageId;