From 773dc2cb4a1ecc5bd8650ba833f5373e13d452b7 Mon Sep 17 00:00:00 2001 From: Roman Ventskus Date: Sun, 3 Mar 2024 21:04:26 +0100 Subject: [PATCH] init --- lib/src/model/chat_complete/response/message.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/model/chat_complete/response/message.dart b/lib/src/model/chat_complete/response/message.dart index 4cda87b..bc02ed6 100644 --- a/lib/src/model/chat_complete/response/message.dart +++ b/lib/src/model/chat_complete/response/message.dart @@ -11,7 +11,7 @@ class Message { role: json["role"] ?? "", content: json["content"] ?? "", functionCall: json["function_call"], - toolCalls: List>.from( + toolCalls: json['tool_calls'] == null ? null : List>.from( json["tool_calls"].map((x) => Map.from(x)), ), );