Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
romanventskus-u committed Mar 3, 2024
1 parent 6a23b85 commit 773dc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/model/chat_complete/response/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Message {
role: json["role"] ?? "",
content: json["content"] ?? "",
functionCall: json["function_call"],
toolCalls: List<Map<String, dynamic>>.from(
toolCalls: json['tool_calls'] == null ? null : List<Map<String, dynamic>>.from(
json["tool_calls"].map((x) => Map<String, dynamic>.from(x)),
),
);
Expand Down

0 comments on commit 773dc2c

Please sign in to comment.