Skip to content

Commit

Permalink
hotfix tools empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Sep 5, 2024
1 parent f32dd69 commit 7c0acc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export function stream(
method: "POST",
body: JSON.stringify({
...requestPayload,
tools,
tools: tools && tools.length ? tools : undefined,
}),
signal: controller.signal,
headers,
Expand Down

0 comments on commit 7c0acc7

Please sign in to comment.