openai_struct/models/model.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 Model : Describes an OpenAI model offering that can be used with the API.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct Model {
18 /// The Unix timestamp (in seconds) when the model was created.
19 #[serde(rename = "created")]
20 pub created: i32,
21 /// The model identifier, which can be referenced in the API endpoints.
22 #[serde(rename = "id")]
23 pub id: String,
24 /// The object type, which is always \"model\".
25 #[serde(rename = "object")]
26 pub object: String,
27 /// The organization that owns the model.
28 #[serde(rename = "owned_by")]
29 pub owned_by: String,
30}