-
Notifications
You must be signed in to change notification settings - Fork 253
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
VectorStores list method errors out when no stores defined for a project #242
Comments
Thanks for reporting the error. Do you mind running same example with tracing enabled? so that actual payload which was failed to deserialize is printed, please also post the payload. |
No problem, if I can find out how to enable it. :) I'm afraid, your help in a form of advise is needed here. |
Here's an example which set up tracing and library already has code to log paylod. https://github.com/64bit/async-openai/blob/main/examples/assistants-func-call-stream/src/main.rs#L19 (perhaps this is another opportunity for improvement where failed payload can be part of the |
I finally got time to give the tracing a try. Here is what it says:
|
Thank you for providing the error. This means that the bug is https://github.com/64bit/async-openai/blob/main/async-openai/src/types/vector_store.rs#L108-L109 |
When attempting to list vector stores of a project where no store created yet the method
list
results in:Perhaps the problem is in field
data
ofListVectorStoresResponse
is just aVec
whereas the API can return a JSONnull
for it.The proper fix would be turning the
Vec
intoOption<Vec>
, but it's a breaking change.The text was updated successfully, but these errors were encountered: