hotfix tools empty array

This commit is contained in:
lloydzhou 2024-09-05 22:02:06 +08:00
parent f32dd69acf
commit 7c0acc7b77
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ export function stream(
method: "POST",
body: JSON.stringify({
...requestPayload,
tools,
tools: tools && tools.length ? tools : undefined,
}),
signal: controller.signal,
headers,