From 43593d849d2574bc47571b2336cb5243ab1136b1 Mon Sep 17 00:00:00 2001 From: hunteraraujo Date: Thu, 31 Aug 2023 14:41:20 -0700 Subject: [PATCH] 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. --- lib/models/chat.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models/chat.dart b/lib/models/chat.dart index ccc0799f..8a72f35b 100644 --- a/lib/models/chat.dart +++ b/lib/models/chat.dart @@ -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;