openai_struct/models/
ranking_options.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 RankingOptions {
16    /// The ranker to use for the file search.
17    #[serde(rename = "ranker")]
18    pub ranker: Option<String>,
19    /// The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.
20    #[serde(rename = "score_threshold")]
21    pub score_threshold: Option<f32>,
22}