|
|
|
@@ -45,6 +45,7 @@ var JobInfoTypeUnion = types.NewTypeUnion[JobInfo]( |
|
|
|
(*MultiInstanceJobInfo)(nil), |
|
|
|
(*InstanceJobInfo)(nil), |
|
|
|
(*UpdateMultiInstanceJobInfo)(nil), |
|
|
|
(*FinetuningJobInfo)(nil), |
|
|
|
) |
|
|
|
var _ = serder.UseTypeUnionInternallyTagged(&JobInfoTypeUnion, "type") |
|
|
|
|
|
|
|
@@ -66,6 +67,16 @@ type NormalJobInfo struct { |
|
|
|
Services JobServicesInfo `json:"services"` |
|
|
|
} |
|
|
|
|
|
|
|
type FinetuningJobInfo struct { |
|
|
|
serder.Metadata `union:"Finetuning"` |
|
|
|
JobInfoBase |
|
|
|
Type string `json:"type"` |
|
|
|
Files JobFilesInfo `json:"files"` |
|
|
|
Runtime JobRuntimeInfo `json:"runtime"` |
|
|
|
Resources JobResourcesInfo `json:"resources"` |
|
|
|
Services JobServicesInfo `json:"services"` |
|
|
|
} |
|
|
|
|
|
|
|
type DataReturnJobInfo struct { |
|
|
|
serder.Metadata `union:"DataReturn"` |
|
|
|
JobInfoBase |
|
|
|
|