@abliteration/sdk 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/models/Dataset.d.ts +45 -1
- package/dist/esm/models/Dataset.js +22 -0
- package/dist/esm/models/DatasetDetail.d.ts +85 -2
- package/dist/esm/models/DatasetDetail.js +52 -2
- package/dist/esm/models/ModelDetail.d.ts +173 -1
- package/dist/esm/models/ModelDetail.js +2 -2
- package/dist/models/Dataset.d.ts +45 -1
- package/dist/models/Dataset.js +22 -0
- package/dist/models/DatasetDetail.d.ts +85 -2
- package/dist/models/DatasetDetail.js +52 -2
- package/dist/models/ModelDetail.d.ts +173 -1
- package/dist/models/ModelDetail.js +2 -2
- package/docs/Dataset.md +22 -0
- package/docs/DatasetDetail.md +42 -1
- package/docs/ModelDetail.md +86 -0
- package/openapitools.json +7 -0
- package/package.json +2 -6
- package/src/models/Dataset.ts +67 -1
- package/src/models/DatasetDetail.ts +127 -4
- package/src/models/ModelDetail.ts +259 -1
package/src/models/Dataset.ts
CHANGED
|
@@ -42,9 +42,13 @@ export interface Dataset {
|
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
|
+
language?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Recent-window downloads reported by the Hub.
|
|
48
|
+
*/
|
|
45
49
|
downloads?: number | null;
|
|
46
50
|
/**
|
|
47
|
-
*
|
|
51
|
+
* All-time downloads reported by the Hub.
|
|
48
52
|
*/
|
|
49
53
|
downloads_all?: number | null;
|
|
50
54
|
/**
|
|
@@ -54,11 +58,51 @@ export interface Dataset {
|
|
|
54
58
|
/**
|
|
55
59
|
*
|
|
56
60
|
*/
|
|
61
|
+
trending_score?: number | null;
|
|
62
|
+
/**
|
|
63
|
+
* Server returns 0/1 (SQLite bool convention), not a JSON boolean.
|
|
64
|
+
*/
|
|
57
65
|
gated?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
main_size_bytes?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
* Human-formatted size (e.g. "90.4 MB").
|
|
72
|
+
*/
|
|
73
|
+
size_display?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
age_days?: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Server returns 0/1, not a JSON boolean.
|
|
80
|
+
*/
|
|
81
|
+
is_trending?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
* Server returns 0/1, not a JSON boolean.
|
|
84
|
+
*/
|
|
85
|
+
just_added?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
description?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
tags?: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
hf_url?: string | null;
|
|
58
98
|
/**
|
|
59
99
|
*
|
|
60
100
|
*/
|
|
61
101
|
created_at?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
last_modified_at?: string | null;
|
|
62
106
|
/**
|
|
63
107
|
*
|
|
64
108
|
*/
|
|
@@ -87,11 +131,22 @@ export function DatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): D
|
|
|
87
131
|
'slug': json['slug'] === undefined ? undefined : json['slug'] === null ? null : json['slug'],
|
|
88
132
|
'category': json['category'] === undefined ? undefined : json['category'] === null ? null : json['category'],
|
|
89
133
|
'license': json['license'] === undefined ? undefined : json['license'] === null ? null : json['license'],
|
|
134
|
+
'language': json['language'] === undefined ? undefined : json['language'] === null ? null : json['language'],
|
|
90
135
|
'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
|
|
91
136
|
'downloads_all': json['downloads_all'] === undefined ? undefined : json['downloads_all'] === null ? null : json['downloads_all'],
|
|
92
137
|
'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
|
|
138
|
+
'trending_score': json['trending_score'] === undefined ? undefined : json['trending_score'] === null ? null : json['trending_score'],
|
|
93
139
|
'gated': json['gated'] === undefined ? undefined : json['gated'] === null ? null : json['gated'],
|
|
140
|
+
'main_size_bytes': json['main_size_bytes'] === undefined ? undefined : json['main_size_bytes'] === null ? null : json['main_size_bytes'],
|
|
141
|
+
'size_display': json['size_display'] === undefined ? undefined : json['size_display'] === null ? null : json['size_display'],
|
|
142
|
+
'age_days': json['age_days'] === undefined ? undefined : json['age_days'] === null ? null : json['age_days'],
|
|
143
|
+
'is_trending': json['is_trending'] === undefined ? undefined : json['is_trending'] === null ? null : json['is_trending'],
|
|
144
|
+
'just_added': json['just_added'] === undefined ? undefined : json['just_added'] === null ? null : json['just_added'],
|
|
145
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
146
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
147
|
+
'hf_url': json['hf_url'] === undefined ? undefined : json['hf_url'] === null ? null : json['hf_url'],
|
|
94
148
|
'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
|
|
149
|
+
'last_modified_at': json['last_modified_at'] === undefined ? undefined : json['last_modified_at'] === null ? null : json['last_modified_at'],
|
|
95
150
|
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
96
151
|
};
|
|
97
152
|
}
|
|
@@ -112,11 +167,22 @@ export function DatasetToJSONTyped(value?: Dataset | null, ignoreDiscriminator:
|
|
|
112
167
|
'slug': value['slug'],
|
|
113
168
|
'category': value['category'],
|
|
114
169
|
'license': value['license'],
|
|
170
|
+
'language': value['language'],
|
|
115
171
|
'downloads': value['downloads'],
|
|
116
172
|
'downloads_all': value['downloads_all'],
|
|
117
173
|
'likes': value['likes'],
|
|
174
|
+
'trending_score': value['trending_score'],
|
|
118
175
|
'gated': value['gated'],
|
|
176
|
+
'main_size_bytes': value['main_size_bytes'],
|
|
177
|
+
'size_display': value['size_display'],
|
|
178
|
+
'age_days': value['age_days'],
|
|
179
|
+
'is_trending': value['is_trending'],
|
|
180
|
+
'just_added': value['just_added'],
|
|
181
|
+
'description': value['description'],
|
|
182
|
+
'tags': value['tags'],
|
|
183
|
+
'hf_url': value['hf_url'],
|
|
119
184
|
'created_at': value['created_at'],
|
|
185
|
+
'last_modified_at': value['last_modified_at'],
|
|
120
186
|
'first_seen_at': value['first_seen_at'],
|
|
121
187
|
};
|
|
122
188
|
}
|
|
@@ -22,12 +22,11 @@ import {
|
|
|
22
22
|
} from './Passport';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
26
|
* @export
|
|
27
27
|
* @interface DatasetDetail
|
|
28
28
|
*/
|
|
29
29
|
export interface DatasetDetail {
|
|
30
|
-
[key: string]: any | any;
|
|
31
30
|
/**
|
|
32
31
|
*
|
|
33
32
|
*/
|
|
@@ -35,6 +34,90 @@ export interface DatasetDetail {
|
|
|
35
34
|
/**
|
|
36
35
|
*
|
|
37
36
|
*/
|
|
37
|
+
author?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
slug?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
category?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
license?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
language?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Recent-window downloads reported by the Hub.
|
|
56
|
+
*/
|
|
57
|
+
downloads?: number;
|
|
58
|
+
/**
|
|
59
|
+
* All-time downloads reported by the Hub.
|
|
60
|
+
*/
|
|
61
|
+
downloads_all?: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
likes?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
trending_score?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Server returns 0/1 (SQLite bool convention), not a JSON boolean.
|
|
72
|
+
*/
|
|
73
|
+
gated?: number;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
main_size_bytes?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Human-formatted size (e.g. "90.4 MB").
|
|
80
|
+
*/
|
|
81
|
+
size_display?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
age_days?: number;
|
|
86
|
+
/**
|
|
87
|
+
* Server returns 0/1, not a JSON boolean.
|
|
88
|
+
*/
|
|
89
|
+
is_trending?: number;
|
|
90
|
+
/**
|
|
91
|
+
* Server returns 0/1, not a JSON boolean.
|
|
92
|
+
*/
|
|
93
|
+
just_added?: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
description?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
tags?: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
hf_url?: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
created_at?: string;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
last_modified_at?: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
first_seen_at?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Per-file entries: path, type, size_bytes, is_lfs.
|
|
120
|
+
*/
|
|
38
121
|
files?: Array<object>;
|
|
39
122
|
/**
|
|
40
123
|
*
|
|
@@ -59,8 +142,28 @@ export function DatasetDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
59
142
|
}
|
|
60
143
|
return {
|
|
61
144
|
|
|
62
|
-
...json,
|
|
63
145
|
'id': json['id'] == null ? undefined : json['id'],
|
|
146
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
147
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
148
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
149
|
+
'license': json['license'] == null ? undefined : json['license'],
|
|
150
|
+
'language': json['language'] == null ? undefined : json['language'],
|
|
151
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
152
|
+
'downloads_all': json['downloads_all'] == null ? undefined : json['downloads_all'],
|
|
153
|
+
'likes': json['likes'] == null ? undefined : json['likes'],
|
|
154
|
+
'trending_score': json['trending_score'] == null ? undefined : json['trending_score'],
|
|
155
|
+
'gated': json['gated'] == null ? undefined : json['gated'],
|
|
156
|
+
'main_size_bytes': json['main_size_bytes'] == null ? undefined : json['main_size_bytes'],
|
|
157
|
+
'size_display': json['size_display'] == null ? undefined : json['size_display'],
|
|
158
|
+
'age_days': json['age_days'] == null ? undefined : json['age_days'],
|
|
159
|
+
'is_trending': json['is_trending'] == null ? undefined : json['is_trending'],
|
|
160
|
+
'just_added': json['just_added'] == null ? undefined : json['just_added'],
|
|
161
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
162
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
163
|
+
'hf_url': json['hf_url'] == null ? undefined : json['hf_url'],
|
|
164
|
+
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
|
165
|
+
'last_modified_at': json['last_modified_at'] == null ? undefined : json['last_modified_at'],
|
|
166
|
+
'first_seen_at': json['first_seen_at'] == null ? undefined : json['first_seen_at'],
|
|
64
167
|
'files': json['files'] == null ? undefined : json['files'],
|
|
65
168
|
'passport': json['passport'] === undefined ? undefined : json['passport'] === null ? null : PassportFromJSON(json['passport']),
|
|
66
169
|
};
|
|
@@ -77,8 +180,28 @@ export function DatasetDetailToJSONTyped(value?: DatasetDetail | null, ignoreDis
|
|
|
77
180
|
|
|
78
181
|
return {
|
|
79
182
|
|
|
80
|
-
...value,
|
|
81
183
|
'id': value['id'],
|
|
184
|
+
'author': value['author'],
|
|
185
|
+
'slug': value['slug'],
|
|
186
|
+
'category': value['category'],
|
|
187
|
+
'license': value['license'],
|
|
188
|
+
'language': value['language'],
|
|
189
|
+
'downloads': value['downloads'],
|
|
190
|
+
'downloads_all': value['downloads_all'],
|
|
191
|
+
'likes': value['likes'],
|
|
192
|
+
'trending_score': value['trending_score'],
|
|
193
|
+
'gated': value['gated'],
|
|
194
|
+
'main_size_bytes': value['main_size_bytes'],
|
|
195
|
+
'size_display': value['size_display'],
|
|
196
|
+
'age_days': value['age_days'],
|
|
197
|
+
'is_trending': value['is_trending'],
|
|
198
|
+
'just_added': value['just_added'],
|
|
199
|
+
'description': value['description'],
|
|
200
|
+
'tags': value['tags'],
|
|
201
|
+
'hf_url': value['hf_url'],
|
|
202
|
+
'created_at': value['created_at'],
|
|
203
|
+
'last_modified_at': value['last_modified_at'],
|
|
204
|
+
'first_seen_at': value['first_seen_at'],
|
|
82
205
|
'files': value['files'],
|
|
83
206
|
'passport': PassportToJSON(value['passport']),
|
|
84
207
|
};
|
|
@@ -43,10 +43,182 @@ export interface ModelDetail {
|
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
primary_method?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* JSON-encoded array of extra method codes.
|
|
49
|
+
*/
|
|
50
|
+
secondary_methods?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
confidence?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* JSON-encoded array of evidence strings.
|
|
57
|
+
*/
|
|
58
|
+
classification_evidence?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
classifier_version?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
classified_at?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
family?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
params_b?: number | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
is_gguf?: number | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
is_moe?: number | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
is_multimodal?: number | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
is_image_gen?: number | null;
|
|
47
91
|
/**
|
|
48
92
|
*
|
|
49
93
|
*/
|
|
94
|
+
is_second_order?: number | null;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
downloads?: number | null;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
likes?: number | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
created_at?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
last_modified?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
first_seen_at?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
last_seen_at?: string | null;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
readme_text?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
readme_status?: string | null;
|
|
127
|
+
/**
|
|
128
|
+
* JSON-encoded array of Hub tags.
|
|
129
|
+
*/
|
|
130
|
+
tags?: string | null;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
pipeline_tag?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
library_name?: string | null;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
yaml_base_model?: string | null;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
yaml_language?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
yaml_datasets?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
yaml_license?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
158
|
+
yaml_tags?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
files_count?: number | null;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
total_size_bytes?: number | null;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
largest_file_bytes?: number | null;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
smallest_model_bytes?: number | null;
|
|
175
|
+
/**
|
|
176
|
+
* JSON-encoded array of quantisation labels.
|
|
177
|
+
*/
|
|
178
|
+
quantizations?: string | null;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
has_mmproj?: number | null;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
*/
|
|
186
|
+
hub_downloads_all_time?: number | null;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
190
|
+
hub_trending_score?: number | null;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
*/
|
|
194
|
+
hub_real_params_m?: number | null;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
*/
|
|
198
|
+
hub_context_length?: number | null;
|
|
199
|
+
/**
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
hub_siblings_count?: number | null;
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
*/
|
|
206
|
+
hub_provider_count?: number | null;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
*/
|
|
210
|
+
hub_provider_names?: string | null;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
*/
|
|
214
|
+
hub_enriched_at?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* Per-file manifest: filename, size_bytes, sha256, quantization, is_model_file, is_mmproj.
|
|
217
|
+
*/
|
|
218
|
+
files?: Array<object>;
|
|
219
|
+
/**
|
|
220
|
+
* Two arrays under `own` and `base` — each item has benchmark_name, score, source, pertains_to.
|
|
221
|
+
*/
|
|
50
222
|
benchmarks?: object;
|
|
51
223
|
/**
|
|
52
224
|
*
|
|
@@ -75,6 +247,49 @@ export function ModelDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
75
247
|
'id': json['id'] == null ? undefined : json['id'],
|
|
76
248
|
'author': json['author'] == null ? undefined : json['author'],
|
|
77
249
|
'name': json['name'] == null ? undefined : json['name'],
|
|
250
|
+
'primary_method': json['primary_method'] === undefined ? undefined : json['primary_method'] === null ? null : json['primary_method'],
|
|
251
|
+
'secondary_methods': json['secondary_methods'] === undefined ? undefined : json['secondary_methods'] === null ? null : json['secondary_methods'],
|
|
252
|
+
'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'],
|
|
253
|
+
'classification_evidence': json['classification_evidence'] === undefined ? undefined : json['classification_evidence'] === null ? null : json['classification_evidence'],
|
|
254
|
+
'classifier_version': json['classifier_version'] === undefined ? undefined : json['classifier_version'] === null ? null : json['classifier_version'],
|
|
255
|
+
'classified_at': json['classified_at'] === undefined ? undefined : json['classified_at'] === null ? null : json['classified_at'],
|
|
256
|
+
'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'],
|
|
257
|
+
'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'],
|
|
258
|
+
'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'],
|
|
259
|
+
'is_moe': json['is_moe'] === undefined ? undefined : json['is_moe'] === null ? null : json['is_moe'],
|
|
260
|
+
'is_multimodal': json['is_multimodal'] === undefined ? undefined : json['is_multimodal'] === null ? null : json['is_multimodal'],
|
|
261
|
+
'is_image_gen': json['is_image_gen'] === undefined ? undefined : json['is_image_gen'] === null ? null : json['is_image_gen'],
|
|
262
|
+
'is_second_order': json['is_second_order'] === undefined ? undefined : json['is_second_order'] === null ? null : json['is_second_order'],
|
|
263
|
+
'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
|
|
264
|
+
'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
|
|
265
|
+
'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
|
|
266
|
+
'last_modified': json['last_modified'] === undefined ? undefined : json['last_modified'] === null ? null : json['last_modified'],
|
|
267
|
+
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
268
|
+
'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'],
|
|
269
|
+
'readme_text': json['readme_text'] === undefined ? undefined : json['readme_text'] === null ? null : json['readme_text'],
|
|
270
|
+
'readme_status': json['readme_status'] === undefined ? undefined : json['readme_status'] === null ? null : json['readme_status'],
|
|
271
|
+
'tags': json['tags'] === undefined ? undefined : json['tags'] === null ? null : json['tags'],
|
|
272
|
+
'pipeline_tag': json['pipeline_tag'] === undefined ? undefined : json['pipeline_tag'] === null ? null : json['pipeline_tag'],
|
|
273
|
+
'library_name': json['library_name'] === undefined ? undefined : json['library_name'] === null ? null : json['library_name'],
|
|
274
|
+
'yaml_base_model': json['yaml_base_model'] === undefined ? undefined : json['yaml_base_model'] === null ? null : json['yaml_base_model'],
|
|
275
|
+
'yaml_language': json['yaml_language'] === undefined ? undefined : json['yaml_language'] === null ? null : json['yaml_language'],
|
|
276
|
+
'yaml_datasets': json['yaml_datasets'] === undefined ? undefined : json['yaml_datasets'] === null ? null : json['yaml_datasets'],
|
|
277
|
+
'yaml_license': json['yaml_license'] === undefined ? undefined : json['yaml_license'] === null ? null : json['yaml_license'],
|
|
278
|
+
'yaml_tags': json['yaml_tags'] === undefined ? undefined : json['yaml_tags'] === null ? null : json['yaml_tags'],
|
|
279
|
+
'files_count': json['files_count'] === undefined ? undefined : json['files_count'] === null ? null : json['files_count'],
|
|
280
|
+
'total_size_bytes': json['total_size_bytes'] === undefined ? undefined : json['total_size_bytes'] === null ? null : json['total_size_bytes'],
|
|
281
|
+
'largest_file_bytes': json['largest_file_bytes'] === undefined ? undefined : json['largest_file_bytes'] === null ? null : json['largest_file_bytes'],
|
|
282
|
+
'smallest_model_bytes': json['smallest_model_bytes'] === undefined ? undefined : json['smallest_model_bytes'] === null ? null : json['smallest_model_bytes'],
|
|
283
|
+
'quantizations': json['quantizations'] === undefined ? undefined : json['quantizations'] === null ? null : json['quantizations'],
|
|
284
|
+
'has_mmproj': json['has_mmproj'] === undefined ? undefined : json['has_mmproj'] === null ? null : json['has_mmproj'],
|
|
285
|
+
'hub_downloads_all_time': json['hub_downloads_all_time'] === undefined ? undefined : json['hub_downloads_all_time'] === null ? null : json['hub_downloads_all_time'],
|
|
286
|
+
'hub_trending_score': json['hub_trending_score'] === undefined ? undefined : json['hub_trending_score'] === null ? null : json['hub_trending_score'],
|
|
287
|
+
'hub_real_params_m': json['hub_real_params_m'] === undefined ? undefined : json['hub_real_params_m'] === null ? null : json['hub_real_params_m'],
|
|
288
|
+
'hub_context_length': json['hub_context_length'] === undefined ? undefined : json['hub_context_length'] === null ? null : json['hub_context_length'],
|
|
289
|
+
'hub_siblings_count': json['hub_siblings_count'] === undefined ? undefined : json['hub_siblings_count'] === null ? null : json['hub_siblings_count'],
|
|
290
|
+
'hub_provider_count': json['hub_provider_count'] === undefined ? undefined : json['hub_provider_count'] === null ? null : json['hub_provider_count'],
|
|
291
|
+
'hub_provider_names': json['hub_provider_names'] === undefined ? undefined : json['hub_provider_names'] === null ? null : json['hub_provider_names'],
|
|
292
|
+
'hub_enriched_at': json['hub_enriched_at'] === undefined ? undefined : json['hub_enriched_at'] === null ? null : json['hub_enriched_at'],
|
|
78
293
|
'files': json['files'] == null ? undefined : json['files'],
|
|
79
294
|
'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'],
|
|
80
295
|
'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : AuthorFromJSON(json['author_summary']),
|
|
@@ -96,6 +311,49 @@ export function ModelDetailToJSONTyped(value?: ModelDetail | null, ignoreDiscrim
|
|
|
96
311
|
'id': value['id'],
|
|
97
312
|
'author': value['author'],
|
|
98
313
|
'name': value['name'],
|
|
314
|
+
'primary_method': value['primary_method'],
|
|
315
|
+
'secondary_methods': value['secondary_methods'],
|
|
316
|
+
'confidence': value['confidence'],
|
|
317
|
+
'classification_evidence': value['classification_evidence'],
|
|
318
|
+
'classifier_version': value['classifier_version'],
|
|
319
|
+
'classified_at': value['classified_at'],
|
|
320
|
+
'family': value['family'],
|
|
321
|
+
'params_b': value['params_b'],
|
|
322
|
+
'is_gguf': value['is_gguf'],
|
|
323
|
+
'is_moe': value['is_moe'],
|
|
324
|
+
'is_multimodal': value['is_multimodal'],
|
|
325
|
+
'is_image_gen': value['is_image_gen'],
|
|
326
|
+
'is_second_order': value['is_second_order'],
|
|
327
|
+
'downloads': value['downloads'],
|
|
328
|
+
'likes': value['likes'],
|
|
329
|
+
'created_at': value['created_at'],
|
|
330
|
+
'last_modified': value['last_modified'],
|
|
331
|
+
'first_seen_at': value['first_seen_at'],
|
|
332
|
+
'last_seen_at': value['last_seen_at'],
|
|
333
|
+
'readme_text': value['readme_text'],
|
|
334
|
+
'readme_status': value['readme_status'],
|
|
335
|
+
'tags': value['tags'],
|
|
336
|
+
'pipeline_tag': value['pipeline_tag'],
|
|
337
|
+
'library_name': value['library_name'],
|
|
338
|
+
'yaml_base_model': value['yaml_base_model'],
|
|
339
|
+
'yaml_language': value['yaml_language'],
|
|
340
|
+
'yaml_datasets': value['yaml_datasets'],
|
|
341
|
+
'yaml_license': value['yaml_license'],
|
|
342
|
+
'yaml_tags': value['yaml_tags'],
|
|
343
|
+
'files_count': value['files_count'],
|
|
344
|
+
'total_size_bytes': value['total_size_bytes'],
|
|
345
|
+
'largest_file_bytes': value['largest_file_bytes'],
|
|
346
|
+
'smallest_model_bytes': value['smallest_model_bytes'],
|
|
347
|
+
'quantizations': value['quantizations'],
|
|
348
|
+
'has_mmproj': value['has_mmproj'],
|
|
349
|
+
'hub_downloads_all_time': value['hub_downloads_all_time'],
|
|
350
|
+
'hub_trending_score': value['hub_trending_score'],
|
|
351
|
+
'hub_real_params_m': value['hub_real_params_m'],
|
|
352
|
+
'hub_context_length': value['hub_context_length'],
|
|
353
|
+
'hub_siblings_count': value['hub_siblings_count'],
|
|
354
|
+
'hub_provider_count': value['hub_provider_count'],
|
|
355
|
+
'hub_provider_names': value['hub_provider_names'],
|
|
356
|
+
'hub_enriched_at': value['hub_enriched_at'],
|
|
99
357
|
'files': value['files'],
|
|
100
358
|
'benchmarks': value['benchmarks'],
|
|
101
359
|
'author_summary': AuthorToJSON(value['author_summary']),
|