I was working on code that creates an assistant with attached pre-existing vector store. Unfortunately, it doesn't seem to be possible. Since both fields are currently non-Option, the only possible way to create an instance is something like:
The point is that one has to specify both vector_store_ids and vector_stores. Unfortunately, the API doesn't accept this kind of request:
Can't create assistant '{aname}': ApiError(ApiError { message: "file_search tool configuration is invalid. Only one of vector_store_ids or vector_stores should be provided.", type: Some("invalid_request_error"), param: Some("tool_resources.file_search"), code: None })
From the error message I conclude that the right way is to make both fields optional.
Now I wonder how do I attach the vector store to a new assistant...
I was working on code that creates an assistant with attached pre-existing vector store. Unfortunately, it doesn't seem to be possible. Since both fields are currently non-
Option
, the only possible way to create an instance is something like:The point is that one has to specify both
vector_store_ids
andvector_stores
. Unfortunately, the API doesn't accept this kind of request:From the error message I conclude that the right way is to make both fields optional.
Now I wonder how do I attach the vector store to a new assistant...