openai_struct/models/
chat_completion_message_list.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 ChatCompletionMessageList : An object representing a list of chat completion messages.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ChatCompletionMessageList {
18    /// An array of chat completion message objects.
19    #[serde(rename = "data")]
20    pub data: Vec<Value>,
21    /// The identifier of the first chat message in the data array.
22    #[serde(rename = "first_id")]
23    pub first_id: String,
24    /// Indicates whether there are more chat messages available.
25    #[serde(rename = "has_more")]
26    pub has_more: bool,
27    /// The identifier of the last chat message in the data array.
28    #[serde(rename = "last_id")]
29    pub last_id: String,
30    /// The type of this object. It is always set to \"list\".
31    #[serde(rename = "object")]
32    pub object: String,
33}