abliteration 0.0.1 → 0.1.1
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.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/README.md +135 -9
- data/Rakefile +10 -0
- data/abliteration.gemspec +38 -21
- data/docs/Author.md +28 -0
- data/docs/AuthorDetail.md +30 -0
- data/docs/AuthorsApi.md +153 -0
- data/docs/DaiPoint.md +22 -0
- data/docs/Dataset.md +38 -0
- data/docs/DatasetDetail.md +22 -0
- data/docs/DatasetsApi.md +159 -0
- data/docs/Envelope.md +32 -0
- data/docs/Error.md +26 -0
- data/docs/Event.md +30 -0
- data/docs/GetAuthor200Response.md +32 -0
- data/docs/GetDataset200Response.md +32 -0
- data/docs/GetIndex200Response.md +32 -0
- data/docs/GetMethod200Response.md +32 -0
- data/docs/GetModel200Response.md +32 -0
- data/docs/Index.md +36 -0
- data/docs/IndexDetail.md +38 -0
- data/docs/IndicesApi.md +144 -0
- data/docs/ListAuthors200Response.md +32 -0
- data/docs/ListDatasets200Response.md +32 -0
- data/docs/ListIndices200Response.md +32 -0
- data/docs/ListMethods200Response.md +32 -0
- data/docs/ListModels200Response.md +32 -0
- data/docs/ListTimeline200Response.md +32 -0
- data/docs/Method.md +28 -0
- data/docs/MethodDetail.md +34 -0
- data/docs/MethodDetailAllOfTopAuthors.md +20 -0
- data/docs/MethodsApi.md +144 -0
- data/docs/ModelDetail.md +28 -0
- data/docs/ModelSummary.md +42 -0
- data/docs/ModelsApi.md +169 -0
- data/docs/Passport.md +22 -0
- data/docs/TimelineApi.md +85 -0
- data/git_push.sh +54 -0
- data/lib/abliteration/api/authors_api.rb +167 -0
- data/lib/abliteration/api/datasets_api.rb +176 -0
- data/lib/abliteration/api/indices_api.rb +147 -0
- data/lib/abliteration/api/methods_api.rb +147 -0
- data/lib/abliteration/api/models_api.rb +191 -0
- data/lib/abliteration/api/timeline_api.rb +99 -0
- data/lib/abliteration/api_client.rb +397 -0
- data/lib/abliteration/api_error.rb +58 -0
- data/lib/abliteration/api_model_base.rb +88 -0
- data/lib/abliteration/configuration.rb +308 -0
- data/lib/abliteration/models/author.rb +194 -0
- data/lib/abliteration/models/author_detail.rb +211 -0
- data/lib/abliteration/models/dai_point.rb +165 -0
- data/lib/abliteration/models/dataset.rb +247 -0
- data/lib/abliteration/models/dataset_detail.rb +169 -0
- data/lib/abliteration/models/envelope.rb +364 -0
- data/lib/abliteration/models/error.rb +221 -0
- data/lib/abliteration/models/event.rb +207 -0
- data/lib/abliteration/models/get_author200_response.rb +384 -0
- data/lib/abliteration/models/get_dataset200_response.rb +384 -0
- data/lib/abliteration/models/get_index200_response.rb +384 -0
- data/lib/abliteration/models/get_method200_response.rb +384 -0
- data/lib/abliteration/models/get_model200_response.rb +384 -0
- data/lib/abliteration/models/index.rb +281 -0
- data/lib/abliteration/models/index_detail.rb +296 -0
- data/lib/abliteration/models/list_authors200_response.rb +386 -0
- data/lib/abliteration/models/list_datasets200_response.rb +386 -0
- data/lib/abliteration/models/list_indices200_response.rb +386 -0
- data/lib/abliteration/models/list_methods200_response.rb +386 -0
- data/lib/abliteration/models/list_models200_response.rb +386 -0
- data/lib/abliteration/models/list_timeline200_response.rb +386 -0
- data/lib/abliteration/models/method.rb +227 -0
- data/lib/abliteration/models/method_detail.rb +265 -0
- data/lib/abliteration/models/method_detail_all_of_top_authors.rb +156 -0
- data/lib/abliteration/models/model_detail.rb +196 -0
- data/lib/abliteration/models/model_summary.rb +265 -0
- data/lib/abliteration/models/passport.rb +165 -0
- data/lib/abliteration/version.rb +15 -0
- data/lib/abliteration.rb +69 -24
- data/openapi-generator-config.json +12 -0
- data/spec/api/authors_api_spec.rb +61 -0
- data/spec/api/datasets_api_spec.rb +64 -0
- data/spec/api/indices_api_spec.rb +58 -0
- data/spec/api/methods_api_spec.rb +58 -0
- data/spec/api/models_api_spec.rb +69 -0
- data/spec/api/timeline_api_spec.rb +50 -0
- data/spec/models/author_detail_spec.rb +66 -0
- data/spec/models/author_spec.rb +60 -0
- data/spec/models/dai_point_spec.rb +48 -0
- data/spec/models/dataset_detail_spec.rb +48 -0
- data/spec/models/dataset_spec.rb +96 -0
- data/spec/models/envelope_spec.rb +82 -0
- data/spec/models/error_spec.rb +60 -0
- data/spec/models/event_spec.rb +72 -0
- data/spec/models/get_author200_response_spec.rb +82 -0
- data/spec/models/get_dataset200_response_spec.rb +82 -0
- data/spec/models/get_index200_response_spec.rb +82 -0
- data/spec/models/get_method200_response_spec.rb +82 -0
- data/spec/models/get_model200_response_spec.rb +82 -0
- data/spec/models/index_detail_spec.rb +104 -0
- data/spec/models/index_spec.rb +98 -0
- data/spec/models/list_authors200_response_spec.rb +82 -0
- data/spec/models/list_datasets200_response_spec.rb +82 -0
- data/spec/models/list_indices200_response_spec.rb +82 -0
- data/spec/models/list_methods200_response_spec.rb +82 -0
- data/spec/models/list_models200_response_spec.rb +82 -0
- data/spec/models/list_timeline200_response_spec.rb +82 -0
- data/spec/models/method_detail_all_of_top_authors_spec.rb +42 -0
- data/spec/models/method_detail_spec.rb +88 -0
- data/spec/models/method_spec.rb +70 -0
- data/spec/models/model_detail_spec.rb +66 -0
- data/spec/models/model_summary_spec.rb +108 -0
- data/spec/models/passport_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +197 -17
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::ListDatasets200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<Dataset>**](Dataset.md) | | |
|
|
8
|
+
| **cost** | **Integer** | Credits this call costs. | |
|
|
9
|
+
| **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
|
|
10
|
+
| **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
|
|
11
|
+
| **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
|
|
12
|
+
| **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
|
|
13
|
+
| **metering** | **String** | Whether cost was actually deducted. | |
|
|
14
|
+
| **request_id** | **String** | Also returned in the x-request-id header. | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::ListDatasets200Response.new(
|
|
22
|
+
data: null,
|
|
23
|
+
cost: null,
|
|
24
|
+
credits_remaining: null,
|
|
25
|
+
rate_limit_limit: null,
|
|
26
|
+
rate_limit_remaining: null,
|
|
27
|
+
rate_limit_reset: null,
|
|
28
|
+
metering: null,
|
|
29
|
+
request_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::ListIndices200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<Index>**](Index.md) | | |
|
|
8
|
+
| **cost** | **Integer** | Credits this call costs. | |
|
|
9
|
+
| **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
|
|
10
|
+
| **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
|
|
11
|
+
| **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
|
|
12
|
+
| **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
|
|
13
|
+
| **metering** | **String** | Whether cost was actually deducted. | |
|
|
14
|
+
| **request_id** | **String** | Also returned in the x-request-id header. | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::ListIndices200Response.new(
|
|
22
|
+
data: null,
|
|
23
|
+
cost: null,
|
|
24
|
+
credits_remaining: null,
|
|
25
|
+
rate_limit_limit: null,
|
|
26
|
+
rate_limit_remaining: null,
|
|
27
|
+
rate_limit_reset: null,
|
|
28
|
+
metering: null,
|
|
29
|
+
request_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::ListMethods200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<Method>**](Method.md) | | |
|
|
8
|
+
| **cost** | **Integer** | Credits this call costs. | |
|
|
9
|
+
| **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
|
|
10
|
+
| **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
|
|
11
|
+
| **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
|
|
12
|
+
| **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
|
|
13
|
+
| **metering** | **String** | Whether cost was actually deducted. | |
|
|
14
|
+
| **request_id** | **String** | Also returned in the x-request-id header. | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::ListMethods200Response.new(
|
|
22
|
+
data: null,
|
|
23
|
+
cost: null,
|
|
24
|
+
credits_remaining: null,
|
|
25
|
+
rate_limit_limit: null,
|
|
26
|
+
rate_limit_remaining: null,
|
|
27
|
+
rate_limit_reset: null,
|
|
28
|
+
metering: null,
|
|
29
|
+
request_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::ListModels200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<ModelSummary>**](ModelSummary.md) | | |
|
|
8
|
+
| **cost** | **Integer** | Credits this call costs. | |
|
|
9
|
+
| **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
|
|
10
|
+
| **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
|
|
11
|
+
| **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
|
|
12
|
+
| **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
|
|
13
|
+
| **metering** | **String** | Whether cost was actually deducted. | |
|
|
14
|
+
| **request_id** | **String** | Also returned in the x-request-id header. | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::ListModels200Response.new(
|
|
22
|
+
data: null,
|
|
23
|
+
cost: null,
|
|
24
|
+
credits_remaining: null,
|
|
25
|
+
rate_limit_limit: null,
|
|
26
|
+
rate_limit_remaining: null,
|
|
27
|
+
rate_limit_reset: null,
|
|
28
|
+
metering: null,
|
|
29
|
+
request_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Abliteration::ListTimeline200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<Event>**](Event.md) | | |
|
|
8
|
+
| **cost** | **Integer** | Credits this call costs. | |
|
|
9
|
+
| **credits_remaining** | **Integer** | Wallet balance after the call. Unchanged while metering is preview. | |
|
|
10
|
+
| **rate_limit_limit** | **Integer** | Ceiling for the current window. Also returned as X-RateLimit-Limit. | |
|
|
11
|
+
| **rate_limit_remaining** | **Integer** | Calls left in the current window for this key. Also returned as X-RateLimit-Remaining. | |
|
|
12
|
+
| **rate_limit_reset** | **Integer** | Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset. | |
|
|
13
|
+
| **metering** | **String** | Whether cost was actually deducted. | |
|
|
14
|
+
| **request_id** | **String** | Also returned in the x-request-id header. | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'abliteration'
|
|
20
|
+
|
|
21
|
+
instance = Abliteration::ListTimeline200Response.new(
|
|
22
|
+
data: null,
|
|
23
|
+
cost: null,
|
|
24
|
+
credits_remaining: null,
|
|
25
|
+
rate_limit_limit: null,
|
|
26
|
+
rate_limit_remaining: null,
|
|
27
|
+
rate_limit_reset: null,
|
|
28
|
+
metering: null,
|
|
29
|
+
request_id: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/Method.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Abliteration::Method
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **label** | **String** | | [optional] |
|
|
9
|
+
| **category** | **String** | | [optional] |
|
|
10
|
+
| **wiki_slug** | **String** | | [optional] |
|
|
11
|
+
| **model_count** | **Integer** | | [optional] |
|
|
12
|
+
| **total_downloads** | **Integer** | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'abliteration'
|
|
18
|
+
|
|
19
|
+
instance = Abliteration::Method.new(
|
|
20
|
+
id: null,
|
|
21
|
+
label: null,
|
|
22
|
+
category: null,
|
|
23
|
+
wiki_slug: null,
|
|
24
|
+
model_count: null,
|
|
25
|
+
total_downloads: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Abliteration::MethodDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **label** | **String** | | [optional] |
|
|
9
|
+
| **category** | **String** | | [optional] |
|
|
10
|
+
| **wiki_slug** | **String** | | [optional] |
|
|
11
|
+
| **model_count** | **Integer** | | [optional] |
|
|
12
|
+
| **total_downloads** | **Integer** | | [optional] |
|
|
13
|
+
| **wiki_url** | **String** | | [optional] |
|
|
14
|
+
| **top_authors** | [**Array<MethodDetailAllOfTopAuthors>**](MethodDetailAllOfTopAuthors.md) | | [optional] |
|
|
15
|
+
| **sample_models** | [**Array<ModelSummary>**](ModelSummary.md) | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'abliteration'
|
|
21
|
+
|
|
22
|
+
instance = Abliteration::MethodDetail.new(
|
|
23
|
+
id: null,
|
|
24
|
+
label: null,
|
|
25
|
+
category: null,
|
|
26
|
+
wiki_slug: null,
|
|
27
|
+
model_count: null,
|
|
28
|
+
total_downloads: null,
|
|
29
|
+
wiki_url: null,
|
|
30
|
+
top_authors: null,
|
|
31
|
+
sample_models: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Abliteration::MethodDetailAllOfTopAuthors
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **author** | **String** | | [optional] |
|
|
8
|
+
| **count** | **Integer** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'abliteration'
|
|
14
|
+
|
|
15
|
+
instance = Abliteration::MethodDetailAllOfTopAuthors.new(
|
|
16
|
+
author: null,
|
|
17
|
+
count: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/MethodsApi.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Abliteration::MethodsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://abliteration.org*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_method**](MethodsApi.md#get_method) | **GET** /api/v1/methods/{id} | Get one method |
|
|
8
|
+
| [**list_methods**](MethodsApi.md#list_methods) | **GET** /api/v1/methods | List the method taxonomy |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## get_method
|
|
12
|
+
|
|
13
|
+
> <GetMethod200Response> get_method(id)
|
|
14
|
+
|
|
15
|
+
Get one method
|
|
16
|
+
|
|
17
|
+
Cost: 1 credit.
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'abliteration'
|
|
24
|
+
# setup authorization
|
|
25
|
+
Abliteration.configure do |config|
|
|
26
|
+
# Configure Bearer authorization: bearerAuth
|
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
api_instance = Abliteration::MethodsApi.new
|
|
31
|
+
id = 'M1' # String |
|
|
32
|
+
|
|
33
|
+
begin
|
|
34
|
+
# Get one method
|
|
35
|
+
result = api_instance.get_method(id)
|
|
36
|
+
p result
|
|
37
|
+
rescue Abliteration::ApiError => e
|
|
38
|
+
puts "Error when calling MethodsApi->get_method: #{e}"
|
|
39
|
+
end
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Using the get_method_with_http_info variant
|
|
43
|
+
|
|
44
|
+
This returns an Array which contains the response data, status code and headers.
|
|
45
|
+
|
|
46
|
+
> <Array(<GetMethod200Response>, Integer, Hash)> get_method_with_http_info(id)
|
|
47
|
+
|
|
48
|
+
```ruby
|
|
49
|
+
begin
|
|
50
|
+
# Get one method
|
|
51
|
+
data, status_code, headers = api_instance.get_method_with_http_info(id)
|
|
52
|
+
p status_code # => 2xx
|
|
53
|
+
p headers # => { ... }
|
|
54
|
+
p data # => <GetMethod200Response>
|
|
55
|
+
rescue Abliteration::ApiError => e
|
|
56
|
+
puts "Error when calling MethodsApi->get_method_with_http_info: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
| Name | Type | Description | Notes |
|
|
63
|
+
| ---- | ---- | ----------- | ----- |
|
|
64
|
+
| **id** | **String** | | |
|
|
65
|
+
|
|
66
|
+
### Return type
|
|
67
|
+
|
|
68
|
+
[**GetMethod200Response**](GetMethod200Response.md)
|
|
69
|
+
|
|
70
|
+
### Authorization
|
|
71
|
+
|
|
72
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
73
|
+
|
|
74
|
+
### HTTP request headers
|
|
75
|
+
|
|
76
|
+
- **Content-Type**: Not defined
|
|
77
|
+
- **Accept**: application/json
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## list_methods
|
|
81
|
+
|
|
82
|
+
> <ListMethods200Response> list_methods
|
|
83
|
+
|
|
84
|
+
List the method taxonomy
|
|
85
|
+
|
|
86
|
+
Cost: 5-15 credits. Every code is returned, including ones with no models.
|
|
87
|
+
|
|
88
|
+
### Examples
|
|
89
|
+
|
|
90
|
+
```ruby
|
|
91
|
+
require 'time'
|
|
92
|
+
require 'abliteration'
|
|
93
|
+
# setup authorization
|
|
94
|
+
Abliteration.configure do |config|
|
|
95
|
+
# Configure Bearer authorization: bearerAuth
|
|
96
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
api_instance = Abliteration::MethodsApi.new
|
|
100
|
+
|
|
101
|
+
begin
|
|
102
|
+
# List the method taxonomy
|
|
103
|
+
result = api_instance.list_methods
|
|
104
|
+
p result
|
|
105
|
+
rescue Abliteration::ApiError => e
|
|
106
|
+
puts "Error when calling MethodsApi->list_methods: #{e}"
|
|
107
|
+
end
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### Using the list_methods_with_http_info variant
|
|
111
|
+
|
|
112
|
+
This returns an Array which contains the response data, status code and headers.
|
|
113
|
+
|
|
114
|
+
> <Array(<ListMethods200Response>, Integer, Hash)> list_methods_with_http_info
|
|
115
|
+
|
|
116
|
+
```ruby
|
|
117
|
+
begin
|
|
118
|
+
# List the method taxonomy
|
|
119
|
+
data, status_code, headers = api_instance.list_methods_with_http_info
|
|
120
|
+
p status_code # => 2xx
|
|
121
|
+
p headers # => { ... }
|
|
122
|
+
p data # => <ListMethods200Response>
|
|
123
|
+
rescue Abliteration::ApiError => e
|
|
124
|
+
puts "Error when calling MethodsApi->list_methods_with_http_info: #{e}"
|
|
125
|
+
end
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Parameters
|
|
129
|
+
|
|
130
|
+
This endpoint does not need any parameter.
|
|
131
|
+
|
|
132
|
+
### Return type
|
|
133
|
+
|
|
134
|
+
[**ListMethods200Response**](ListMethods200Response.md)
|
|
135
|
+
|
|
136
|
+
### Authorization
|
|
137
|
+
|
|
138
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
139
|
+
|
|
140
|
+
### HTTP request headers
|
|
141
|
+
|
|
142
|
+
- **Content-Type**: Not defined
|
|
143
|
+
- **Accept**: application/json
|
|
144
|
+
|
data/docs/ModelDetail.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Abliteration::ModelDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **author** | **String** | | [optional] |
|
|
9
|
+
| **name** | **String** | | [optional] |
|
|
10
|
+
| **files** | **Array<Object>** | | [optional] |
|
|
11
|
+
| **benchmarks** | **Object** | | [optional] |
|
|
12
|
+
| **author_summary** | [**Author**](Author.md) | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'abliteration'
|
|
18
|
+
|
|
19
|
+
instance = Abliteration::ModelDetail.new(
|
|
20
|
+
id: null,
|
|
21
|
+
author: null,
|
|
22
|
+
name: null,
|
|
23
|
+
files: null,
|
|
24
|
+
benchmarks: null,
|
|
25
|
+
author_summary: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Abliteration::ModelSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | [optional] |
|
|
8
|
+
| **author** | **String** | | [optional] |
|
|
9
|
+
| **name** | **String** | | [optional] |
|
|
10
|
+
| **method** | **String** | | [optional] |
|
|
11
|
+
| **confidence** | **String** | | [optional] |
|
|
12
|
+
| **family** | **String** | | [optional] |
|
|
13
|
+
| **params_b** | **Float** | | [optional] |
|
|
14
|
+
| **license** | **String** | | [optional] |
|
|
15
|
+
| **downloads** | **Integer** | | [optional] |
|
|
16
|
+
| **likes** | **Integer** | | [optional] |
|
|
17
|
+
| **is_gguf** | **Integer** | | [optional] |
|
|
18
|
+
| **created_at** | **String** | | [optional] |
|
|
19
|
+
| **first_seen_at** | **String** | | [optional] |
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'abliteration'
|
|
25
|
+
|
|
26
|
+
instance = Abliteration::ModelSummary.new(
|
|
27
|
+
id: null,
|
|
28
|
+
author: null,
|
|
29
|
+
name: null,
|
|
30
|
+
method: null,
|
|
31
|
+
confidence: null,
|
|
32
|
+
family: null,
|
|
33
|
+
params_b: null,
|
|
34
|
+
license: null,
|
|
35
|
+
downloads: null,
|
|
36
|
+
likes: null,
|
|
37
|
+
is_gguf: null,
|
|
38
|
+
created_at: null,
|
|
39
|
+
first_seen_at: null
|
|
40
|
+
)
|
|
41
|
+
```
|
|
42
|
+
|
data/docs/ModelsApi.md
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Abliteration::ModelsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://abliteration.org*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_model**](ModelsApi.md#get_model) | **GET** /api/v1/models/{id} | Get one model |
|
|
8
|
+
| [**list_models**](ModelsApi.md#list_models) | **GET** /api/v1/models | List models |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## get_model
|
|
12
|
+
|
|
13
|
+
> <GetModel200Response> get_model(id)
|
|
14
|
+
|
|
15
|
+
Get one model
|
|
16
|
+
|
|
17
|
+
Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
|
|
18
|
+
|
|
19
|
+
### Examples
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'time'
|
|
23
|
+
require 'abliteration'
|
|
24
|
+
# setup authorization
|
|
25
|
+
Abliteration.configure do |config|
|
|
26
|
+
# Configure Bearer authorization: bearerAuth
|
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
api_instance = Abliteration::ModelsApi.new
|
|
31
|
+
id = 'mlabonne/Qwen3-30B-A3B-abliterated' # String |
|
|
32
|
+
|
|
33
|
+
begin
|
|
34
|
+
# Get one model
|
|
35
|
+
result = api_instance.get_model(id)
|
|
36
|
+
p result
|
|
37
|
+
rescue Abliteration::ApiError => e
|
|
38
|
+
puts "Error when calling ModelsApi->get_model: #{e}"
|
|
39
|
+
end
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Using the get_model_with_http_info variant
|
|
43
|
+
|
|
44
|
+
This returns an Array which contains the response data, status code and headers.
|
|
45
|
+
|
|
46
|
+
> <Array(<GetModel200Response>, Integer, Hash)> get_model_with_http_info(id)
|
|
47
|
+
|
|
48
|
+
```ruby
|
|
49
|
+
begin
|
|
50
|
+
# Get one model
|
|
51
|
+
data, status_code, headers = api_instance.get_model_with_http_info(id)
|
|
52
|
+
p status_code # => 2xx
|
|
53
|
+
p headers # => { ... }
|
|
54
|
+
p data # => <GetModel200Response>
|
|
55
|
+
rescue Abliteration::ApiError => e
|
|
56
|
+
puts "Error when calling ModelsApi->get_model_with_http_info: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
| Name | Type | Description | Notes |
|
|
63
|
+
| ---- | ---- | ----------- | ----- |
|
|
64
|
+
| **id** | **String** | | |
|
|
65
|
+
|
|
66
|
+
### Return type
|
|
67
|
+
|
|
68
|
+
[**GetModel200Response**](GetModel200Response.md)
|
|
69
|
+
|
|
70
|
+
### Authorization
|
|
71
|
+
|
|
72
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
73
|
+
|
|
74
|
+
### HTTP request headers
|
|
75
|
+
|
|
76
|
+
- **Content-Type**: Not defined
|
|
77
|
+
- **Accept**: application/json
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## list_models
|
|
81
|
+
|
|
82
|
+
> <ListModels200Response> list_models(opts)
|
|
83
|
+
|
|
84
|
+
List models
|
|
85
|
+
|
|
86
|
+
Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded here but remain reachable by id.
|
|
87
|
+
|
|
88
|
+
### Examples
|
|
89
|
+
|
|
90
|
+
```ruby
|
|
91
|
+
require 'time'
|
|
92
|
+
require 'abliteration'
|
|
93
|
+
# setup authorization
|
|
94
|
+
Abliteration.configure do |config|
|
|
95
|
+
# Configure Bearer authorization: bearerAuth
|
|
96
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
api_instance = Abliteration::ModelsApi.new
|
|
100
|
+
opts = {
|
|
101
|
+
method: 'method_example', # String | M-code, case-insensitive. See GET /api/v1/methods.
|
|
102
|
+
family: 'family_example', # String | Base family, for example qwen or llama.
|
|
103
|
+
author: 'author_example', # String | Publisher handle, case-insensitive.
|
|
104
|
+
license: 'license_example', # String | SPDX-ish license string as published.
|
|
105
|
+
downloads_gte: 56, # Integer |
|
|
106
|
+
downloads_lte: 56, # Integer |
|
|
107
|
+
created_after: 'created_after_example', # String | ISO-8601 date or timestamp, inclusive.
|
|
108
|
+
created_before: 'created_before_example', # String | ISO-8601 date or timestamp, inclusive.
|
|
109
|
+
sort: 'downloads', # String | Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names.
|
|
110
|
+
limit: 56, # Integer | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
|
|
111
|
+
offset: 56 # Integer | Rows to skip. Negative and non-numeric values are treated as 0.
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
begin
|
|
115
|
+
# List models
|
|
116
|
+
result = api_instance.list_models(opts)
|
|
117
|
+
p result
|
|
118
|
+
rescue Abliteration::ApiError => e
|
|
119
|
+
puts "Error when calling ModelsApi->list_models: #{e}"
|
|
120
|
+
end
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
#### Using the list_models_with_http_info variant
|
|
124
|
+
|
|
125
|
+
This returns an Array which contains the response data, status code and headers.
|
|
126
|
+
|
|
127
|
+
> <Array(<ListModels200Response>, Integer, Hash)> list_models_with_http_info(opts)
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
begin
|
|
131
|
+
# List models
|
|
132
|
+
data, status_code, headers = api_instance.list_models_with_http_info(opts)
|
|
133
|
+
p status_code # => 2xx
|
|
134
|
+
p headers # => { ... }
|
|
135
|
+
p data # => <ListModels200Response>
|
|
136
|
+
rescue Abliteration::ApiError => e
|
|
137
|
+
puts "Error when calling ModelsApi->list_models_with_http_info: #{e}"
|
|
138
|
+
end
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Parameters
|
|
142
|
+
|
|
143
|
+
| Name | Type | Description | Notes |
|
|
144
|
+
| ---- | ---- | ----------- | ----- |
|
|
145
|
+
| **method** | **String** | M-code, case-insensitive. See GET /api/v1/methods. | [optional] |
|
|
146
|
+
| **family** | **String** | Base family, for example qwen or llama. | [optional] |
|
|
147
|
+
| **author** | **String** | Publisher handle, case-insensitive. | [optional] |
|
|
148
|
+
| **license** | **String** | SPDX-ish license string as published. | [optional] |
|
|
149
|
+
| **downloads_gte** | **Integer** | | [optional] |
|
|
150
|
+
| **downloads_lte** | **Integer** | | [optional] |
|
|
151
|
+
| **created_after** | **String** | ISO-8601 date or timestamp, inclusive. | [optional] |
|
|
152
|
+
| **created_before** | **String** | ISO-8601 date or timestamp, inclusive. | [optional] |
|
|
153
|
+
| **sort** | **String** | Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names. | [optional][default to 'downloads'] |
|
|
154
|
+
| **limit** | **Integer** | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [optional][default to 50] |
|
|
155
|
+
| **offset** | **Integer** | Rows to skip. Negative and non-numeric values are treated as 0. | [optional][default to 0] |
|
|
156
|
+
|
|
157
|
+
### Return type
|
|
158
|
+
|
|
159
|
+
[**ListModels200Response**](ListModels200Response.md)
|
|
160
|
+
|
|
161
|
+
### Authorization
|
|
162
|
+
|
|
163
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
164
|
+
|
|
165
|
+
### HTTP request headers
|
|
166
|
+
|
|
167
|
+
- **Content-Type**: Not defined
|
|
168
|
+
- **Accept**: application/json
|
|
169
|
+
|
data/docs/Passport.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Abliteration::Passport
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **one_liner** | **String** | | [optional] |
|
|
8
|
+
| **practitioner** | **String** | | [optional] |
|
|
9
|
+
| **research** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'abliteration'
|
|
15
|
+
|
|
16
|
+
instance = Abliteration::Passport.new(
|
|
17
|
+
one_liner: null,
|
|
18
|
+
practitioner: null,
|
|
19
|
+
research: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|