Update Chat Model to Use String IDs

This commit updates the Chat model to use string-based identifiers (id and taskId) instead of integers. This change aligns the model with the backend service, which uses string-based UUIDs for task and chat identification.
This commit is contained in:
hunteraraujo
2023-08-31 14:41:20 -07:00
parent 8950ab44be
commit 43593d849d

View File

@@ -2,8 +2,8 @@ import 'package:auto_gpt_flutter_client/models/message_type.dart';
/// Represents a chat message related to a specific task.
class Chat {
final int id;
final int taskId;
final String id;
final String taskId;
final String message;
final DateTime timestamp;
final MessageType messageType;