mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-28 19:34:30 +01:00
This commit updates the ViewModel classes for both Chat and Task to accommodate the new structured responses received from the API. These changes are essential for the correct functioning of the application as they deal with the new TaskResponse and Step objects. Updates in ChatViewModel: - Modified `fetchChatsForTask` to handle structured step data - Updated how steps are retrieved and processed Updates in TaskViewModel: - Updated `fetchTasks` to use the new TaskResponse object - Refactored task fetching and selection logic These updates ensure that the ViewModel classes are aligned with the new structured API responses, improving data handling and UI updates.