openai_struct/models/
chunking_strategy_request_param.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/// pub ChunkingStrategyRequestParam : The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16use crate::{AutoChunkingStrategyRequestParam, StaticChunkingStrategyRequestParam};
17
18/// # on openapi.yaml
19///
20/// ```yaml
21/// ChunkingStrategyRequestParam:
22///   type: object
23///   description:
24///     The chunking strategy used to chunk the file(s). If not set, will
25///     use the `auto` strategy.
26///   oneOf:
27///     - $ref: "#/components/schemas/AutoChunkingStrategyRequestParam"
28///     - $ref: "#/components/schemas/StaticChunkingStrategyRequestParam"
29/// ```
30#[derive(Debug, Serialize, Deserialize)]
31pub enum ChunkingStrategyRequestParam {
32    Auto(AutoChunkingStrategyRequestParam),
33    Static(StaticChunkingStrategyRequestParam),
34}