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 44bddc2 commit 6a23b85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 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,9 @@ class Message {
role: json["role"] ?? "",
content: json["content"] ?? "",
functionCall: json["function_call"],
toolCalls: json["tool_calls"],
toolCalls: List<Map<String, dynamic>>.from(
json["tool_calls"].map((x) => Map<String, dynamic>.from(x)),
),
);

Map<String, dynamic> toJson() => {
Expand Down

0 comments on commit 6a23b85

Please sign in to comment.