@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
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# ListTimeline200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<Event>](Event.md)
|
|
10
|
+
`cost` | number
|
|
11
|
+
`credits_remaining` | number
|
|
12
|
+
`rate_limit_limit` | number
|
|
13
|
+
`rate_limit_remaining` | number
|
|
14
|
+
`rate_limit_reset` | number
|
|
15
|
+
`metering` | string
|
|
16
|
+
`request_id` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { ListTimeline200Response } from '@abliteration/sdk'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"data": null,
|
|
26
|
+
"cost": null,
|
|
27
|
+
"credits_remaining": null,
|
|
28
|
+
"rate_limit_limit": null,
|
|
29
|
+
"rate_limit_remaining": null,
|
|
30
|
+
"rate_limit_reset": null,
|
|
31
|
+
"metering": null,
|
|
32
|
+
"request_id": null,
|
|
33
|
+
} satisfies ListTimeline200Response
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as ListTimeline200Response
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
package/docs/Method.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# Method
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`label` | string
|
|
11
|
+
`category` | string
|
|
12
|
+
`wiki_slug` | string
|
|
13
|
+
`model_count` | number
|
|
14
|
+
`total_downloads` | number
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { Method } from '@abliteration/sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"label": null,
|
|
25
|
+
"category": null,
|
|
26
|
+
"wiki_slug": null,
|
|
27
|
+
"model_count": null,
|
|
28
|
+
"total_downloads": null,
|
|
29
|
+
} satisfies Method
|
|
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 Method
|
|
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
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# MethodDetail
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`label` | string
|
|
11
|
+
`category` | string
|
|
12
|
+
`wiki_slug` | string
|
|
13
|
+
`model_count` | number
|
|
14
|
+
`total_downloads` | number
|
|
15
|
+
`wiki_url` | string
|
|
16
|
+
`top_authors` | [Array<MethodDetailAllOfTopAuthors>](MethodDetailAllOfTopAuthors.md)
|
|
17
|
+
`sample_models` | [Array<ModelSummary>](ModelSummary.md)
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { MethodDetail } from '@abliteration/sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"label": null,
|
|
28
|
+
"category": null,
|
|
29
|
+
"wiki_slug": null,
|
|
30
|
+
"model_count": null,
|
|
31
|
+
"total_downloads": null,
|
|
32
|
+
"wiki_url": null,
|
|
33
|
+
"top_authors": null,
|
|
34
|
+
"sample_models": null,
|
|
35
|
+
} satisfies MethodDetail
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as MethodDetail
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# MethodDetailAllOfTopAuthors
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`author` | string
|
|
10
|
+
`count` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { MethodDetailAllOfTopAuthors } from '@abliteration/sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"author": null,
|
|
20
|
+
"count": null,
|
|
21
|
+
} satisfies MethodDetailAllOfTopAuthors
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as MethodDetailAllOfTopAuthors
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# MethodsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://abliteration.org*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getMethod**](MethodsApi.md#getmethod) | **GET** /api/v1/methods/{id} | Get one method |
|
|
8
|
+
| [**listMethods**](MethodsApi.md#listmethods) | **GET** /api/v1/methods | List the method taxonomy |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## getMethod
|
|
13
|
+
|
|
14
|
+
> GetMethod200Response getMethod(id)
|
|
15
|
+
|
|
16
|
+
Get one method
|
|
17
|
+
|
|
18
|
+
Cost: 1 credit.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import {
|
|
24
|
+
Configuration,
|
|
25
|
+
MethodsApi,
|
|
26
|
+
} from '@abliteration/sdk';
|
|
27
|
+
import type { GetMethodRequest } from '@abliteration/sdk';
|
|
28
|
+
|
|
29
|
+
async function example() {
|
|
30
|
+
console.log("🚀 Testing @abliteration/sdk SDK...");
|
|
31
|
+
const config = new Configuration({
|
|
32
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
33
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
34
|
+
});
|
|
35
|
+
const api = new MethodsApi(config);
|
|
36
|
+
|
|
37
|
+
const body = {
|
|
38
|
+
// 'M1' | 'M2' | 'M3' | 'M4' | 'M5' | 'M5-frankenstein' | 'M6' | 'M7' | 'M8' | 'M-uncensored' | 'unknown'
|
|
39
|
+
id: id_example,
|
|
40
|
+
} satisfies GetMethodRequest;
|
|
41
|
+
|
|
42
|
+
try {
|
|
43
|
+
const data = await api.getMethod(body);
|
|
44
|
+
console.log(data);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.error(error);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Run the test
|
|
51
|
+
example().catch(console.error);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Parameters
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
| Name | Type | Description | Notes |
|
|
58
|
+
|------------- | ------------- | ------------- | -------------|
|
|
59
|
+
| **id** | `M1`, `M2`, `M3`, `M4`, `M5`, `M5-frankenstein`, `M6`, `M7`, `M8`, `M-uncensored`, `unknown` | | [Defaults to `undefined`] [Enum: M1, M2, M3, M4, M5, M5-frankenstein, M6, M7, M8, M-uncensored, unknown] |
|
|
60
|
+
|
|
61
|
+
### Return type
|
|
62
|
+
|
|
63
|
+
[**GetMethod200Response**](GetMethod200Response.md)
|
|
64
|
+
|
|
65
|
+
### Authorization
|
|
66
|
+
|
|
67
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
68
|
+
|
|
69
|
+
### HTTP request headers
|
|
70
|
+
|
|
71
|
+
- **Content-Type**: Not defined
|
|
72
|
+
- **Accept**: `application/json`
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### HTTP response details
|
|
76
|
+
| Status code | Description | Response headers |
|
|
77
|
+
|-------------|-------------|------------------|
|
|
78
|
+
| **200** | Method with counts, top authors and sample models. | - |
|
|
79
|
+
| **401** | Missing, unknown or revoked key. | - |
|
|
80
|
+
| **402** | Not enough credits. Only possible while metering is enabled. | - |
|
|
81
|
+
| **404** | No such entity. | - |
|
|
82
|
+
| **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
|
|
83
|
+
| **503** | Catalog temporarily unreadable. Nothing was charged. | - |
|
|
84
|
+
|
|
85
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## listMethods
|
|
89
|
+
|
|
90
|
+
> ListMethods200Response listMethods()
|
|
91
|
+
|
|
92
|
+
List the method taxonomy
|
|
93
|
+
|
|
94
|
+
Cost: 5-15 credits. Every code is returned, including ones with no models.
|
|
95
|
+
|
|
96
|
+
### Example
|
|
97
|
+
|
|
98
|
+
```ts
|
|
99
|
+
import {
|
|
100
|
+
Configuration,
|
|
101
|
+
MethodsApi,
|
|
102
|
+
} from '@abliteration/sdk';
|
|
103
|
+
import type { ListMethodsRequest } from '@abliteration/sdk';
|
|
104
|
+
|
|
105
|
+
async function example() {
|
|
106
|
+
console.log("🚀 Testing @abliteration/sdk SDK...");
|
|
107
|
+
const config = new Configuration({
|
|
108
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
109
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
110
|
+
});
|
|
111
|
+
const api = new MethodsApi(config);
|
|
112
|
+
|
|
113
|
+
try {
|
|
114
|
+
const data = await api.listMethods();
|
|
115
|
+
console.log(data);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(error);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Run the test
|
|
122
|
+
example().catch(console.error);
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
This endpoint does not need any parameter.
|
|
128
|
+
|
|
129
|
+
### Return type
|
|
130
|
+
|
|
131
|
+
[**ListMethods200Response**](ListMethods200Response.md)
|
|
132
|
+
|
|
133
|
+
### Authorization
|
|
134
|
+
|
|
135
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
136
|
+
|
|
137
|
+
### HTTP request headers
|
|
138
|
+
|
|
139
|
+
- **Content-Type**: Not defined
|
|
140
|
+
- **Accept**: `application/json`
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### HTTP response details
|
|
144
|
+
| Status code | Description | Response headers |
|
|
145
|
+
|-------------|-------------|------------------|
|
|
146
|
+
| **200** | The taxonomy with counts. | - |
|
|
147
|
+
| **401** | Missing, unknown or revoked key. | - |
|
|
148
|
+
| **402** | Not enough credits. Only possible while metering is enabled. | - |
|
|
149
|
+
| **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
|
|
150
|
+
| **503** | Catalog temporarily unreadable. Nothing was charged. | - |
|
|
151
|
+
|
|
152
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
153
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
|
|
2
|
+
# ModelDetail
|
|
3
|
+
|
|
4
|
+
The full catalog record, plus files, benchmarks and an author summary.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`author` | string
|
|
12
|
+
`name` | string
|
|
13
|
+
`primary_method` | string
|
|
14
|
+
`secondary_methods` | string
|
|
15
|
+
`confidence` | string
|
|
16
|
+
`classification_evidence` | string
|
|
17
|
+
`classifier_version` | string
|
|
18
|
+
`classified_at` | string
|
|
19
|
+
`family` | string
|
|
20
|
+
`params_b` | number
|
|
21
|
+
`is_gguf` | number
|
|
22
|
+
`is_moe` | number
|
|
23
|
+
`is_multimodal` | number
|
|
24
|
+
`is_image_gen` | number
|
|
25
|
+
`is_second_order` | number
|
|
26
|
+
`downloads` | number
|
|
27
|
+
`likes` | number
|
|
28
|
+
`created_at` | string
|
|
29
|
+
`last_modified` | string
|
|
30
|
+
`first_seen_at` | string
|
|
31
|
+
`last_seen_at` | string
|
|
32
|
+
`readme_text` | string
|
|
33
|
+
`readme_status` | string
|
|
34
|
+
`tags` | string
|
|
35
|
+
`pipeline_tag` | string
|
|
36
|
+
`library_name` | string
|
|
37
|
+
`yaml_base_model` | string
|
|
38
|
+
`yaml_language` | string
|
|
39
|
+
`yaml_datasets` | string
|
|
40
|
+
`yaml_license` | string
|
|
41
|
+
`yaml_tags` | string
|
|
42
|
+
`files_count` | number
|
|
43
|
+
`total_size_bytes` | number
|
|
44
|
+
`largest_file_bytes` | number
|
|
45
|
+
`smallest_model_bytes` | number
|
|
46
|
+
`quantizations` | string
|
|
47
|
+
`has_mmproj` | number
|
|
48
|
+
`hub_downloads_all_time` | number
|
|
49
|
+
`hub_trending_score` | number
|
|
50
|
+
`hub_real_params_m` | number
|
|
51
|
+
`hub_context_length` | number
|
|
52
|
+
`hub_siblings_count` | number
|
|
53
|
+
`hub_provider_count` | number
|
|
54
|
+
`hub_provider_names` | string
|
|
55
|
+
`hub_enriched_at` | string
|
|
56
|
+
`files` | Array<object>
|
|
57
|
+
`benchmarks` | object
|
|
58
|
+
`author_summary` | [Author](Author.md)
|
|
59
|
+
|
|
60
|
+
## Example
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
import type { ModelDetail } from '@abliteration/sdk'
|
|
64
|
+
|
|
65
|
+
// TODO: Update the object below with actual values
|
|
66
|
+
const example = {
|
|
67
|
+
"id": null,
|
|
68
|
+
"author": null,
|
|
69
|
+
"name": null,
|
|
70
|
+
"primary_method": null,
|
|
71
|
+
"secondary_methods": null,
|
|
72
|
+
"confidence": null,
|
|
73
|
+
"classification_evidence": null,
|
|
74
|
+
"classifier_version": null,
|
|
75
|
+
"classified_at": null,
|
|
76
|
+
"family": null,
|
|
77
|
+
"params_b": null,
|
|
78
|
+
"is_gguf": null,
|
|
79
|
+
"is_moe": null,
|
|
80
|
+
"is_multimodal": null,
|
|
81
|
+
"is_image_gen": null,
|
|
82
|
+
"is_second_order": null,
|
|
83
|
+
"downloads": null,
|
|
84
|
+
"likes": null,
|
|
85
|
+
"created_at": null,
|
|
86
|
+
"last_modified": null,
|
|
87
|
+
"first_seen_at": null,
|
|
88
|
+
"last_seen_at": null,
|
|
89
|
+
"readme_text": null,
|
|
90
|
+
"readme_status": null,
|
|
91
|
+
"tags": null,
|
|
92
|
+
"pipeline_tag": null,
|
|
93
|
+
"library_name": null,
|
|
94
|
+
"yaml_base_model": null,
|
|
95
|
+
"yaml_language": null,
|
|
96
|
+
"yaml_datasets": null,
|
|
97
|
+
"yaml_license": null,
|
|
98
|
+
"yaml_tags": null,
|
|
99
|
+
"files_count": null,
|
|
100
|
+
"total_size_bytes": null,
|
|
101
|
+
"largest_file_bytes": null,
|
|
102
|
+
"smallest_model_bytes": null,
|
|
103
|
+
"quantizations": null,
|
|
104
|
+
"has_mmproj": null,
|
|
105
|
+
"hub_downloads_all_time": null,
|
|
106
|
+
"hub_trending_score": null,
|
|
107
|
+
"hub_real_params_m": null,
|
|
108
|
+
"hub_context_length": null,
|
|
109
|
+
"hub_siblings_count": null,
|
|
110
|
+
"hub_provider_count": null,
|
|
111
|
+
"hub_provider_names": null,
|
|
112
|
+
"hub_enriched_at": null,
|
|
113
|
+
"files": null,
|
|
114
|
+
"benchmarks": null,
|
|
115
|
+
"author_summary": null,
|
|
116
|
+
} satisfies ModelDetail
|
|
117
|
+
|
|
118
|
+
console.log(example)
|
|
119
|
+
|
|
120
|
+
// Convert the instance to a JSON string
|
|
121
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
122
|
+
console.log(exampleJSON)
|
|
123
|
+
|
|
124
|
+
// Parse the JSON string back to an object
|
|
125
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelDetail
|
|
126
|
+
console.log(exampleParsed)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
130
|
+
|
|
131
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# ModelError
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`error` | string
|
|
10
|
+
`message` | string
|
|
11
|
+
`retry_after` | number
|
|
12
|
+
`credits_remaining` | number
|
|
13
|
+
`request_id` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { ModelError } from '@abliteration/sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"error": null,
|
|
23
|
+
"message": null,
|
|
24
|
+
"retry_after": null,
|
|
25
|
+
"credits_remaining": null,
|
|
26
|
+
"request_id": null,
|
|
27
|
+
} satisfies ModelError
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelError
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# ModelIndex
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`value` | number
|
|
12
|
+
`unit` | string
|
|
13
|
+
`measured` | boolean
|
|
14
|
+
`source` | string
|
|
15
|
+
`history_available` | boolean
|
|
16
|
+
`as_of` | string
|
|
17
|
+
`note` | string
|
|
18
|
+
`recent_history` | [Array<DaiPoint>](DaiPoint.md)
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { ModelIndex } from '@abliteration/sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"id": null,
|
|
28
|
+
"name": null,
|
|
29
|
+
"value": null,
|
|
30
|
+
"unit": null,
|
|
31
|
+
"measured": null,
|
|
32
|
+
"source": null,
|
|
33
|
+
"history_available": null,
|
|
34
|
+
"as_of": null,
|
|
35
|
+
"note": null,
|
|
36
|
+
"recent_history": null,
|
|
37
|
+
} satisfies ModelIndex
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelIndex
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# ModelSummary
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`author` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`method` | string
|
|
13
|
+
`confidence` | string
|
|
14
|
+
`family` | string
|
|
15
|
+
`params_b` | number
|
|
16
|
+
`license` | string
|
|
17
|
+
`downloads` | number
|
|
18
|
+
`likes` | number
|
|
19
|
+
`is_gguf` | number
|
|
20
|
+
`created_at` | string
|
|
21
|
+
`first_seen_at` | string
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { ModelSummary } from '@abliteration/sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"id": null,
|
|
31
|
+
"author": null,
|
|
32
|
+
"name": null,
|
|
33
|
+
"method": null,
|
|
34
|
+
"confidence": null,
|
|
35
|
+
"family": null,
|
|
36
|
+
"params_b": null,
|
|
37
|
+
"license": null,
|
|
38
|
+
"downloads": null,
|
|
39
|
+
"likes": null,
|
|
40
|
+
"is_gguf": null,
|
|
41
|
+
"created_at": null,
|
|
42
|
+
"first_seen_at": null,
|
|
43
|
+
} satisfies ModelSummary
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as ModelSummary
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|