@abliteration/sdk 0.1.4 → 0.1.6
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 +16 -0
- package/README.md +11 -0
- package/dist/apis/ModelsApi.d.ts +200 -8
- package/dist/apis/ModelsApi.js +193 -5
- package/dist/esm/apis/ModelsApi.d.ts +200 -8
- package/dist/esm/apis/ModelsApi.js +192 -4
- package/dist/esm/models/DeletionSummary.d.ts +52 -0
- package/dist/esm/models/DeletionSummary.js +53 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.js +43 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.js +47 -0
- package/dist/esm/models/DelistedModel.d.ts +54 -0
- package/dist/esm/models/DelistedModel.js +53 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.js +79 -0
- package/dist/esm/models/HistoricalDeletion.d.ts +50 -0
- package/dist/esm/models/HistoricalDeletion.js +51 -0
- package/dist/esm/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/esm/models/ListDelistedModels200Response.js +79 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.js +79 -0
- package/dist/esm/models/ModelDetail.d.ts +8 -0
- package/dist/esm/models/ModelDetail.js +2 -2
- package/dist/esm/models/ModelSummary.d.ts +8 -0
- package/dist/esm/models/ModelSummary.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/DeletionSummary.d.ts +52 -0
- package/dist/models/DeletionSummary.js +60 -0
- package/dist/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/models/DeletionSummaryTimelineInner.js +50 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.js +54 -0
- package/dist/models/DelistedModel.d.ts +54 -0
- package/dist/models/DelistedModel.js +60 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.js +87 -0
- package/dist/models/HistoricalDeletion.d.ts +50 -0
- package/dist/models/HistoricalDeletion.js +58 -0
- package/dist/models/ListDelistedModels200Response.d.ts +67 -0
- package/dist/models/ListDelistedModels200Response.js +87 -0
- package/dist/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/models/ListHistoricalDeletions200Response.js +87 -0
- package/dist/models/ModelDetail.d.ts +8 -0
- package/dist/models/ModelDetail.js +2 -2
- package/dist/models/ModelSummary.d.ts +8 -0
- package/dist/models/ModelSummary.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/DeletionSummary.md +45 -0
- package/docs/DeletionSummaryTimelineInner.md +36 -0
- package/docs/DeletionSummaryTopByDownloadsInner.md +40 -0
- package/docs/DelistedModel.md +46 -0
- package/docs/GetHistoricalDeletionSummary200Response.md +48 -0
- package/docs/HistoricalDeletion.md +44 -0
- package/docs/ListDelistedModels200Response.md +48 -0
- package/docs/ListHistoricalDeletions200Response.md +48 -0
- package/docs/ModelDetail.md +4 -0
- package/docs/ModelSummary.md +4 -0
- package/docs/ModelsApi.md +247 -3
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +362 -8
- package/src/models/DeletionSummary.ts +108 -0
- package/src/models/DeletionSummaryTimelineInner.ts +69 -0
- package/src/models/DeletionSummaryTopByDownloadsInner.ts +81 -0
- package/src/models/DelistedModel.ts +99 -0
- package/src/models/GetHistoricalDeletionSummary200Response.ts +132 -0
- package/src/models/HistoricalDeletion.ts +93 -0
- package/src/models/ListDelistedModels200Response.ts +132 -0
- package/src/models/ListHistoricalDeletions200Response.ts +132 -0
- package/src/models/ModelDetail.ts +12 -0
- package/src/models/ModelSummary.ts +12 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DeletionSummary } from './DeletionSummary';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetHistoricalDeletionSummary200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface GetHistoricalDeletionSummary200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: DeletionSummary;
|
|
23
|
+
/**
|
|
24
|
+
* Credits this call costs.
|
|
25
|
+
*/
|
|
26
|
+
cost: number;
|
|
27
|
+
/**
|
|
28
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
29
|
+
*/
|
|
30
|
+
credits_remaining: number;
|
|
31
|
+
/**
|
|
32
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
33
|
+
*/
|
|
34
|
+
rate_limit_limit: number;
|
|
35
|
+
/**
|
|
36
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
37
|
+
*/
|
|
38
|
+
rate_limit_remaining: number;
|
|
39
|
+
/**
|
|
40
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
41
|
+
*/
|
|
42
|
+
rate_limit_reset: number;
|
|
43
|
+
/**
|
|
44
|
+
* Whether cost was actually deducted.
|
|
45
|
+
*/
|
|
46
|
+
metering: GetHistoricalDeletionSummary200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const GetHistoricalDeletionSummary200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type GetHistoricalDeletionSummary200ResponseMeteringEnum = typeof GetHistoricalDeletionSummary200ResponseMeteringEnum[keyof typeof GetHistoricalDeletionSummary200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfGetHistoricalDeletionSummary200Response(value: object): value is GetHistoricalDeletionSummary200Response;
|
|
64
|
+
export declare function GetHistoricalDeletionSummary200ResponseFromJSON(json: any): GetHistoricalDeletionSummary200Response;
|
|
65
|
+
export declare function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHistoricalDeletionSummary200Response;
|
|
66
|
+
export declare function GetHistoricalDeletionSummary200ResponseToJSON(json: any): GetHistoricalDeletionSummary200Response;
|
|
67
|
+
export declare function GetHistoricalDeletionSummary200ResponseToJSONTyped(value?: GetHistoricalDeletionSummary200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { DeletionSummaryFromJSON, DeletionSummaryToJSON, } from './DeletionSummary';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const GetHistoricalDeletionSummary200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetHistoricalDeletionSummary200Response(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function GetHistoricalDeletionSummary200ResponseFromJSON(json) {
|
|
45
|
+
return GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': DeletionSummaryFromJSON(json['data']),
|
|
53
|
+
'cost': json['cost'],
|
|
54
|
+
'credits_remaining': json['credits_remaining'],
|
|
55
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
56
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
57
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
58
|
+
'metering': json['metering'],
|
|
59
|
+
'request_id': json['request_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function GetHistoricalDeletionSummary200ResponseToJSON(json) {
|
|
63
|
+
return GetHistoricalDeletionSummary200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function GetHistoricalDeletionSummary200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': DeletionSummaryToJSON(value['data']),
|
|
71
|
+
'cost': value['cost'],
|
|
72
|
+
'credits_remaining': value['credits_remaining'],
|
|
73
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
74
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
75
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
76
|
+
'metering': value['metering'],
|
|
77
|
+
'request_id': value['request_id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HistoricalDeletion
|
|
16
|
+
*/
|
|
17
|
+
export interface HistoricalDeletion {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* ISO YYYY-MM of the earliest snapshot the model appears in.
|
|
24
|
+
*/
|
|
25
|
+
first_seen_month?: string;
|
|
26
|
+
/**
|
|
27
|
+
* ISO YYYY-MM of the final snapshot before deletion.
|
|
28
|
+
*/
|
|
29
|
+
last_seen_month?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whole months between first and last observation.
|
|
32
|
+
*/
|
|
33
|
+
total_months_alive?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Highest downloads count observed during the model's lifetime.
|
|
36
|
+
*/
|
|
37
|
+
peak_downloads?: number;
|
|
38
|
+
/**
|
|
39
|
+
* ISO-8601 timestamp the model was originally created on HF (from the frozen snapshot).
|
|
40
|
+
*/
|
|
41
|
+
created_at?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the HistoricalDeletion interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfHistoricalDeletion(value: object): value is HistoricalDeletion;
|
|
47
|
+
export declare function HistoricalDeletionFromJSON(json: any): HistoricalDeletion;
|
|
48
|
+
export declare function HistoricalDeletionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistoricalDeletion;
|
|
49
|
+
export declare function HistoricalDeletionToJSON(json: any): HistoricalDeletion;
|
|
50
|
+
export declare function HistoricalDeletionToJSONTyped(value?: HistoricalDeletion | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the HistoricalDeletion interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfHistoricalDeletion(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function HistoricalDeletionFromJSON(json) {
|
|
21
|
+
return HistoricalDeletionFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function HistoricalDeletionFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'first_seen_month': json['first_seen_month'] == null ? undefined : json['first_seen_month'],
|
|
30
|
+
'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
|
|
31
|
+
'total_months_alive': json['total_months_alive'] == null ? undefined : json['total_months_alive'],
|
|
32
|
+
'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
|
|
33
|
+
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function HistoricalDeletionToJSON(json) {
|
|
37
|
+
return HistoricalDeletionToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function HistoricalDeletionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'id': value['id'],
|
|
45
|
+
'first_seen_month': value['first_seen_month'],
|
|
46
|
+
'last_seen_month': value['last_seen_month'],
|
|
47
|
+
'total_months_alive': value['total_months_alive'],
|
|
48
|
+
'peak_downloads': value['peak_downloads'],
|
|
49
|
+
'created_at': value['created_at'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DelistedModel } from './DelistedModel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListDelistedModels200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListDelistedModels200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: Array<DelistedModel>;
|
|
23
|
+
/**
|
|
24
|
+
* Credits this call costs.
|
|
25
|
+
*/
|
|
26
|
+
cost: number;
|
|
27
|
+
/**
|
|
28
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
29
|
+
*/
|
|
30
|
+
credits_remaining: number;
|
|
31
|
+
/**
|
|
32
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
33
|
+
*/
|
|
34
|
+
rate_limit_limit: number;
|
|
35
|
+
/**
|
|
36
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
37
|
+
*/
|
|
38
|
+
rate_limit_remaining: number;
|
|
39
|
+
/**
|
|
40
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
41
|
+
*/
|
|
42
|
+
rate_limit_reset: number;
|
|
43
|
+
/**
|
|
44
|
+
* Whether cost was actually deducted.
|
|
45
|
+
*/
|
|
46
|
+
metering: ListDelistedModels200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const ListDelistedModels200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type ListDelistedModels200ResponseMeteringEnum = typeof ListDelistedModels200ResponseMeteringEnum[keyof typeof ListDelistedModels200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ListDelistedModels200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfListDelistedModels200Response(value: object): value is ListDelistedModels200Response;
|
|
64
|
+
export declare function ListDelistedModels200ResponseFromJSON(json: any): ListDelistedModels200Response;
|
|
65
|
+
export declare function ListDelistedModels200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListDelistedModels200Response;
|
|
66
|
+
export declare function ListDelistedModels200ResponseToJSON(json: any): ListDelistedModels200Response;
|
|
67
|
+
export declare function ListDelistedModels200ResponseToJSONTyped(value?: ListDelistedModels200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { DelistedModelFromJSON, DelistedModelToJSON, } from './DelistedModel';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ListDelistedModels200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListDelistedModels200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfListDelistedModels200Response(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function ListDelistedModels200ResponseFromJSON(json) {
|
|
45
|
+
return ListDelistedModels200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function ListDelistedModels200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (json['data'].map(DelistedModelFromJSON)),
|
|
53
|
+
'cost': json['cost'],
|
|
54
|
+
'credits_remaining': json['credits_remaining'],
|
|
55
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
56
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
57
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
58
|
+
'metering': json['metering'],
|
|
59
|
+
'request_id': json['request_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function ListDelistedModels200ResponseToJSON(json) {
|
|
63
|
+
return ListDelistedModels200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function ListDelistedModels200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': (value['data'].map(DelistedModelToJSON)),
|
|
71
|
+
'cost': value['cost'],
|
|
72
|
+
'credits_remaining': value['credits_remaining'],
|
|
73
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
74
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
75
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
76
|
+
'metering': value['metering'],
|
|
77
|
+
'request_id': value['request_id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* abliteration.org Public API
|
|
3
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { HistoricalDeletion } from './HistoricalDeletion';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListHistoricalDeletions200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListHistoricalDeletions200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
data: Array<HistoricalDeletion>;
|
|
23
|
+
/**
|
|
24
|
+
* Credits this call costs.
|
|
25
|
+
*/
|
|
26
|
+
cost: number;
|
|
27
|
+
/**
|
|
28
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
29
|
+
*/
|
|
30
|
+
credits_remaining: number;
|
|
31
|
+
/**
|
|
32
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
33
|
+
*/
|
|
34
|
+
rate_limit_limit: number;
|
|
35
|
+
/**
|
|
36
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
37
|
+
*/
|
|
38
|
+
rate_limit_remaining: number;
|
|
39
|
+
/**
|
|
40
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
41
|
+
*/
|
|
42
|
+
rate_limit_reset: number;
|
|
43
|
+
/**
|
|
44
|
+
* Whether cost was actually deducted.
|
|
45
|
+
*/
|
|
46
|
+
metering: ListHistoricalDeletions200ResponseMeteringEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Also returned in the x-request-id header.
|
|
49
|
+
*/
|
|
50
|
+
request_id: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const ListHistoricalDeletions200ResponseMeteringEnum: {
|
|
56
|
+
readonly Preview: "preview";
|
|
57
|
+
readonly Billed: "billed";
|
|
58
|
+
};
|
|
59
|
+
export type ListHistoricalDeletions200ResponseMeteringEnum = typeof ListHistoricalDeletions200ResponseMeteringEnum[keyof typeof ListHistoricalDeletions200ResponseMeteringEnum];
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ListHistoricalDeletions200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfListHistoricalDeletions200Response(value: object): value is ListHistoricalDeletions200Response;
|
|
64
|
+
export declare function ListHistoricalDeletions200ResponseFromJSON(json: any): ListHistoricalDeletions200Response;
|
|
65
|
+
export declare function ListHistoricalDeletions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListHistoricalDeletions200Response;
|
|
66
|
+
export declare function ListHistoricalDeletions200ResponseToJSON(json: any): ListHistoricalDeletions200Response;
|
|
67
|
+
export declare function ListHistoricalDeletions200ResponseToJSONTyped(value?: ListHistoricalDeletions200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { HistoricalDeletionFromJSON, HistoricalDeletionToJSON, } from './HistoricalDeletion';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ListHistoricalDeletions200ResponseMeteringEnum = {
|
|
19
|
+
Preview: 'preview',
|
|
20
|
+
Billed: 'billed',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListHistoricalDeletions200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfListHistoricalDeletions200Response(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('metering' in value) || value['metering'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('request_id' in value) || value['request_id'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function ListHistoricalDeletions200ResponseFromJSON(json) {
|
|
45
|
+
return ListHistoricalDeletions200ResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function ListHistoricalDeletions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (json['data'].map(HistoricalDeletionFromJSON)),
|
|
53
|
+
'cost': json['cost'],
|
|
54
|
+
'credits_remaining': json['credits_remaining'],
|
|
55
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
56
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
57
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
58
|
+
'metering': json['metering'],
|
|
59
|
+
'request_id': json['request_id'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function ListHistoricalDeletions200ResponseToJSON(json) {
|
|
63
|
+
return ListHistoricalDeletions200ResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function ListHistoricalDeletions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'data': (value['data'].map(HistoricalDeletionToJSON)),
|
|
71
|
+
'cost': value['cost'],
|
|
72
|
+
'credits_remaining': value['credits_remaining'],
|
|
73
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
74
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
75
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
76
|
+
'metering': value['metering'],
|
|
77
|
+
'request_id': value['request_id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -105,6 +105,14 @@ export interface ModelDetail {
|
|
|
105
105
|
*
|
|
106
106
|
*/
|
|
107
107
|
last_seen_at?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* 0/1 flag. `1` means HF no longer serves this model — the response is the last state we recorded.
|
|
110
|
+
*/
|
|
111
|
+
is_delisted?: number | null;
|
|
112
|
+
/**
|
|
113
|
+
* Whole days between last_seen_at and now. `null` unless is_delisted=1.
|
|
114
|
+
*/
|
|
115
|
+
days_since_gone?: number | null;
|
|
108
116
|
/**
|
|
109
117
|
*
|
|
110
118
|
*/
|
|
@@ -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'], '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']) });
|
|
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'], 'is_delisted': json['is_delisted'] === undefined ? undefined : json['is_delisted'] === null ? null : json['is_delisted'], 'days_since_gone': json['days_since_gone'] === undefined ? undefined : json['days_since_gone'] === null ? null : json['days_since_gone'], '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'], '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']) });
|
|
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'], 'is_delisted': value['is_delisted'], 'days_since_gone': value['days_since_gone'], '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
|
}
|
|
@@ -67,6 +67,14 @@ export interface ModelSummary {
|
|
|
67
67
|
*
|
|
68
68
|
*/
|
|
69
69
|
first_seen_at?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* 0/1 flag, present in every response row. `1` means the model is no longer on the Hub.
|
|
72
|
+
*/
|
|
73
|
+
is_delisted?: number | null;
|
|
74
|
+
/**
|
|
75
|
+
* ISO-8601 timestamp of the last successful Hub observation. Non-null on delisted rows.
|
|
76
|
+
*/
|
|
77
|
+
last_seen_at?: string | null;
|
|
70
78
|
}
|
|
71
79
|
/**
|
|
72
80
|
* Check if a given object implements the ModelSummary interface.
|
|
@@ -38,6 +38,8 @@ export function ModelSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'is_gguf': json['is_gguf'] === undefined ? undefined : json['is_gguf'] === null ? null : json['is_gguf'],
|
|
39
39
|
'created_at': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : json['created_at'],
|
|
40
40
|
'first_seen_at': json['first_seen_at'] === undefined ? undefined : json['first_seen_at'] === null ? null : json['first_seen_at'],
|
|
41
|
+
'is_delisted': json['is_delisted'] === undefined ? undefined : json['is_delisted'] === null ? null : json['is_delisted'],
|
|
42
|
+
'last_seen_at': json['last_seen_at'] === undefined ? undefined : json['last_seen_at'] === null ? null : json['last_seen_at'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
export function ModelSummaryToJSON(json) {
|
|
@@ -61,5 +63,7 @@ export function ModelSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
63
|
'is_gguf': value['is_gguf'],
|
|
62
64
|
'created_at': value['created_at'],
|
|
63
65
|
'first_seen_at': value['first_seen_at'],
|
|
66
|
+
'is_delisted': value['is_delisted'],
|
|
67
|
+
'last_seen_at': value['last_seen_at'],
|
|
64
68
|
};
|
|
65
69
|
}
|