openai_struct/models/
url_citation_body.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 UrlCitationBody : A citation for a web resource used to generate a model response.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct UrlCitationBody {
18    /// The index of the last character of the URL citation in the message.
19    #[serde(rename = "end_index")]
20    pub end_index: i32,
21    /// The index of the first character of the URL citation in the message.
22    #[serde(rename = "start_index")]
23    pub start_index: i32,
24    /// The title of the web resource.
25    #[serde(rename = "title")]
26    pub title: String,
27    /// The URL of the web resource.
28    #[serde(rename = "url")]
29    pub url: String,
30}