openai_struct/models/
create_vector_store_request.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct CreateVectorStoreRequest {
16    /// The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.
17    #[serde(rename = "chunking_strategy")]
18    pub chunking_strategy: Option<Value>,
19    #[serde(rename = "expires_after")]
20    pub expires_after: Option<crate::models::VectorStoreExpirationAfter>,
21    /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.
22    #[serde(rename = "file_ids")]
23    pub file_ids: Option<Vec<String>>,
24    #[serde(rename = "metadata")]
25    pub metadata: Option<crate::models::Metadata>,
26    /// The name of the vector store.
27    #[serde(rename = "name")]
28    pub name: Option<String>,
29}