Explorar el Código

hotfix tools empty array

lloydzhou hace 1 año
padre
commit
7c0acc7b77
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/utils/chat.ts

+ 1 - 1
app/utils/chat.ts

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