@abliteration/sdk 0.1.0 → 0.1.2
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/.openapi-generator/FILES +76 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +140 -49
- package/dist/apis/AuthorsApi.d.ts +11 -3
- package/dist/apis/AuthorsApi.js +8 -0
- package/dist/apis/DatasetsApi.d.ts +9 -3
- package/dist/apis/DatasetsApi.js +6 -0
- package/dist/apis/IndicesApi.d.ts +9 -3
- package/dist/apis/IndicesApi.js +6 -0
- package/dist/apis/ModelsApi.d.ts +9 -3
- package/dist/apis/ModelsApi.js +6 -0
- package/dist/esm/apis/AuthorsApi.d.ts +11 -3
- package/dist/esm/apis/AuthorsApi.js +8 -0
- package/dist/esm/apis/DatasetsApi.d.ts +9 -3
- package/dist/esm/apis/DatasetsApi.js +6 -0
- package/dist/esm/apis/IndicesApi.d.ts +9 -3
- package/dist/esm/apis/IndicesApi.js +6 -0
- package/dist/esm/apis/ModelsApi.d.ts +9 -3
- package/dist/esm/apis/ModelsApi.js +6 -0
- package/dist/esm/models/Author.d.ts +4 -0
- package/dist/esm/models/Author.js +2 -0
- package/dist/esm/models/AuthorDetail.d.ts +4 -0
- package/dist/esm/models/AuthorDetail.js +2 -0
- 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/Author.d.ts +4 -0
- package/dist/models/Author.js +2 -0
- package/dist/models/AuthorDetail.d.ts +4 -0
- package/dist/models/AuthorDetail.js +2 -0
- 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/Author.md +44 -0
- package/docs/AuthorDetail.md +46 -0
- package/docs/AuthorsApi.md +167 -0
- package/docs/DaiPoint.md +38 -0
- package/docs/Dataset.md +76 -0
- package/docs/DatasetDetail.md +80 -0
- package/docs/DatasetsApi.md +176 -0
- package/docs/Envelope.md +48 -0
- package/docs/Event.md +46 -0
- package/docs/GetAuthor200Response.md +48 -0
- package/docs/GetDataset200Response.md +48 -0
- package/docs/GetIndex200Response.md +48 -0
- package/docs/GetMethod200Response.md +48 -0
- package/docs/GetModel200Response.md +48 -0
- package/docs/IndexDetail.md +54 -0
- package/docs/IndicesApi.md +153 -0
- package/docs/ListAuthors200Response.md +48 -0
- package/docs/ListDatasets200Response.md +48 -0
- package/docs/ListIndices200Response.md +48 -0
- package/docs/ListMethods200Response.md +48 -0
- package/docs/ListModels200Response.md +48 -0
- package/docs/ListTimeline200Response.md +48 -0
- package/docs/Method.md +44 -0
- package/docs/MethodDetail.md +50 -0
- package/docs/MethodDetailAllOfTopAuthors.md +36 -0
- package/docs/MethodsApi.md +153 -0
- package/docs/ModelDetail.md +131 -0
- package/docs/ModelError.md +42 -0
- package/docs/ModelIndex.md +52 -0
- package/docs/ModelSummary.md +58 -0
- package/docs/ModelsApi.md +191 -0
- package/docs/Passport.md +38 -0
- package/docs/TimelineApi.md +93 -0
- package/openapi-generator-config.json +10 -0
- package/package.json +14 -16
- package/src/apis/AuthorsApi.ts +248 -0
- package/src/apis/DatasetsApi.ts +278 -0
- package/src/apis/IndicesApi.ts +213 -0
- package/src/apis/MethodsApi.ts +214 -0
- package/src/apis/ModelsApi.ts +328 -0
- package/src/apis/TimelineApi.ts +148 -0
- package/src/apis/index.ts +8 -0
- package/src/index.ts +5 -0
- package/src/models/Author.ts +93 -0
- package/src/models/AuthorDetail.ts +107 -0
- package/src/models/DaiPoint.ts +75 -0
- package/src/models/Dataset.ts +189 -0
- package/src/models/DatasetDetail.ts +209 -0
- package/src/models/Envelope.ts +124 -0
- package/src/models/Event.ts +99 -0
- package/src/models/GetAuthor200Response.ts +132 -0
- package/src/models/GetDataset200Response.ts +132 -0
- package/src/models/GetIndex200Response.ts +132 -0
- package/src/models/GetMethod200Response.ts +132 -0
- package/src/models/GetModel200Response.ts +132 -0
- package/src/models/IndexDetail.ts +153 -0
- package/src/models/ListAuthors200Response.ts +132 -0
- package/src/models/ListDatasets200Response.ts +132 -0
- package/src/models/ListIndices200Response.ts +132 -0
- package/src/models/ListMethods200Response.ts +132 -0
- package/src/models/ListModels200Response.ts +132 -0
- package/src/models/ListTimeline200Response.ts +132 -0
- package/src/models/Method.ts +106 -0
- package/src/models/MethodDetail.ts +139 -0
- package/src/models/MethodDetailAllOfTopAuthors.ts +69 -0
- package/src/models/ModelDetail.ts +362 -0
- package/src/models/ModelError.ts +89 -0
- package/src/models/ModelIndex.ts +147 -0
- package/src/models/ModelSummary.ts +135 -0
- package/src/models/Passport.ts +75 -0
- package/src/models/index.ts +29 -0
- package/src/runtime.ts +505 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -25,7 +25,7 @@ export function ModelDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
if (json == null) {
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
|
-
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : AuthorFromJSON(json['author_summary']) });
|
|
28
|
+
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'primary_method': json['primary_method'] === undefined ? undefined : json['primary_method'] === null ? null : json['primary_method'], 'secondary_methods': json['secondary_methods'] === undefined ? undefined : json['secondary_methods'] === null ? null : json['secondary_methods'], 'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'], 'classification_evidence': json['classification_evidence'] === undefined ? undefined : json['classification_evidence'] === null ? null : json['classification_evidence'], 'classifier_version': json['classifier_version'] === undefined ? undefined : json['classifier_version'] === null ? null : json['classifier_version'], 'classified_at': json['classified_at'] === undefined ? undefined : json['classified_at'] === null ? null : json['classified_at'], 'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'], 'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'], 'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'], 'is_moe': json['is_moe'] === undefined ? undefined : json['is_moe'] === null ? null : json['is_moe'], 'is_multimodal': json['is_multimodal'] === undefined ? undefined : json['is_multimodal'] === null ? null : json['is_multimodal'], 'is_image_gen': json['is_image_gen'] === undefined ? undefined : json['is_image_gen'] === null ? null : json['is_image_gen'], 'is_second_order': json['is_second_order'] === undefined ? undefined : json['is_second_order'] === null ? null : json['is_second_order'], 'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'], 'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'], 'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'], 'last_modified': json['last_modified'] === undefined ? undefined : json['last_modified'] === null ? null : json['last_modified'], 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'], 'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'], 'readme_text': json['readme_text'] === undefined ? undefined : json['readme_text'] === null ? null : json['readme_text'], 'readme_status': json['readme_status'] === undefined ? undefined : json['readme_status'] === null ? null : json['readme_status'], 'tags': json['tags'] === undefined ? undefined : json['tags'] === null ? null : json['tags'], 'pipeline_tag': json['pipeline_tag'] === undefined ? undefined : json['pipeline_tag'] === null ? null : json['pipeline_tag'], 'library_name': json['library_name'] === undefined ? undefined : json['library_name'] === null ? null : json['library_name'], 'yaml_base_model': json['yaml_base_model'] === undefined ? undefined : json['yaml_base_model'] === null ? null : json['yaml_base_model'], 'yaml_language': json['yaml_language'] === undefined ? undefined : json['yaml_language'] === null ? null : json['yaml_language'], 'yaml_datasets': json['yaml_datasets'] === undefined ? undefined : json['yaml_datasets'] === null ? null : json['yaml_datasets'], 'yaml_license': json['yaml_license'] === undefined ? undefined : json['yaml_license'] === null ? null : json['yaml_license'], 'yaml_tags': json['yaml_tags'] === undefined ? undefined : json['yaml_tags'] === null ? null : json['yaml_tags'], 'files_count': json['files_count'] === undefined ? undefined : json['files_count'] === null ? null : json['files_count'], 'total_size_bytes': json['total_size_bytes'] === undefined ? undefined : json['total_size_bytes'] === null ? null : json['total_size_bytes'], 'largest_file_bytes': json['largest_file_bytes'] === undefined ? undefined : json['largest_file_bytes'] === null ? null : json['largest_file_bytes'], 'smallest_model_bytes': json['smallest_model_bytes'] === undefined ? undefined : json['smallest_model_bytes'] === null ? null : json['smallest_model_bytes'], 'quantizations': json['quantizations'] === undefined ? undefined : json['quantizations'] === null ? null : json['quantizations'], 'has_mmproj': json['has_mmproj'] === undefined ? undefined : json['has_mmproj'] === null ? null : json['has_mmproj'], 'hub_downloads_all_time': json['hub_downloads_all_time'] === undefined ? undefined : json['hub_downloads_all_time'] === null ? null : json['hub_downloads_all_time'], 'hub_trending_score': json['hub_trending_score'] === undefined ? undefined : json['hub_trending_score'] === null ? null : json['hub_trending_score'], 'hub_real_params_m': json['hub_real_params_m'] === undefined ? undefined : json['hub_real_params_m'] === null ? null : json['hub_real_params_m'], 'hub_context_length': json['hub_context_length'] === undefined ? undefined : json['hub_context_length'] === null ? null : json['hub_context_length'], 'hub_siblings_count': json['hub_siblings_count'] === undefined ? undefined : json['hub_siblings_count'] === null ? null : json['hub_siblings_count'], 'hub_provider_count': json['hub_provider_count'] === undefined ? undefined : json['hub_provider_count'] === null ? null : json['hub_provider_count'], 'hub_provider_names': json['hub_provider_names'] === undefined ? undefined : json['hub_provider_names'] === null ? null : json['hub_provider_names'], 'hub_enriched_at': json['hub_enriched_at'] === undefined ? undefined : json['hub_enriched_at'] === null ? null : json['hub_enriched_at'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : AuthorFromJSON(json['author_summary']) });
|
|
29
29
|
}
|
|
30
30
|
export function ModelDetailToJSON(json) {
|
|
31
31
|
return ModelDetailToJSONTyped(json, false);
|
|
@@ -34,5 +34,5 @@ export function ModelDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
34
34
|
if (value == null) {
|
|
35
35
|
return value;
|
|
36
36
|
}
|
|
37
|
-
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': AuthorToJSON(value['author_summary']) });
|
|
37
|
+
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'primary_method': value['primary_method'], 'secondary_methods': value['secondary_methods'], 'confidence': value['confidence'], 'classification_evidence': value['classification_evidence'], 'classifier_version': value['classifier_version'], 'classified_at': value['classified_at'], 'family': value['family'], 'params_b': value['params_b'], 'is_gguf': value['is_gguf'], 'is_moe': value['is_moe'], 'is_multimodal': value['is_multimodal'], 'is_image_gen': value['is_image_gen'], 'is_second_order': value['is_second_order'], 'downloads': value['downloads'], 'likes': value['likes'], 'created_at': value['created_at'], 'last_modified': value['last_modified'], 'first_seen_at': value['first_seen_at'], 'last_seen_at': value['last_seen_at'], 'readme_text': value['readme_text'], 'readme_status': value['readme_status'], 'tags': value['tags'], 'pipeline_tag': value['pipeline_tag'], 'library_name': value['library_name'], 'yaml_base_model': value['yaml_base_model'], 'yaml_language': value['yaml_language'], 'yaml_datasets': value['yaml_datasets'], 'yaml_license': value['yaml_license'], 'yaml_tags': value['yaml_tags'], 'files_count': value['files_count'], 'total_size_bytes': value['total_size_bytes'], 'largest_file_bytes': value['largest_file_bytes'], 'smallest_model_bytes': value['smallest_model_bytes'], 'quantizations': value['quantizations'], 'has_mmproj': value['has_mmproj'], 'hub_downloads_all_time': value['hub_downloads_all_time'], 'hub_trending_score': value['hub_trending_score'], 'hub_real_params_m': value['hub_real_params_m'], 'hub_context_length': value['hub_context_length'], 'hub_siblings_count': value['hub_siblings_count'], 'hub_provider_count': value['hub_provider_count'], 'hub_provider_names': value['hub_provider_names'], 'hub_enriched_at': value['hub_enriched_at'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': AuthorToJSON(value['author_summary']) });
|
|
38
38
|
}
|
package/dist/models/Author.d.ts
CHANGED
package/dist/models/Author.js
CHANGED
|
@@ -32,6 +32,7 @@ function AuthorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
35
36
|
'author': json['author'] == null ? undefined : json['author'],
|
|
36
37
|
'total_models': json['total_models'] == null ? undefined : json['total_models'],
|
|
37
38
|
'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
|
|
@@ -47,6 +48,7 @@ function AuthorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
48
|
return value;
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
51
|
+
'id': value['id'],
|
|
50
52
|
'author': value['author'],
|
|
51
53
|
'total_models': value['total_models'],
|
|
52
54
|
'total_downloads': value['total_downloads'],
|
|
@@ -16,6 +16,10 @@ import type { ModelSummary } from './ModelSummary';
|
|
|
16
16
|
* @interface AuthorDetail
|
|
17
17
|
*/
|
|
18
18
|
export interface AuthorDetail {
|
|
19
|
+
/**
|
|
20
|
+
* Same value as `author`; added for consistency with the other single-entity payloads.
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
19
23
|
/**
|
|
20
24
|
*
|
|
21
25
|
*/
|
|
@@ -33,6 +33,7 @@ function AuthorDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
37
|
'author': json['author'] == null ? undefined : json['author'],
|
|
37
38
|
'total_models': json['total_models'] == null ? undefined : json['total_models'],
|
|
38
39
|
'total_downloads': json['total_downloads'] == null ? undefined : json['total_downloads'],
|
|
@@ -49,6 +50,7 @@ function AuthorDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
50
|
return value;
|
|
50
51
|
}
|
|
51
52
|
return {
|
|
53
|
+
'id': value['id'],
|
|
52
54
|
'author': value['author'],
|
|
53
55
|
'total_models': value['total_models'],
|
|
54
56
|
'total_downloads': value['total_downloads'],
|
package/dist/models/Dataset.d.ts
CHANGED
|
@@ -38,9 +38,13 @@ export interface Dataset {
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
|
+
language?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Recent-window downloads reported by the Hub.
|
|
44
|
+
*/
|
|
41
45
|
downloads?: number | null;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* All-time downloads reported by the Hub.
|
|
44
48
|
*/
|
|
45
49
|
downloads_all?: number | null;
|
|
46
50
|
/**
|
|
@@ -50,11 +54,51 @@ export interface Dataset {
|
|
|
50
54
|
/**
|
|
51
55
|
*
|
|
52
56
|
*/
|
|
57
|
+
trending_score?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
* Server returns 0/1 (SQLite bool convention), not a JSON boolean.
|
|
60
|
+
*/
|
|
53
61
|
gated?: number | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
main_size_bytes?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
* Human-formatted size (e.g. "90.4 MB").
|
|
68
|
+
*/
|
|
69
|
+
size_display?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
age_days?: number | null;
|
|
74
|
+
/**
|
|
75
|
+
* Server returns 0/1, not a JSON boolean.
|
|
76
|
+
*/
|
|
77
|
+
is_trending?: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Server returns 0/1, not a JSON boolean.
|
|
80
|
+
*/
|
|
81
|
+
just_added?: number | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
description?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
tags?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
hf_url?: string | null;
|
|
54
94
|
/**
|
|
55
95
|
*
|
|
56
96
|
*/
|
|
57
97
|
created_at?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
last_modified_at?: string | null;
|
|
58
102
|
/**
|
|
59
103
|
*
|
|
60
104
|
*/
|
package/dist/models/Dataset.js
CHANGED
|
@@ -37,11 +37,22 @@ function DatasetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'slug': json['slug'] === undefined ? undefined : json['slug'] === null ? null : json['slug'],
|
|
38
38
|
'category': json['category'] === undefined ? undefined : json['category'] === null ? null : json['category'],
|
|
39
39
|
'license': json['license'] === undefined ? undefined : json['license'] === null ? null : json['license'],
|
|
40
|
+
'language': json['language'] === undefined ? undefined : json['language'] === null ? null : json['language'],
|
|
40
41
|
'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'],
|
|
41
42
|
'downloads_all': json['downloads_all'] === undefined ? undefined : json['downloads_all'] === null ? null : json['downloads_all'],
|
|
42
43
|
'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'],
|
|
44
|
+
'trending_score': json['trending_score'] === undefined ? undefined : json['trending_score'] === null ? null : json['trending_score'],
|
|
43
45
|
'gated': json['gated'] === undefined ? undefined : json['gated'] === null ? null : json['gated'],
|
|
46
|
+
'main_size_bytes': json['main_size_bytes'] === undefined ? undefined : json['main_size_bytes'] === null ? null : json['main_size_bytes'],
|
|
47
|
+
'size_display': json['size_display'] === undefined ? undefined : json['size_display'] === null ? null : json['size_display'],
|
|
48
|
+
'age_days': json['age_days'] === undefined ? undefined : json['age_days'] === null ? null : json['age_days'],
|
|
49
|
+
'is_trending': json['is_trending'] === undefined ? undefined : json['is_trending'] === null ? null : json['is_trending'],
|
|
50
|
+
'just_added': json['just_added'] === undefined ? undefined : json['just_added'] === null ? null : json['just_added'],
|
|
51
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
52
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
53
|
+
'hf_url': json['hf_url'] === undefined ? undefined : json['hf_url'] === null ? null : json['hf_url'],
|
|
44
54
|
'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
|
|
55
|
+
'last_modified_at': json['last_modified_at'] === undefined ? undefined : json['last_modified_at'] === null ? null : json['last_modified_at'],
|
|
45
56
|
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
46
57
|
};
|
|
47
58
|
}
|
|
@@ -58,11 +69,22 @@ function DatasetToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
69
|
'slug': value['slug'],
|
|
59
70
|
'category': value['category'],
|
|
60
71
|
'license': value['license'],
|
|
72
|
+
'language': value['language'],
|
|
61
73
|
'downloads': value['downloads'],
|
|
62
74
|
'downloads_all': value['downloads_all'],
|
|
63
75
|
'likes': value['likes'],
|
|
76
|
+
'trending_score': value['trending_score'],
|
|
64
77
|
'gated': value['gated'],
|
|
78
|
+
'main_size_bytes': value['main_size_bytes'],
|
|
79
|
+
'size_display': value['size_display'],
|
|
80
|
+
'age_days': value['age_days'],
|
|
81
|
+
'is_trending': value['is_trending'],
|
|
82
|
+
'just_added': value['just_added'],
|
|
83
|
+
'description': value['description'],
|
|
84
|
+
'tags': value['tags'],
|
|
85
|
+
'hf_url': value['hf_url'],
|
|
65
86
|
'created_at': value['created_at'],
|
|
87
|
+
'last_modified_at': value['last_modified_at'],
|
|
66
88
|
'first_seen_at': value['first_seen_at'],
|
|
67
89
|
};
|
|
68
90
|
}
|
|
@@ -11,12 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Passport } from './Passport';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
*
|
|
15
15
|
* @export
|
|
16
16
|
* @interface DatasetDetail
|
|
17
17
|
*/
|
|
18
18
|
export interface DatasetDetail {
|
|
19
|
-
[key: string]: any | any;
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
@@ -24,6 +23,90 @@ export interface DatasetDetail {
|
|
|
24
23
|
/**
|
|
25
24
|
*
|
|
26
25
|
*/
|
|
26
|
+
author?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
slug?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
category?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
license?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
language?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Recent-window downloads reported by the Hub.
|
|
45
|
+
*/
|
|
46
|
+
downloads?: number;
|
|
47
|
+
/**
|
|
48
|
+
* All-time downloads reported by the Hub.
|
|
49
|
+
*/
|
|
50
|
+
downloads_all?: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
likes?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
trending_score?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Server returns 0/1 (SQLite bool convention), not a JSON boolean.
|
|
61
|
+
*/
|
|
62
|
+
gated?: number;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
main_size_bytes?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Human-formatted size (e.g. "90.4 MB").
|
|
69
|
+
*/
|
|
70
|
+
size_display?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
age_days?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Server returns 0/1, not a JSON boolean.
|
|
77
|
+
*/
|
|
78
|
+
is_trending?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Server returns 0/1, not a JSON boolean.
|
|
81
|
+
*/
|
|
82
|
+
just_added?: number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
description?: string;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
tags?: Array<string>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
hf_url?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
created_at?: string;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
last_modified_at?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
first_seen_at?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Per-file entries: path, type, size_bytes, is_lfs.
|
|
109
|
+
*/
|
|
27
110
|
files?: Array<object>;
|
|
28
111
|
/**
|
|
29
112
|
*
|
|
@@ -32,7 +32,32 @@ function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
38
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
39
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
40
|
+
'license': json['license'] == null ? undefined : json['license'],
|
|
41
|
+
'language': json['language'] == null ? undefined : json['language'],
|
|
42
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
43
|
+
'downloads_all': json['downloads_all'] == null ? undefined : json['downloads_all'],
|
|
44
|
+
'likes': json['likes'] == null ? undefined : json['likes'],
|
|
45
|
+
'trending_score': json['trending_score'] == null ? undefined : json['trending_score'],
|
|
46
|
+
'gated': json['gated'] == null ? undefined : json['gated'],
|
|
47
|
+
'main_size_bytes': json['main_size_bytes'] == null ? undefined : json['main_size_bytes'],
|
|
48
|
+
'size_display': json['size_display'] == null ? undefined : json['size_display'],
|
|
49
|
+
'age_days': json['age_days'] == null ? undefined : json['age_days'],
|
|
50
|
+
'is_trending': json['is_trending'] == null ? undefined : json['is_trending'],
|
|
51
|
+
'just_added': json['just_added'] == null ? undefined : json['just_added'],
|
|
52
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
53
|
+
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
54
|
+
'hf_url': json['hf_url'] == null ? undefined : json['hf_url'],
|
|
55
|
+
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
|
56
|
+
'last_modified_at': json['last_modified_at'] == null ? undefined : json['last_modified_at'],
|
|
57
|
+
'first_seen_at': json['first_seen_at'] == null ? undefined : json['first_seen_at'],
|
|
58
|
+
'files': json['files'] == null ? undefined : json['files'],
|
|
59
|
+
'passport': json['passport'] === undefined ? undefined : json['passport'] === null ? null : (0, Passport_1.PassportFromJSON)(json['passport']),
|
|
60
|
+
};
|
|
36
61
|
}
|
|
37
62
|
function DatasetDetailToJSON(json) {
|
|
38
63
|
return DatasetDetailToJSONTyped(json, false);
|
|
@@ -41,5 +66,30 @@ function DatasetDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
66
|
if (value == null) {
|
|
42
67
|
return value;
|
|
43
68
|
}
|
|
44
|
-
return
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'author': value['author'],
|
|
72
|
+
'slug': value['slug'],
|
|
73
|
+
'category': value['category'],
|
|
74
|
+
'license': value['license'],
|
|
75
|
+
'language': value['language'],
|
|
76
|
+
'downloads': value['downloads'],
|
|
77
|
+
'downloads_all': value['downloads_all'],
|
|
78
|
+
'likes': value['likes'],
|
|
79
|
+
'trending_score': value['trending_score'],
|
|
80
|
+
'gated': value['gated'],
|
|
81
|
+
'main_size_bytes': value['main_size_bytes'],
|
|
82
|
+
'size_display': value['size_display'],
|
|
83
|
+
'age_days': value['age_days'],
|
|
84
|
+
'is_trending': value['is_trending'],
|
|
85
|
+
'just_added': value['just_added'],
|
|
86
|
+
'description': value['description'],
|
|
87
|
+
'tags': value['tags'],
|
|
88
|
+
'hf_url': value['hf_url'],
|
|
89
|
+
'created_at': value['created_at'],
|
|
90
|
+
'last_modified_at': value['last_modified_at'],
|
|
91
|
+
'first_seen_at': value['first_seen_at'],
|
|
92
|
+
'files': value['files'],
|
|
93
|
+
'passport': (0, Passport_1.PassportToJSON)(value['passport']),
|
|
94
|
+
};
|
|
45
95
|
}
|
|
@@ -32,10 +32,182 @@ export interface ModelDetail {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
primary_method?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* JSON-encoded array of extra method codes.
|
|
38
|
+
*/
|
|
39
|
+
secondary_methods?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
confidence?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* JSON-encoded array of evidence strings.
|
|
46
|
+
*/
|
|
47
|
+
classification_evidence?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
classifier_version?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
classified_at?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
family?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
params_b?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
is_gguf?: number | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
is_moe?: number | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
is_multimodal?: number | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
is_image_gen?: number | null;
|
|
36
80
|
/**
|
|
37
81
|
*
|
|
38
82
|
*/
|
|
83
|
+
is_second_order?: number | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
downloads?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
likes?: number | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
created_at?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
last_modified?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
first_seen_at?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
last_seen_at?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
readme_text?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
readme_status?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* JSON-encoded array of Hub tags.
|
|
118
|
+
*/
|
|
119
|
+
tags?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
pipeline_tag?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
library_name?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
yaml_base_model?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
yaml_language?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
yaml_datasets?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
yaml_license?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
yaml_tags?: string | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
files_count?: number | null;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
total_size_bytes?: number | null;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
largest_file_bytes?: number | null;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
smallest_model_bytes?: number | null;
|
|
164
|
+
/**
|
|
165
|
+
* JSON-encoded array of quantisation labels.
|
|
166
|
+
*/
|
|
167
|
+
quantizations?: string | null;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
*/
|
|
171
|
+
has_mmproj?: number | null;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
hub_downloads_all_time?: number | null;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
hub_trending_score?: number | null;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
hub_real_params_m?: number | null;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
hub_context_length?: number | null;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
hub_siblings_count?: number | null;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
*/
|
|
195
|
+
hub_provider_count?: number | null;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
*/
|
|
199
|
+
hub_provider_names?: string | null;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
hub_enriched_at?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Per-file manifest: filename, size_bytes, sha256, quantization, is_model_file, is_mmproj.
|
|
206
|
+
*/
|
|
207
|
+
files?: Array<object>;
|
|
208
|
+
/**
|
|
209
|
+
* Two arrays under `own` and `base` — each item has benchmark_name, score, source, pertains_to.
|
|
210
|
+
*/
|
|
39
211
|
benchmarks?: object;
|
|
40
212
|
/**
|
|
41
213
|
*
|
|
@@ -32,7 +32,7 @@ function ModelDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
|
-
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : (0, Author_1.AuthorFromJSON)(json['author_summary']) });
|
|
35
|
+
return Object.assign(Object.assign({}, json), { 'id': json['id'] == null ? undefined : json['id'], 'author': json['author'] == null ? undefined : json['author'], 'name': json['name'] == null ? undefined : json['name'], 'primary_method': json['primary_method'] === undefined ? undefined : json['primary_method'] === null ? null : json['primary_method'], 'secondary_methods': json['secondary_methods'] === undefined ? undefined : json['secondary_methods'] === null ? null : json['secondary_methods'], 'confidence': json['confidence'] === undefined ? undefined : json['confidence'] === null ? null : json['confidence'], 'classification_evidence': json['classification_evidence'] === undefined ? undefined : json['classification_evidence'] === null ? null : json['classification_evidence'], 'classifier_version': json['classifier_version'] === undefined ? undefined : json['classifier_version'] === null ? null : json['classifier_version'], 'classified_at': json['classified_at'] === undefined ? undefined : json['classified_at'] === null ? null : json['classified_at'], 'family': json['family'] === undefined ? undefined : json['family'] === null ? null : json['family'], 'params_b': json['params_b'] === undefined ? undefined : json['params_b'] === null ? null : json['params_b'], 'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'], 'is_moe': json['is_moe'] === undefined ? undefined : json['is_moe'] === null ? null : json['is_moe'], 'is_multimodal': json['is_multimodal'] === undefined ? undefined : json['is_multimodal'] === null ? null : json['is_multimodal'], 'is_image_gen': json['is_image_gen'] === undefined ? undefined : json['is_image_gen'] === null ? null : json['is_image_gen'], 'is_second_order': json['is_second_order'] === undefined ? undefined : json['is_second_order'] === null ? null : json['is_second_order'], 'downloads': json['downloads'] === undefined ? undefined : json['downloads'] === null ? null : json['downloads'], 'likes': json['likes'] === undefined ? undefined : json['likes'] === null ? null : json['likes'], 'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'], 'last_modified': json['last_modified'] === undefined ? undefined : json['last_modified'] === null ? null : json['last_modified'], 'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'], 'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'], 'readme_text': json['readme_text'] === undefined ? undefined : json['readme_text'] === null ? null : json['readme_text'], 'readme_status': json['readme_status'] === undefined ? undefined : json['readme_status'] === null ? null : json['readme_status'], 'tags': json['tags'] === undefined ? undefined : json['tags'] === null ? null : json['tags'], 'pipeline_tag': json['pipeline_tag'] === undefined ? undefined : json['pipeline_tag'] === null ? null : json['pipeline_tag'], 'library_name': json['library_name'] === undefined ? undefined : json['library_name'] === null ? null : json['library_name'], 'yaml_base_model': json['yaml_base_model'] === undefined ? undefined : json['yaml_base_model'] === null ? null : json['yaml_base_model'], 'yaml_language': json['yaml_language'] === undefined ? undefined : json['yaml_language'] === null ? null : json['yaml_language'], 'yaml_datasets': json['yaml_datasets'] === undefined ? undefined : json['yaml_datasets'] === null ? null : json['yaml_datasets'], 'yaml_license': json['yaml_license'] === undefined ? undefined : json['yaml_license'] === null ? null : json['yaml_license'], 'yaml_tags': json['yaml_tags'] === undefined ? undefined : json['yaml_tags'] === null ? null : json['yaml_tags'], 'files_count': json['files_count'] === undefined ? undefined : json['files_count'] === null ? null : json['files_count'], 'total_size_bytes': json['total_size_bytes'] === undefined ? undefined : json['total_size_bytes'] === null ? null : json['total_size_bytes'], 'largest_file_bytes': json['largest_file_bytes'] === undefined ? undefined : json['largest_file_bytes'] === null ? null : json['largest_file_bytes'], 'smallest_model_bytes': json['smallest_model_bytes'] === undefined ? undefined : json['smallest_model_bytes'] === null ? null : json['smallest_model_bytes'], 'quantizations': json['quantizations'] === undefined ? undefined : json['quantizations'] === null ? null : json['quantizations'], 'has_mmproj': json['has_mmproj'] === undefined ? undefined : json['has_mmproj'] === null ? null : json['has_mmproj'], 'hub_downloads_all_time': json['hub_downloads_all_time'] === undefined ? undefined : json['hub_downloads_all_time'] === null ? null : json['hub_downloads_all_time'], 'hub_trending_score': json['hub_trending_score'] === undefined ? undefined : json['hub_trending_score'] === null ? null : json['hub_trending_score'], 'hub_real_params_m': json['hub_real_params_m'] === undefined ? undefined : json['hub_real_params_m'] === null ? null : json['hub_real_params_m'], 'hub_context_length': json['hub_context_length'] === undefined ? undefined : json['hub_context_length'] === null ? null : json['hub_context_length'], 'hub_siblings_count': json['hub_siblings_count'] === undefined ? undefined : json['hub_siblings_count'] === null ? null : json['hub_siblings_count'], 'hub_provider_count': json['hub_provider_count'] === undefined ? undefined : json['hub_provider_count'] === null ? null : json['hub_provider_count'], 'hub_provider_names': json['hub_provider_names'] === undefined ? undefined : json['hub_provider_names'] === null ? null : json['hub_provider_names'], 'hub_enriched_at': json['hub_enriched_at'] === undefined ? undefined : json['hub_enriched_at'] === null ? null : json['hub_enriched_at'], 'files': json['files'] == null ? undefined : json['files'], 'benchmarks': json['benchmarks'] == null ? undefined : json['benchmarks'], 'author_summary': json['author_summary'] === undefined ? undefined : json['author_summary'] === null ? null : (0, Author_1.AuthorFromJSON)(json['author_summary']) });
|
|
36
36
|
}
|
|
37
37
|
function ModelDetailToJSON(json) {
|
|
38
38
|
return ModelDetailToJSONTyped(json, false);
|
|
@@ -41,5 +41,5 @@ function ModelDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
41
41
|
if (value == null) {
|
|
42
42
|
return value;
|
|
43
43
|
}
|
|
44
|
-
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': (0, Author_1.AuthorToJSON)(value['author_summary']) });
|
|
44
|
+
return Object.assign(Object.assign({}, value), { 'id': value['id'], 'author': value['author'], 'name': value['name'], 'primary_method': value['primary_method'], 'secondary_methods': value['secondary_methods'], 'confidence': value['confidence'], 'classification_evidence': value['classification_evidence'], 'classifier_version': value['classifier_version'], 'classified_at': value['classified_at'], 'family': value['family'], 'params_b': value['params_b'], 'is_gguf': value['is_gguf'], 'is_moe': value['is_moe'], 'is_multimodal': value['is_multimodal'], 'is_image_gen': value['is_image_gen'], 'is_second_order': value['is_second_order'], 'downloads': value['downloads'], 'likes': value['likes'], 'created_at': value['created_at'], 'last_modified': value['last_modified'], 'first_seen_at': value['first_seen_at'], 'last_seen_at': value['last_seen_at'], 'readme_text': value['readme_text'], 'readme_status': value['readme_status'], 'tags': value['tags'], 'pipeline_tag': value['pipeline_tag'], 'library_name': value['library_name'], 'yaml_base_model': value['yaml_base_model'], 'yaml_language': value['yaml_language'], 'yaml_datasets': value['yaml_datasets'], 'yaml_license': value['yaml_license'], 'yaml_tags': value['yaml_tags'], 'files_count': value['files_count'], 'total_size_bytes': value['total_size_bytes'], 'largest_file_bytes': value['largest_file_bytes'], 'smallest_model_bytes': value['smallest_model_bytes'], 'quantizations': value['quantizations'], 'has_mmproj': value['has_mmproj'], 'hub_downloads_all_time': value['hub_downloads_all_time'], 'hub_trending_score': value['hub_trending_score'], 'hub_real_params_m': value['hub_real_params_m'], 'hub_context_length': value['hub_context_length'], 'hub_siblings_count': value['hub_siblings_count'], 'hub_provider_count': value['hub_provider_count'], 'hub_provider_names': value['hub_provider_names'], 'hub_enriched_at': value['hub_enriched_at'], 'files': value['files'], 'benchmarks': value['benchmarks'], 'author_summary': (0, Author_1.AuthorToJSON)(value['author_summary']) });
|
|
45
45
|
}
|
package/docs/Author.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# Author
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`author` | string
|
|
11
|
+
`total_models` | number
|
|
12
|
+
`total_downloads` | number
|
|
13
|
+
`total_likes` | number
|
|
14
|
+
`first_seen_at` | string
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { Author } from '@abliteration/sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"author": null,
|
|
25
|
+
"total_models": null,
|
|
26
|
+
"total_downloads": null,
|
|
27
|
+
"total_likes": null,
|
|
28
|
+
"first_seen_at": null,
|
|
29
|
+
} satisfies Author
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as Author
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|