batch error when upload file vector in file_search type tool assistant ia
Problem
Confirm this is a Node library issue and not an underlying OpenAI API issue - [X] This is an issue with the Node library 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 >=20 Library version >=5.4.4
Error Output
error when i process to finish data :`js file-batches.js:99
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: batch error when upload file vector in file_search type tool assistant ia
Hi. Could you show some code? I had this error too while I was trying to implement an assistant with file_search. I do: - Create files with openai.files.create() - Create vector store - CreateAndPoll vector store files. - Update assistant [code block] This works for me but I may have misunderstood your issue.
Trust Score
2 verifications
- 1
Could you show some code?
I had this error too while I was trying to implement an assistant with file_search.
- 2
Create files with openai.files.create()
- Create vector store - CreateAndPoll vector store files. - Update assistant
- 3
This works for me but I may have misunderstood your issue.
This works for me but I may have misunderstood your issue.
Validation
Resolved in openai/openai-node GitHub issue #805. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep