@@ -39,6 +39,7 @@ class FineTuningJobStatus(str, Enum):
3939 STOPPED = "STOPPED" # Job has been stopped by the user or system
4040 COMPLETED = "COMPLETED" # Job has completed successfully
4141 FAILED = "FAILED" # Job has failed to complete
42+ DELETED = "DELETED" # Job has been marked as deleted
4243
4344
4445class FineTuningJobType (str , Enum ):
@@ -79,16 +80,24 @@ class BillingTransactionType(str, Enum):
7980 STRIPE_CHECKOUT = "STRIPE_CHECKOUT"
8081
8182
82- # Enumeration for compute providers
83+ class FineTunedModelStatus (str , Enum ):
84+ """Enum of possible fine-tuned model statuses."""
85+ ACTIVE = "ACTIVE"
86+ DELETED = "DELETED"
87+
88+
8389class ComputeProvider (str , Enum ):
90+ """Enum of possible compute providers."""
8491 GCP = "GCP"
8592 LUM = "LUM"
8693
8794
8895class BaseModel (_BaseModel ):
8996 """Base model for all models."""
97+
9098 def __repr__ (self ):
9199 return self .__str__ ()
100+
92101 def __str__ (self ):
93102 return self .model_dump_json (indent = 2 )
94103
@@ -269,7 +278,8 @@ class FineTuningJobDetailResponse(FineTuningJobResponse):
269278 """
270279 parameters : Dict [str , Any ] = Field (..., description = "The parameters used for the fine-tuning job" )
271280 metrics : Dict [str , Any ] | None = Field (None , description = "The metrics collected during the fine-tuning process" )
272- timestamps : Dict [str , Any ] | None = Field (None , description = "The timestamps recorded during the fine-tuning process" )
281+ timestamps : Dict [str , Any ] | None = Field (None ,
282+ description = "The timestamps recorded during the fine-tuning process" )
273283 model_config = ConfigDict (from_attributes = True )
274284
275285
@@ -292,9 +302,12 @@ class FineTunedModelResponse(BaseModel):
292302 """
293303 id : UUID = Field (..., description = "The unique identifier of the fine-tuned model" )
294304 created_at : DateTime = Field (..., description = "The timestamp when the fine-tuned model was created" )
305+ updated_at : DateTime = Field (..., description = "The timestamp when the fine-tuned model was last updated" )
295306 fine_tuning_job_name : str = Field (..., description = "The name of the associated fine-tuning job" )
307+ status : FineTunedModelStatus = Field (..., description = "The current status of the fine-tuned model" )
296308 name : str = Field (..., description = "The name of the fine-tuned model" )
297- artifacts : Dict [str , Any ] | None = Field (None , description = "Additional artifacts associated with the fine-tuned model" )
309+ artifacts : Dict [str , Any ] | None = Field (None ,
310+ description = "Additional artifacts associated with the fine-tuned model" )
298311 model_config = ConfigDict (from_attributes = True )
299312
300313
0 commit comments