abliteration 0.1.8 → 0.1.9
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/README.md +6 -0
- data/docs/DownloadAnomaly.md +32 -0
- data/docs/DownloadPoint.md +20 -0
- data/docs/GetModelDownloadHistory200Response.md +32 -0
- data/docs/ListAnomalies200Response.md +32 -0
- data/docs/ModelsApi.md +154 -0
- data/lib/abliteration/api/models_api.rb +174 -0
- data/lib/abliteration/models/download_anomaly.rb +250 -0
- data/lib/abliteration/models/download_point.rb +158 -0
- data/lib/abliteration/models/get_model_download_history200_response.rb +386 -0
- data/lib/abliteration/models/list_anomalies200_response.rb +386 -0
- data/lib/abliteration/version.rb +1 -1
- data/lib/abliteration.rb +4 -0
- data/spec/models/download_anomaly_spec.rb +82 -0
- data/spec/models/download_point_spec.rb +42 -0
- data/spec/models/get_model_download_history200_response_spec.rb +82 -0
- data/spec/models/list_anomalies200_response_spec.rb +82 -0
- metadata +17 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#abliteration.org Public API
|
|
3
|
+
|
|
4
|
+
#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.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Abliteration::ListAnomalies200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Abliteration::ListAnomalies200Response do
|
|
21
|
+
#let(:instance) { Abliteration::ListAnomalies200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ListAnomalies200Response' do
|
|
24
|
+
it 'should create an instance of ListAnomalies200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Abliteration::ListAnomalies200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "data"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "cost"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "credits_remaining"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "rate_limit_limit"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "rate_limit_remaining"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "rate_limit_reset"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "metering"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["preview", "billed"])
|
|
70
|
+
# validator.allowable_values.each do |value|
|
|
71
|
+
# expect { instance.metering = value }.not_to raise_error
|
|
72
|
+
# end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "request_id"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: abliteration
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Catyonic OU
|
|
@@ -73,6 +73,8 @@ files:
|
|
|
73
73
|
- docs/DeletionSummaryTimelineInner.md
|
|
74
74
|
- docs/DeletionSummaryTopByDownloadsInner.md
|
|
75
75
|
- docs/DelistedModel.md
|
|
76
|
+
- docs/DownloadAnomaly.md
|
|
77
|
+
- docs/DownloadPoint.md
|
|
76
78
|
- docs/Envelope.md
|
|
77
79
|
- docs/Error.md
|
|
78
80
|
- docs/Event.md
|
|
@@ -82,11 +84,13 @@ files:
|
|
|
82
84
|
- docs/GetIndex200Response.md
|
|
83
85
|
- docs/GetMethod200Response.md
|
|
84
86
|
- docs/GetModel200Response.md
|
|
87
|
+
- docs/GetModelDownloadHistory200Response.md
|
|
85
88
|
- docs/GetModelReadmeAt200Response.md
|
|
86
89
|
- docs/HistoricalDeletion.md
|
|
87
90
|
- docs/Index.md
|
|
88
91
|
- docs/IndexDetail.md
|
|
89
92
|
- docs/IndicesApi.md
|
|
93
|
+
- docs/ListAnomalies200Response.md
|
|
90
94
|
- docs/ListAuthors200Response.md
|
|
91
95
|
- docs/ListDatasets200Response.md
|
|
92
96
|
- docs/ListDelistedModels200Response.md
|
|
@@ -128,6 +132,8 @@ files:
|
|
|
128
132
|
- lib/abliteration/models/deletion_summary_timeline_inner.rb
|
|
129
133
|
- lib/abliteration/models/deletion_summary_top_by_downloads_inner.rb
|
|
130
134
|
- lib/abliteration/models/delisted_model.rb
|
|
135
|
+
- lib/abliteration/models/download_anomaly.rb
|
|
136
|
+
- lib/abliteration/models/download_point.rb
|
|
131
137
|
- lib/abliteration/models/envelope.rb
|
|
132
138
|
- lib/abliteration/models/error.rb
|
|
133
139
|
- lib/abliteration/models/event.rb
|
|
@@ -137,10 +143,12 @@ files:
|
|
|
137
143
|
- lib/abliteration/models/get_index200_response.rb
|
|
138
144
|
- lib/abliteration/models/get_method200_response.rb
|
|
139
145
|
- lib/abliteration/models/get_model200_response.rb
|
|
146
|
+
- lib/abliteration/models/get_model_download_history200_response.rb
|
|
140
147
|
- lib/abliteration/models/get_model_readme_at200_response.rb
|
|
141
148
|
- lib/abliteration/models/historical_deletion.rb
|
|
142
149
|
- lib/abliteration/models/index.rb
|
|
143
150
|
- lib/abliteration/models/index_detail.rb
|
|
151
|
+
- lib/abliteration/models/list_anomalies200_response.rb
|
|
144
152
|
- lib/abliteration/models/list_authors200_response.rb
|
|
145
153
|
- lib/abliteration/models/list_datasets200_response.rb
|
|
146
154
|
- lib/abliteration/models/list_delisted_models200_response.rb
|
|
@@ -176,6 +184,8 @@ files:
|
|
|
176
184
|
- spec/models/deletion_summary_timeline_inner_spec.rb
|
|
177
185
|
- spec/models/deletion_summary_top_by_downloads_inner_spec.rb
|
|
178
186
|
- spec/models/delisted_model_spec.rb
|
|
187
|
+
- spec/models/download_anomaly_spec.rb
|
|
188
|
+
- spec/models/download_point_spec.rb
|
|
179
189
|
- spec/models/envelope_spec.rb
|
|
180
190
|
- spec/models/error_spec.rb
|
|
181
191
|
- spec/models/event_spec.rb
|
|
@@ -185,10 +195,12 @@ files:
|
|
|
185
195
|
- spec/models/get_index200_response_spec.rb
|
|
186
196
|
- spec/models/get_method200_response_spec.rb
|
|
187
197
|
- spec/models/get_model200_response_spec.rb
|
|
198
|
+
- spec/models/get_model_download_history200_response_spec.rb
|
|
188
199
|
- spec/models/get_model_readme_at200_response_spec.rb
|
|
189
200
|
- spec/models/historical_deletion_spec.rb
|
|
190
201
|
- spec/models/index_detail_spec.rb
|
|
191
202
|
- spec/models/index_spec.rb
|
|
203
|
+
- spec/models/list_anomalies200_response_spec.rb
|
|
192
204
|
- spec/models/list_authors200_response_spec.rb
|
|
193
205
|
- spec/models/list_datasets200_response_spec.rb
|
|
194
206
|
- spec/models/list_delisted_models200_response_spec.rb
|
|
@@ -238,6 +250,7 @@ test_files:
|
|
|
238
250
|
- spec/api/indices_api_spec.rb
|
|
239
251
|
- spec/api/methods_api_spec.rb
|
|
240
252
|
- spec/models/historical_deletion_spec.rb
|
|
253
|
+
- spec/models/list_anomalies200_response_spec.rb
|
|
241
254
|
- spec/models/get_index200_response_spec.rb
|
|
242
255
|
- spec/models/model_summary_spec.rb
|
|
243
256
|
- spec/models/list_methods200_response_spec.rb
|
|
@@ -248,6 +261,7 @@ test_files:
|
|
|
248
261
|
- spec/models/deletion_summary_spec.rb
|
|
249
262
|
- spec/models/list_indices200_response_spec.rb
|
|
250
263
|
- spec/models/dataset_spec.rb
|
|
264
|
+
- spec/models/download_anomaly_spec.rb
|
|
251
265
|
- spec/models/list_historical_deletions200_response_spec.rb
|
|
252
266
|
- spec/models/method_spec.rb
|
|
253
267
|
- spec/models/delisted_model_spec.rb
|
|
@@ -261,9 +275,11 @@ test_files:
|
|
|
261
275
|
- spec/models/get_dataset200_response_spec.rb
|
|
262
276
|
- spec/models/passport_spec.rb
|
|
263
277
|
- spec/models/dai_point_spec.rb
|
|
278
|
+
- spec/models/get_model_download_history200_response_spec.rb
|
|
264
279
|
- spec/models/author_detail_spec.rb
|
|
265
280
|
- spec/models/get_model200_response_spec.rb
|
|
266
281
|
- spec/models/error_spec.rb
|
|
282
|
+
- spec/models/download_point_spec.rb
|
|
267
283
|
- spec/models/get_author200_response_spec.rb
|
|
268
284
|
- spec/models/dataset_detail_spec.rb
|
|
269
285
|
- spec/models/event_spec.rb
|