diff --git a/lib/src/model/thread/response/thread_response.dart b/lib/src/model/thread/response/thread_response.dart index fbcea9b..bc5e985 100644 --- a/lib/src/model/thread/response/thread_response.dart +++ b/lib/src/model/thread/response/thread_response.dart @@ -18,7 +18,7 @@ class ThreadResponse { createdAt: json["created_at"] ?? 0, id: json["id"] ?? '', object: json["object"] ?? '', - toolResources: json['tool_resources']); + toolResources: json['tool_resources'] is Map ? json['tool_resources'] : null); Map toJson() => { "metadata": metadata,