You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is a Node library issue and not an underlying OpenAI API issue
This is an issue with the Node library
Describe the bug
When using the OpenAI SDK to search a vector store, sending an array of query strings (as stated in the SDK’s TypeScript definition and the official documentation) causes a server error (HTTP 500).
Use the following code (where openai is an instance of OpenAI initialized with a valid API key).
Notice the HTTP 500 error in response.
constopenai=newOpenAI({apiKey: inSessionUserActive.OpenAiToken});constresults=awaitopenai.vectorStores.search({vector_store_id: "vector_store.id",query: ["allowed per passenger","How many woodchucks are allowed per passenger?"]});
Code snippets
TheOpenAISDKTypeScriptdefinitionindicatesanarrayofstringsshouldbe valid:
....openai\src\resources\vector-stores\vector-stores.tsexportinterfaceVectorStoreSearchParams{/** * A query string for a search */
query: string|Array<string>;}
OS
Windows
Node version
v20.12.2
Library version
4.92.1
The text was updated successfully, but these errors were encountered:
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
When using the OpenAI SDK to search a vector store, sending an array of query strings (as stated in the SDK’s TypeScript definition and the official documentation) causes a server error (HTTP 500).
Link to documentation: Open AI Vector Storage Search | Array
To Reproduce
Steps to reproduce the behavior:
Use the following code (where openai is an instance of OpenAI initialized with a valid API key).
Notice the HTTP 500 error in response.
Code snippets
OS
Windows
Node version
v20.12.2
Library version
4.92.1
The text was updated successfully, but these errors were encountered: