-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
batch error when upload file vector in file_search type tool assistant ia #805
Comments
Same error |
Same error with library version 4.46.1 |
Hi. Could you show some code? I do:
This works for me but I may have misunderstood your issue. |
Ok this worked for me after changing these lines:
And instead of
I have added this code
Essentially changing from |
But what if the purpose of my assistant is "file_search".
and here is where the error appears |
Thanks for reporting, we'll look into this soon. |
Still getting the same error. Any update on the issue? |
If you attach directly the file to the new thread, it works!
|
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
when i upload file vector to file_seach type tool assistant, then I follow instruction from doc, i had that error when i process to finish data :`js file-batches.js:99
if (files === null || files.length == 0) {
^
TypeError: Cannot read properties of undefined (reading 'length')
`
To Reproduce
1 install
2 create assistant ia tool type file_search
3 upload file for this tools
Code snippets
No response
OS
win 10
Node version
Library version
The text was updated successfully, but these errors were encountered: