Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspar09 committed Apr 19, 2024
1 parent 800f28d commit 922e1f3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/react/use-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,15 @@ const getStreamedResponse = async (
const constructedMessagesPayload = sendExtraMessageFields
? chatRequest.messages
: chatRequest.messages.map(
({ role, content, data, name, function_call, tool_calls, tool_call_id }) => ({
({
role,
content,
data,
name,
function_call,
tool_calls,
tool_call_id,
}) => ({
role,
content,
tool_call_id,
Expand Down

0 comments on commit 922e1f3

Please sign in to comment.