-
Notifications
You must be signed in to change notification settings - Fork 870
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!
|
it is working fine with create and pull but when we use the updateAandPull it's throws the error can anyone able to resolve the issue ? |
Hi, thank you all for reporting that issue, we greatly appreciate the discussion and helpful details you already provided. We will need a bit of time to investigate, it's not directly clear to me if the problem is from our SDK documentation, or OpenAI quick start guide being incorrect / outdated, or if the cause is an actual bug in the SDK or OpenAI backend (or a combination of all of this). I will do some testing on my side and review the thread internally with my colleagues. We will let you know once we have more details, but in the meantime feel free to keep this thread alive. |
Same error |
This works for me, because uploadAndPoll's parameter is
|
As mentioned in the comment above, the issue is that the second parameter in so instead of this (from documentation): add this code: |
Really sorry for the confusion here, @Hussein-Ali-6 is correct, the example snippet in the docs is broken, we'll get this snippet fixed. The next release will also fix the error message here. |
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: