Thread Truncation Controls
objectControls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.
The truncation strategy to use for the thread. The default is auto. If set to last_messages, the thread will be truncated to the n most recent messages in the thread. When set to auto, messages in the middle of the thread will be dropped to fit the context length of the model, max_prompt_tokens.
Allowed values:autolast_messages
The number of most recent messages from the thread when constructing the context for the run.
>= 1
UpdateVectorStoreRequest
objectThe name of the vector store.
The expiration policy for a vector store.
Show Child Parameters
Set of 16 key-value pairs that can be attached to an object. This can be
useful for storing additional information about the object in a structured
format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings
with a maximum length of 512 characters.
Upload
objectThe Upload object can accept byte chunks in the form of Parts.
The Upload unique identifier, which can be referenced in API endpoints.
The Unix timestamp (in seconds) for when the Upload was created.
The name of the file to be uploaded.
The intended number of bytes to be uploaded.
The intended purpose of the file. Please refer here for acceptable values.
The status of the Upload.
Allowed values:pendingcompletedcancelledexpired
The Unix timestamp (in seconds) for when the Upload was created.
The object type, which is always “upload”.
Allowed values:upload
The ready File object after the Upload is completed.
Show Child Parameters
UploadPart
objectThe upload Part represents a chunk of bytes we can add to an Upload object.
The upload Part unique identifier, which can be referenced in API endpoints.
The Unix timestamp (in seconds) for when the Part was created.
The ID of the Upload object that this Part was added to.
The object type, which is always upload.part.
Allowed values:upload.part
UsageAudioSpeechesResult
objectThe aggregated audio speeches usage details of the specific time bucket.
Allowed values:organization.usage.audio_speeches.result
The number of characters processed.
The count of requests made to the model.
When group_by=project_id, this field provides the project ID of the grouped usage result.
When group_by=user_id, this field provides the user ID of the grouped usage result.
When group_by=api_key_id, this field provides the API key ID of the grouped usage result.
When group_by=model, this field provides the model name of the grouped usage result.