openai_struct/models/static_chunking_strategy.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 StaticChunkingStrategy {
16 /// 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`.
17 #[serde(rename = "chunk_overlap_tokens")]
18 pub chunk_overlap_tokens: i32,
19 /// The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`.
20 #[serde(rename = "max_chunk_size_tokens")]
21 pub max_chunk_size_tokens: i32,
22}