openai_struct/models/web_search_context_size.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 WebSearchContextSize : High level guidance for the amount of context window space to use for the search. One of `low`, `medium`, or `high`. `medium` is the default.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16/// # on openai.yaml
17///
18/// ```yaml
19/// WebSearchContextSize:
20/// type: string
21/// description: >
22/// High level guidance for the amount of context window space to use for
23/// the
24///
25/// search. One of `low`, `medium`, or `high`. `medium` is the default.
26/// enum:
27/// - low
28/// - medium
29/// - high
30/// default: medium
31/// ```
32#[derive(Debug, Serialize, Deserialize)]
33#[serde(untagged)]
34#[serde(rename_all = "lowercase")]
35pub enum WebSearchContextSize {
36 Low,
37 Medium,
38 High,
39}
40
41impl Default for WebSearchContextSize {
42 fn default() -> WebSearchContextSize {
43 Self::Medium
44 }
45}