From 6a23b85c2ae9204f2747db64ecb9744349ede3d6 Mon Sep 17 00:00:00 2001 From: Roman Ventskus Date: Sun, 3 Mar 2024 21:02:46 +0100 Subject: [PATCH] init --- lib/src/model/chat_complete/response/message.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/model/chat_complete/response/message.dart b/lib/src/model/chat_complete/response/message.dart index 8bc20cc..4cda87b 100644 --- a/lib/src/model/chat_complete/response/message.dart +++ b/lib/src/model/chat_complete/response/message.dart @@ -11,7 +11,9 @@ class Message { role: json["role"] ?? "", content: json["content"] ?? "", functionCall: json["function_call"], - toolCalls: json["tool_calls"], + toolCalls: List>.from( + json["tool_calls"].map((x) => Map.from(x)), + ), ); Map toJson() => {