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.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/README.md +135 -9
  4. data/Rakefile +10 -0
  5. data/abliteration.gemspec +38 -21
  6. data/docs/Author.md +28 -0
  7. data/docs/AuthorDetail.md +30 -0
  8. data/docs/AuthorsApi.md +153 -0
  9. data/docs/DaiPoint.md +22 -0
  10. data/docs/Dataset.md +38 -0
  11. data/docs/DatasetDetail.md +22 -0
  12. data/docs/DatasetsApi.md +159 -0
  13. data/docs/Envelope.md +32 -0
  14. data/docs/Error.md +26 -0
  15. data/docs/Event.md +30 -0
  16. data/docs/GetAuthor200Response.md +32 -0
  17. data/docs/GetDataset200Response.md +32 -0
  18. data/docs/GetIndex200Response.md +32 -0
  19. data/docs/GetMethod200Response.md +32 -0
  20. data/docs/GetModel200Response.md +32 -0
  21. data/docs/Index.md +36 -0
  22. data/docs/IndexDetail.md +38 -0
  23. data/docs/IndicesApi.md +144 -0
  24. data/docs/ListAuthors200Response.md +32 -0
  25. data/docs/ListDatasets200Response.md +32 -0
  26. data/docs/ListIndices200Response.md +32 -0
  27. data/docs/ListMethods200Response.md +32 -0
  28. data/docs/ListModels200Response.md +32 -0
  29. data/docs/ListTimeline200Response.md +32 -0
  30. data/docs/Method.md +28 -0
  31. data/docs/MethodDetail.md +34 -0
  32. data/docs/MethodDetailAllOfTopAuthors.md +20 -0
  33. data/docs/MethodsApi.md +144 -0
  34. data/docs/ModelDetail.md +28 -0
  35. data/docs/ModelSummary.md +42 -0
  36. data/docs/ModelsApi.md +169 -0
  37. data/docs/Passport.md +22 -0
  38. data/docs/TimelineApi.md +85 -0
  39. data/git_push.sh +54 -0
  40. data/lib/abliteration/api/authors_api.rb +167 -0
  41. data/lib/abliteration/api/datasets_api.rb +176 -0
  42. data/lib/abliteration/api/indices_api.rb +147 -0
  43. data/lib/abliteration/api/methods_api.rb +147 -0
  44. data/lib/abliteration/api/models_api.rb +191 -0
  45. data/lib/abliteration/api/timeline_api.rb +99 -0
  46. data/lib/abliteration/api_client.rb +397 -0
  47. data/lib/abliteration/api_error.rb +58 -0
  48. data/lib/abliteration/api_model_base.rb +88 -0
  49. data/lib/abliteration/configuration.rb +308 -0
  50. data/lib/abliteration/models/author.rb +194 -0
  51. data/lib/abliteration/models/author_detail.rb +211 -0
  52. data/lib/abliteration/models/dai_point.rb +165 -0
  53. data/lib/abliteration/models/dataset.rb +247 -0
  54. data/lib/abliteration/models/dataset_detail.rb +169 -0
  55. data/lib/abliteration/models/envelope.rb +364 -0
  56. data/lib/abliteration/models/error.rb +221 -0
  57. data/lib/abliteration/models/event.rb +207 -0
  58. data/lib/abliteration/models/get_author200_response.rb +384 -0
  59. data/lib/abliteration/models/get_dataset200_response.rb +384 -0
  60. data/lib/abliteration/models/get_index200_response.rb +384 -0
  61. data/lib/abliteration/models/get_method200_response.rb +384 -0
  62. data/lib/abliteration/models/get_model200_response.rb +384 -0
  63. data/lib/abliteration/models/index.rb +281 -0
  64. data/lib/abliteration/models/index_detail.rb +296 -0
  65. data/lib/abliteration/models/list_authors200_response.rb +386 -0
  66. data/lib/abliteration/models/list_datasets200_response.rb +386 -0
  67. data/lib/abliteration/models/list_indices200_response.rb +386 -0
  68. data/lib/abliteration/models/list_methods200_response.rb +386 -0
  69. data/lib/abliteration/models/list_models200_response.rb +386 -0
  70. data/lib/abliteration/models/list_timeline200_response.rb +386 -0
  71. data/lib/abliteration/models/method.rb +227 -0
  72. data/lib/abliteration/models/method_detail.rb +265 -0
  73. data/lib/abliteration/models/method_detail_all_of_top_authors.rb +156 -0
  74. data/lib/abliteration/models/model_detail.rb +196 -0
  75. data/lib/abliteration/models/model_summary.rb +265 -0
  76. data/lib/abliteration/models/passport.rb +165 -0
  77. data/lib/abliteration/version.rb +15 -0
  78. data/lib/abliteration.rb +69 -24
  79. data/openapi-generator-config.json +12 -0
  80. data/spec/api/authors_api_spec.rb +61 -0
  81. data/spec/api/datasets_api_spec.rb +64 -0
  82. data/spec/api/indices_api_spec.rb +58 -0
  83. data/spec/api/methods_api_spec.rb +58 -0
  84. data/spec/api/models_api_spec.rb +69 -0
  85. data/spec/api/timeline_api_spec.rb +50 -0
  86. data/spec/models/author_detail_spec.rb +66 -0
  87. data/spec/models/author_spec.rb +60 -0
  88. data/spec/models/dai_point_spec.rb +48 -0
  89. data/spec/models/dataset_detail_spec.rb +48 -0
  90. data/spec/models/dataset_spec.rb +96 -0
  91. data/spec/models/envelope_spec.rb +82 -0
  92. data/spec/models/error_spec.rb +60 -0
  93. data/spec/models/event_spec.rb +72 -0
  94. data/spec/models/get_author200_response_spec.rb +82 -0
  95. data/spec/models/get_dataset200_response_spec.rb +82 -0
  96. data/spec/models/get_index200_response_spec.rb +82 -0
  97. data/spec/models/get_method200_response_spec.rb +82 -0
  98. data/spec/models/get_model200_response_spec.rb +82 -0
  99. data/spec/models/index_detail_spec.rb +104 -0
  100. data/spec/models/index_spec.rb +98 -0
  101. data/spec/models/list_authors200_response_spec.rb +82 -0
  102. data/spec/models/list_datasets200_response_spec.rb +82 -0
  103. data/spec/models/list_indices200_response_spec.rb +82 -0
  104. data/spec/models/list_methods200_response_spec.rb +82 -0
  105. data/spec/models/list_models200_response_spec.rb +82 -0
  106. data/spec/models/list_timeline200_response_spec.rb +82 -0
  107. data/spec/models/method_detail_all_of_top_authors_spec.rb +42 -0
  108. data/spec/models/method_detail_spec.rb +88 -0
  109. data/spec/models/method_spec.rb +70 -0
  110. data/spec/models/model_detail_spec.rb +66 -0
  111. data/spec/models/model_summary_spec.rb +108 -0
  112. data/spec/models/passport_spec.rb +48 -0
  113. data/spec/spec_helper.rb +111 -0
  114. metadata +197 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86d53e9c1892282ea65bf0170590ab42e6114597c68f0ef4190a7467ea60fe53
4
- data.tar.gz: 5678813c43c8b7a30354d136c178111119ddcab67305894d3b9a2ee7ed0e420b
3
+ metadata.gz: 930048af7914198ecdd2ad300cbd5827447316fc3a112bbe0fc5844c2e9ddd9a
4
+ data.tar.gz: bd3f3ef798683cce29bf1f03cff941113c52de594a151d1bed8a7b36fa8f4d67
5
5
  SHA512:
6
- metadata.gz: 97df8f12b1d77c43597a086d18dce018a2cd689d7bb41fa9e9a0b226f28a8549ae5d6ae81c61fcedd0283a5397ddf5a962cd26bb76a797bf2df097cce3faf62f
7
- data.tar.gz: 59001abbe69bad3e5adda01b804edb9af56401305fb9112d4d5088568a3a6e6c4d20ad8635d6f7aa17095bf4f3d5ddae017705e2521929cf0ebcfb8694b9dc9a
6
+ metadata.gz: '0773808bc6776876aa64b5823ecce1ba35c76fae49e3634691296ec30efae25f09b44a38720c2ffbce094d3457db696fa8abf54a2dca29e1ef47525e4de320f4'
7
+ data.tar.gz: a2e281a0f34b542d64adadbceb16c80f8d3e525864430fe6bc26d29dc1ac6fd46f3c69a2db784cccd185685465151e3cfe52bea9ccaf4535978924cbadf731dc
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md CHANGED
@@ -1,17 +1,143 @@
1
1
  # abliteration
2
2
 
3
- Ruby wrapper for the [abliteration.org](https://abliteration.org) catalog API.
3
+ Abliteration - the Ruby gem for the abliteration.org Public API
4
4
 
5
- **Status:** namespace-reserved. A real Ruby client is planned. Until then, use the HTTP API directly or the [Node.js CLI](https://www.npmjs.com/package/@abliteration/cli):
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.
6
+
7
+ 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.
8
+
9
+ 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.
10
+
11
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
12
+
13
+ - API version: 1.0.0
14
+ - Package version: 0.1.0
15
+ - Generator version: 7.25.0
16
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
17
+ For more information, please visit [https://abliteration.org/api](https://abliteration.org/api)
18
+
19
+ ## Installation
20
+
21
+ ### Build a gem
22
+
23
+ To build the Ruby code into a gem:
24
+
25
+ ```shell
26
+ gem build abliteration.gemspec
27
+ ```
28
+
29
+ Then either install the gem locally:
30
+
31
+ ```shell
32
+ gem install ./abliteration-0.1.0.gem
33
+ ```
34
+
35
+ (for development, run `gem install --dev ./abliteration-0.1.0.gem` to install the development dependencies)
36
+
37
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
38
+
39
+ Finally add this to the Gemfile:
40
+
41
+ gem 'abliteration', '~> 0.1.0'
42
+
43
+ ### Install from Git
44
+
45
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
46
+
47
+ gem 'abliteration', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
48
+
49
+ ### Include the Ruby code directly
50
+
51
+ Include the Ruby code directly using `-I` as follows:
52
+
53
+ ```shell
54
+ ruby -Ilib script.rb
55
+ ```
56
+
57
+ ## Getting Started
58
+
59
+ Please follow the [installation](#installation) procedure and then run the following code:
60
+
61
+ ```ruby
62
+ # Load the gem
63
+ require 'abliteration'
64
+
65
+ # Setup authorization
66
+ Abliteration.configure do |config|
67
+ # Configure Bearer authorization: bearerAuth
68
+ config.access_token = 'YOUR_BEARER_TOKEN'
69
+ # Configure a proc to get access tokens in lieu of the static access_token configuration
70
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
71
+ end
72
+
73
+ api_instance = Abliteration::AuthorsApi.new
74
+ id = 'mlabonne' # String |
75
+
76
+ begin
77
+ #Get one author
78
+ result = api_instance.get_author(id)
79
+ p result
80
+ rescue Abliteration::ApiError => e
81
+ puts "Exception when calling AuthorsApi->get_author: #{e}"
82
+ end
6
83
 
7
- ```bash
8
- npm install -g @abliteration/cli
9
- abl login
10
- abl models --method M4 --limit 5
11
84
  ```
12
85
 
13
- Full API docs: <https://abliteration.org/api>
86
+ ## Documentation for API Endpoints
87
+
88
+ All URIs are relative to *https://abliteration.org*
89
+
90
+ Class | Method | HTTP request | Description
91
+ ------------ | ------------- | ------------- | -------------
92
+ *Abliteration::AuthorsApi* | [**get_author**](docs/AuthorsApi.md#get_author) | **GET** /api/v1/authors/{id} | Get one author
93
+ *Abliteration::AuthorsApi* | [**list_authors**](docs/AuthorsApi.md#list_authors) | **GET** /api/v1/authors | List authors
94
+ *Abliteration::DatasetsApi* | [**get_dataset**](docs/DatasetsApi.md#get_dataset) | **GET** /api/v1/datasets/{id} | Get one dataset
95
+ *Abliteration::DatasetsApi* | [**list_datasets**](docs/DatasetsApi.md#list_datasets) | **GET** /api/v1/datasets | List datasets
96
+ *Abliteration::IndicesApi* | [**get_index**](docs/IndicesApi.md#get_index) | **GET** /api/v1/indices/{id} | One index with history
97
+ *Abliteration::IndicesApi* | [**list_indices**](docs/IndicesApi.md#list_indices) | **GET** /api/v1/indices | All four indices
98
+ *Abliteration::MethodsApi* | [**get_method**](docs/MethodsApi.md#get_method) | **GET** /api/v1/methods/{id} | Get one method
99
+ *Abliteration::MethodsApi* | [**list_methods**](docs/MethodsApi.md#list_methods) | **GET** /api/v1/methods | List the method taxonomy
100
+ *Abliteration::ModelsApi* | [**get_model**](docs/ModelsApi.md#get_model) | **GET** /api/v1/models/{id} | Get one model
101
+ *Abliteration::ModelsApi* | [**list_models**](docs/ModelsApi.md#list_models) | **GET** /api/v1/models | List models
102
+ *Abliteration::TimelineApi* | [**list_timeline**](docs/TimelineApi.md#list_timeline) | **GET** /api/v1/timeline | Curated field events
103
+
104
+
105
+ ## Documentation for Models
106
+
107
+ - [Abliteration::Author](docs/Author.md)
108
+ - [Abliteration::AuthorDetail](docs/AuthorDetail.md)
109
+ - [Abliteration::DaiPoint](docs/DaiPoint.md)
110
+ - [Abliteration::Dataset](docs/Dataset.md)
111
+ - [Abliteration::DatasetDetail](docs/DatasetDetail.md)
112
+ - [Abliteration::Envelope](docs/Envelope.md)
113
+ - [Abliteration::Error](docs/Error.md)
114
+ - [Abliteration::Event](docs/Event.md)
115
+ - [Abliteration::GetAuthor200Response](docs/GetAuthor200Response.md)
116
+ - [Abliteration::GetDataset200Response](docs/GetDataset200Response.md)
117
+ - [Abliteration::GetIndex200Response](docs/GetIndex200Response.md)
118
+ - [Abliteration::GetMethod200Response](docs/GetMethod200Response.md)
119
+ - [Abliteration::GetModel200Response](docs/GetModel200Response.md)
120
+ - [Abliteration::Index](docs/Index.md)
121
+ - [Abliteration::IndexDetail](docs/IndexDetail.md)
122
+ - [Abliteration::ListAuthors200Response](docs/ListAuthors200Response.md)
123
+ - [Abliteration::ListDatasets200Response](docs/ListDatasets200Response.md)
124
+ - [Abliteration::ListIndices200Response](docs/ListIndices200Response.md)
125
+ - [Abliteration::ListMethods200Response](docs/ListMethods200Response.md)
126
+ - [Abliteration::ListModels200Response](docs/ListModels200Response.md)
127
+ - [Abliteration::ListTimeline200Response](docs/ListTimeline200Response.md)
128
+ - [Abliteration::Method](docs/Method.md)
129
+ - [Abliteration::MethodDetail](docs/MethodDetail.md)
130
+ - [Abliteration::MethodDetailAllOfTopAuthors](docs/MethodDetailAllOfTopAuthors.md)
131
+ - [Abliteration::ModelDetail](docs/ModelDetail.md)
132
+ - [Abliteration::ModelSummary](docs/ModelSummary.md)
133
+ - [Abliteration::Passport](docs/Passport.md)
134
+
135
+
136
+ ## Documentation for Authorization
137
+
138
+
139
+ Authentication schemes defined for the API:
140
+ ### bearerAuth
14
141
 
15
- ## License
142
+ - **Type**: Bearer authentication
16
143
 
17
- MIT
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
data/abliteration.gemspec CHANGED
@@ -1,22 +1,39 @@
1
- Gem::Specification.new do |spec|
2
- spec.name = 'abliteration'
3
- spec.version = '0.0.1'
4
- spec.authors = ['Catyonic OU']
5
- spec.email = ['antifaust@gmail.com']
6
-
7
- spec.summary = 'Ruby wrapper for the abliteration.org catalog API (coming soon)'
8
- spec.description = 'A Ruby client for abliteration.org catalog API is planned. ' \
9
- 'For now, use the HTTP API directly or the Node.js CLI ' \
10
- '(npm install -g @abliteration/cli).'
11
- spec.homepage = 'https://abliteration.org/api'
12
- spec.license = 'MIT'
13
-
14
- spec.required_ruby_version = '>= 2.7.0'
15
-
16
- spec.metadata['homepage_uri'] = 'https://abliteration.org/api'
17
- spec.metadata['documentation_uri'] = 'https://abliteration.org/api'
18
- spec.metadata['bug_tracker_uri'] = 'https://abliteration.org/api'
19
-
20
- spec.files = ['lib/abliteration.rb', 'README.md', 'abliteration.gemspec']
21
- spec.require_paths = ['lib']
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #abliteration.org Public API
5
+
6
+ #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.
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ Generator version: 7.25.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "abliteration/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "abliteration"
20
+ s.version = Abliteration::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Catyonic OU"]
23
+ s.email = ["contact@catyonic.com"]
24
+ s.homepage = "https://abliteration.org/api"
25
+ s.summary = "Ruby client for the abliteration.org catalog API"
26
+ s.description = "Auto-generated Ruby client for the abliteration.org LLM catalog API. Covers every route on /api/v1 with typed models and error responses."
27
+ s.license = "MIT"
28
+ s.required_ruby_version = ">= 2.7"
29
+ s.metadata = {}
30
+
31
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
22
39
  end
data/docs/Author.md ADDED
@@ -0,0 +1,28 @@
1
+ # Abliteration::Author
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Same value as &#x60;author&#x60;; added for consistency with the other single-entity payloads. | [optional] |
8
+ | **author** | **String** | | [optional] |
9
+ | **total_models** | **Integer** | | [optional] |
10
+ | **total_downloads** | **Integer** | | [optional] |
11
+ | **total_likes** | **Integer** | | [optional] |
12
+ | **first_seen_at** | **String** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'abliteration'
18
+
19
+ instance = Abliteration::Author.new(
20
+ id: null,
21
+ author: null,
22
+ total_models: null,
23
+ total_downloads: null,
24
+ total_likes: null,
25
+ first_seen_at: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,30 @@
1
+ # Abliteration::AuthorDetail
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Same value as &#x60;author&#x60;; added for consistency with the other single-entity payloads. | [optional] |
8
+ | **author** | **String** | | [optional] |
9
+ | **total_models** | **Integer** | | [optional] |
10
+ | **total_downloads** | **Integer** | | [optional] |
11
+ | **total_likes** | **Integer** | | [optional] |
12
+ | **first_seen_at** | **String** | | [optional] |
13
+ | **models** | [**Array&lt;ModelSummary&gt;**](ModelSummary.md) | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'abliteration'
19
+
20
+ instance = Abliteration::AuthorDetail.new(
21
+ id: null,
22
+ author: null,
23
+ total_models: null,
24
+ total_downloads: null,
25
+ total_likes: null,
26
+ first_seen_at: null,
27
+ models: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,153 @@
1
+ # Abliteration::AuthorsApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_author**](AuthorsApi.md#get_author) | **GET** /api/v1/authors/{id} | Get one author |
8
+ | [**list_authors**](AuthorsApi.md#list_authors) | **GET** /api/v1/authors | List authors |
9
+
10
+
11
+ ## get_author
12
+
13
+ > <GetAuthor200Response> get_author(id)
14
+
15
+ Get one author
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::AuthorsApi.new
31
+ id = 'mlabonne' # String |
32
+
33
+ begin
34
+ # Get one author
35
+ result = api_instance.get_author(id)
36
+ p result
37
+ rescue Abliteration::ApiError => e
38
+ puts "Error when calling AuthorsApi->get_author: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the get_author_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<GetAuthor200Response>, Integer, Hash)> get_author_with_http_info(id)
47
+
48
+ ```ruby
49
+ begin
50
+ # Get one author
51
+ data, status_code, headers = api_instance.get_author_with_http_info(id)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <GetAuthor200Response>
55
+ rescue Abliteration::ApiError => e
56
+ puts "Error when calling AuthorsApi->get_author_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
+ [**GetAuthor200Response**](GetAuthor200Response.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_authors
81
+
82
+ > <ListAuthors200Response> list_authors(opts)
83
+
84
+ List authors
85
+
86
+ Cost: 5-15 credits, by rows returned.
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::AuthorsApi.new
100
+ opts = {
101
+ sort: 'total_downloads', # String | Bare key is DESC (largest first); a leading `-` flips to ASC. Aliases: `downloads` == `total_downloads`, `models` == `total_models`, `likes` == `total_likes`.
102
+ limit: 56, # Integer | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
103
+ offset: 56 # Integer | Rows to skip. Negative and non-numeric values are treated as 0.
104
+ }
105
+
106
+ begin
107
+ # List authors
108
+ result = api_instance.list_authors(opts)
109
+ p result
110
+ rescue Abliteration::ApiError => e
111
+ puts "Error when calling AuthorsApi->list_authors: #{e}"
112
+ end
113
+ ```
114
+
115
+ #### Using the list_authors_with_http_info variant
116
+
117
+ This returns an Array which contains the response data, status code and headers.
118
+
119
+ > <Array(<ListAuthors200Response>, Integer, Hash)> list_authors_with_http_info(opts)
120
+
121
+ ```ruby
122
+ begin
123
+ # List authors
124
+ data, status_code, headers = api_instance.list_authors_with_http_info(opts)
125
+ p status_code # => 2xx
126
+ p headers # => { ... }
127
+ p data # => <ListAuthors200Response>
128
+ rescue Abliteration::ApiError => e
129
+ puts "Error when calling AuthorsApi->list_authors_with_http_info: #{e}"
130
+ end
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+ | Name | Type | Description | Notes |
136
+ | ---- | ---- | ----------- | ----- |
137
+ | **sort** | **String** | Bare key is DESC (largest first); a leading &#x60;-&#x60; flips to ASC. Aliases: &#x60;downloads&#x60; &#x3D;&#x3D; &#x60;total_downloads&#x60;, &#x60;models&#x60; &#x3D;&#x3D; &#x60;total_models&#x60;, &#x60;likes&#x60; &#x3D;&#x3D; &#x60;total_likes&#x60;. | [optional][default to &#39;total_downloads&#39;] |
138
+ | **limit** | **Integer** | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [optional][default to 50] |
139
+ | **offset** | **Integer** | Rows to skip. Negative and non-numeric values are treated as 0. | [optional][default to 0] |
140
+
141
+ ### Return type
142
+
143
+ [**ListAuthors200Response**](ListAuthors200Response.md)
144
+
145
+ ### Authorization
146
+
147
+ [bearerAuth](../README.md#bearerAuth)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
data/docs/DaiPoint.md ADDED
@@ -0,0 +1,22 @@
1
+ # Abliteration::DaiPoint
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **month** | **String** | | [optional] |
8
+ | **weighted_dai_pct** | **Float** | | [optional] |
9
+ | **bases_included** | **Integer** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'abliteration'
15
+
16
+ instance = Abliteration::DaiPoint.new(
17
+ month: 2026-09,
18
+ weighted_dai_pct: null,
19
+ bases_included: null
20
+ )
21
+ ```
22
+
data/docs/Dataset.md ADDED
@@ -0,0 +1,38 @@
1
+ # Abliteration::Dataset
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **author** | **String** | | [optional] |
9
+ | **slug** | **String** | | [optional] |
10
+ | **category** | **String** | | [optional] |
11
+ | **license** | **String** | | [optional] |
12
+ | **downloads** | **Integer** | | [optional] |
13
+ | **downloads_all** | **Integer** | | [optional] |
14
+ | **likes** | **Integer** | | [optional] |
15
+ | **gated** | **Integer** | | [optional] |
16
+ | **created_at** | **String** | | [optional] |
17
+ | **first_seen_at** | **String** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'abliteration'
23
+
24
+ instance = Abliteration::Dataset.new(
25
+ id: null,
26
+ author: null,
27
+ slug: null,
28
+ category: null,
29
+ license: null,
30
+ downloads: null,
31
+ downloads_all: null,
32
+ likes: null,
33
+ gated: null,
34
+ created_at: null,
35
+ first_seen_at: null
36
+ )
37
+ ```
38
+
@@ -0,0 +1,22 @@
1
+ # Abliteration::DatasetDetail
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **files** | **Array&lt;Object&gt;** | | [optional] |
9
+ | **passport** | [**Passport**](Passport.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'abliteration'
15
+
16
+ instance = Abliteration::DatasetDetail.new(
17
+ id: null,
18
+ files: null,
19
+ passport: null
20
+ )
21
+ ```
22
+