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
In general, the oneOf + required mixes structural logic (oneOf) and validation logic (required) so it is less clear and more complex to implement. If you go for better compatibility with existing tools, references may be preferred.
FileSearchWithIds:
type: objectdescription: File search configuration using 'vector_store_ids'.properties:
vector_store_ids:
type: arraydescription: > The [vector store](/docs/api-reference/vector-stores/object) attached to this assistant.maxItems: 1items:
type: stringrequired:
- vector_store_idsFileSearchWithStores:
type: objectdescription: File search configuration using 'vector_stores'.properties:
vector_stores:
type: arraydescription: > Create a vector store and attach it to this assistant.maxItems: 1items:
type: objectproperties:
file_ids:
type: arrayitems:
type: stringdescription: > A helper to create a [vector store](/docs/api-reference/vector-stores/object) with file_ids and attach it to this assistant. There can be a maximum of 1 vector store attached to the assistant.maxItems: 1items:
type: objectproperties:
file_ids:
type: arraydescription: > A list of [file](/docs/api-reference/files) IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.maxItems: 10000items:
type: stringchunking_strategy:
type: objectdescription: The chunking strategy used to chunk the file(s). If not set, willuse the `auto` strategy.oneOf:
- type: objecttitle: Auto Chunking Strategydescription: The default strategy. This strategy currently uses a`max_chunk_size_tokens`of `800` and`chunk_overlap_tokens`of `400`.additionalProperties: falseproperties:
type:
type: stringdescription: Always `auto`.enum:
- autorequired:
- type
- type: objecttitle: Static Chunking StrategyadditionalProperties: falseproperties:
type:
type: stringdescription: Always `static`.enum:
- staticstatic:
type: objectadditionalProperties: falseproperties:
max_chunk_size_tokens:
type: integerminimum: 100maximum: 4096description: The maximum number of tokens in each chunk. The default value is`800`. The minimum value is `100` and themaximum value is `4096`.chunk_overlap_tokens:
type: integerdescription: > The number of tokens that overlap between chunks. The default value is `400`. Note that the overlap must not exceed half of `max_chunk_size_tokens`.required:
- max_chunk_size_tokens
- chunk_overlap_tokensrequired:
- type
- staticx-oaiExpandable: truemetadata:
type: objectdescription: > Set of 16 key-value pairs that can be attached to a vector store. This can be useful for storing additional information about the vector store in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.x-oaiTypeLabel: maprequired:
- vector_stores
The text was updated successfully, but these errors were encountered:
These components
have the following
While not wrong in OpenAPI 3.0 or 3.1, Apple OpenAPI generator is confused by this and prefers
with separate definitions (that I list below).
In general, the oneOf + required mixes structural logic (oneOf) and validation logic (required) so it is less clear and more complex to implement. If you go for better compatibility with existing tools, references may be preferred.
The text was updated successfully, but these errors were encountered: