The union `CreateFileSearchToolResourceOptions` is not correctly defined. Extract `vectorStoreIds` variant into a model.
jpalvarezl opened this issue · 0 comments
jpalvarezl commented
union CreateFileSearchToolResourceOptions
is defined as a vectorStoreIds
or vectorStores
. The former is a String[]
. To help code generation this should be extracted into a model.
This problem was introduced with the Assistant V2
spec.
In the case of Java we had to introduce:
CreateFileSearchToolResourceOptions
: handling the unionCreateFileSearchToolResourceVectorStoreIds
: handling thestring[]
side of the unionCreateFileSearchToolResourceVectorStoreOptionsList
: handling theCreateFileSearchToolResourceVectorStoreOptions[]
side of the union