@@ -9,9 +9,9 @@ type ModelVersion struct {
9
9
}
10
10
11
11
type ModelVersionSummary struct {
12
- ID string `json:"modelId"`
13
- LatestVersion string `json:"latestVersion"`
14
- Versions [] string `json:"versions"`
12
+ ID string `json:"modelId"`
13
+ LatestVersion string `json:"latestVersion"`
14
+ Versions SortedVersions `json:"versions"`
15
15
}
16
16
17
17
type ModelDetailsTimeout struct {
@@ -51,11 +51,11 @@ type ModelRunStatus struct {
51
51
}
52
52
53
53
type ModelTag struct {
54
- Identifier string `json:"identifier"`
55
- Name string `json:"name"`
56
- DataType string `json:"dataType"`
57
- IsCategorical bool `json:"isCategorical"`
58
- Images json. RawMessage `json:"images"`
54
+ Identifier string `json:"identifier"`
55
+ Name string `json:"name"`
56
+ DataType string `json:"dataType"`
57
+ IsCategorical bool `json:"isCategorical"`
58
+ Images [] ModelImage `json:"images"`
59
59
}
60
60
61
61
type ModelImage struct {
@@ -70,15 +70,21 @@ type ModelVisibility struct {
70
70
Teams []string `json:"teams"`
71
71
}
72
72
73
+ type ModelFeature struct {
74
+ Identifier string `json:"identifier"`
75
+ Name string `json:"name"`
76
+ Description string `json:"description"`
77
+ }
78
+
73
79
type ModelMetdata struct {
74
80
ModelID string `json:"modelId"`
75
81
LatestVersion string `json:"latestVersion"`
76
- Versions [] string `json:"versions"`
82
+ Versions SortedVersions `json:"versions"`
77
83
Author string `json:"author"`
78
84
Name string `json:"name"`
79
85
Description string `json:"description"`
80
86
Permalink string `json:"permalink"`
81
- Features json. RawMessage `json:"features"`
87
+ Features [] ModelFeature `json:"features"`
82
88
IsActive bool `json:"isActive"`
83
89
IsRecommended bool `json:"isRecommended"`
84
90
IsCommercial bool `json:"isCommercial"`
@@ -151,35 +157,35 @@ type ModelDetails struct {
151
157
ModelID string `json:"modelID"`
152
158
LatestVersion string `json:"latestVersion"`
153
159
LatestActiveVersion string `json:"latestActiveVersion"`
154
- Versions [] string `json:"versions"`
160
+ Versions SortedVersions `json:"versions"`
155
161
Author string `json:"author"`
156
162
Name string `json:"name"`
157
163
Description string `json:"description"`
158
164
Permalink string `json:"permalink"`
159
- Features json. RawMessage `json:"features"`
165
+ Features [] ModelFeature `json:"features"`
160
166
IsActive bool `json:"isActive"`
161
167
IsRecommended bool `json:"isRecommended"`
162
168
IsCommercial bool `json:"isCommercial"`
163
169
Tags []ModelTag `json:"tags"`
164
170
Images []ModelImage `json:"images"`
165
- SnapshotImages json. RawMessage `json:"snapshotImages"`
171
+ SnapshotImages [] ModelImage `json:"snapshotImages"`
166
172
LastActiveDateTime ModzyTime `json:"lastActiveDateTime"`
167
173
Visibility ModelVisibility `json:"visibility"`
168
174
}
169
175
170
176
type RelatedModel struct {
171
- ModelID string `json:"identifier"`
172
- LatestVersion string `json:"latestVersion"`
173
- Versions [] string `json:"versions"`
174
- Author string `json:"author"`
175
- Name string `json:"name"`
176
- Description string `json:"description"`
177
- Permalink string `json:"permalink"`
178
- Features json. RawMessage `json:"features"`
179
- IsActive bool `json:"isActive"`
180
- IsRecommended bool `json:"isRecommended"`
181
- Tags []ModelTag `json:"tags"`
182
- Images []ModelImage `json:"images"`
177
+ ModelID string `json:"identifier"`
178
+ LatestVersion string `json:"latestVersion"`
179
+ Versions SortedVersions `json:"versions"`
180
+ Author string `json:"author"`
181
+ Name string `json:"name"`
182
+ Description string `json:"description"`
183
+ Permalink string `json:"permalink"`
184
+ Features [] ModelFeature `json:"features"`
185
+ IsActive bool `json:"isActive"`
186
+ IsRecommended bool `json:"isRecommended"`
187
+ Tags []ModelTag `json:"tags"`
188
+ Images []ModelImage `json:"images"`
183
189
}
184
190
185
191
type MinimumEngines struct {
0 commit comments