openai_struct/models/fine_tuning_job.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 FineTuningJob : The `fine_tuning.job` object represents a fine-tuning job that has been created through the API.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct FineTuningJob {
18 /// The Unix timestamp (in seconds) for when the fine-tuning job was created.
19 #[serde(rename = "created_at")]
20 pub created_at: i32,
21 #[serde(rename = "error")]
22 pub error: crate::models::FineTuningJobError,
23 /// The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.
24 #[serde(rename = "estimated_finish")]
25 pub estimated_finish: Option<i32>,
26 /// The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.
27 #[serde(rename = "fine_tuned_model")]
28 pub fine_tuned_model: String,
29 /// The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.
30 #[serde(rename = "finished_at")]
31 pub finished_at: i32,
32 #[serde(rename = "hyperparameters")]
33 pub hyperparameters: crate::models::FineTuningJobHyperparameters,
34 /// The object identifier, which can be referenced in the API endpoints.
35 #[serde(rename = "id")]
36 pub id: String,
37 /// A list of integrations to enable for this fine-tuning job.
38 #[serde(rename = "integrations")]
39 pub integrations: Option<Vec<Value>>,
40 #[serde(rename = "metadata")]
41 pub metadata: Option<crate::models::Metadata>,
42 #[serde(rename = "method")]
43 pub method: Option<crate::models::FineTuneMethod>,
44 /// The base model that is being fine-tuned.
45 #[serde(rename = "model")]
46 pub model: String,
47 /// The object type, which is always \"fine_tuning.job\".
48 #[serde(rename = "object")]
49 pub object: String,
50 /// The organization that owns the fine-tuning job.
51 #[serde(rename = "organization_id")]
52 pub organization_id: String,
53 /// The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the [Files API](/docs/api-reference/files/retrieve-contents).
54 #[serde(rename = "result_files")]
55 pub result_files: Vec<String>,
56 /// The seed used for the fine-tuning job.
57 #[serde(rename = "seed")]
58 pub seed: i32,
59 /// The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`.
60 #[serde(rename = "status")]
61 pub status: String,
62 /// The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
63 #[serde(rename = "trained_tokens")]
64 pub trained_tokens: i32,
65 /// The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).
66 #[serde(rename = "training_file")]
67 pub training_file: String,
68 /// The file ID used for validation. You can retrieve the validation results with the [Files API](/docs/api-reference/files/retrieve-contents).
69 #[serde(rename = "validation_file")]
70 pub validation_file: String,
71}