abliteration 0.1.7 → 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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -0
  3. data/docs/DownloadAnomaly.md +32 -0
  4. data/docs/DownloadPoint.md +20 -0
  5. data/docs/GetModelDownloadHistory200Response.md +32 -0
  6. data/docs/GetModelReadmeAt200Response.md +32 -0
  7. data/docs/ListAnomalies200Response.md +32 -0
  8. data/docs/ListModelReadmeDrifts200Response.md +32 -0
  9. data/docs/ModelsApi.md +304 -0
  10. data/docs/ReadmeAt.md +22 -0
  11. data/docs/ReadmeDrift.md +26 -0
  12. data/lib/abliteration/api/models_api.rb +327 -0
  13. data/lib/abliteration/models/download_anomaly.rb +250 -0
  14. data/lib/abliteration/models/download_point.rb +158 -0
  15. data/lib/abliteration/models/get_model_download_history200_response.rb +386 -0
  16. data/lib/abliteration/models/get_model_readme_at200_response.rb +384 -0
  17. data/lib/abliteration/models/list_anomalies200_response.rb +386 -0
  18. data/lib/abliteration/models/list_model_readme_drifts200_response.rb +386 -0
  19. data/lib/abliteration/models/readme_at.rb +169 -0
  20. data/lib/abliteration/models/readme_drift.rb +188 -0
  21. data/lib/abliteration/version.rb +1 -1
  22. data/lib/abliteration.rb +8 -0
  23. data/spec/models/download_anomaly_spec.rb +82 -0
  24. data/spec/models/download_point_spec.rb +42 -0
  25. data/spec/models/get_model_download_history200_response_spec.rb +82 -0
  26. data/spec/models/get_model_readme_at200_response_spec.rb +82 -0
  27. data/spec/models/list_anomalies200_response_spec.rb +82 -0
  28. data/spec/models/list_model_readme_drifts200_response_spec.rb +82 -0
  29. data/spec/models/readme_at_spec.rb +48 -0
  30. data/spec/models/readme_drift_spec.rb +60 -0
  31. metadata +33 -1
@@ -0,0 +1,188 @@
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 'date'
14
+ require 'time'
15
+
16
+ module Abliteration
17
+ # One commit that changed the model's README on HF.
18
+ class ReadmeDrift < ApiModelBase
19
+ attr_accessor :commit_sha
20
+
21
+ # Unix epoch seconds.
22
+ attr_accessor :commit_ts
23
+
24
+ attr_accessor :commit_message
25
+
26
+ # README byte size at this commit.
27
+ attr_accessor :content_size
28
+
29
+ # Bytes added (positive) or removed (negative) since the previous commit. First commit gets 0.
30
+ attr_accessor :size_delta
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'commit_sha' => :'commit_sha',
36
+ :'commit_ts' => :'commit_ts',
37
+ :'commit_message' => :'commit_message',
38
+ :'content_size' => :'content_size',
39
+ :'size_delta' => :'size_delta'
40
+ }
41
+ end
42
+
43
+ # Returns attribute mapping this model knows about
44
+ def self.acceptable_attribute_map
45
+ attribute_map
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ acceptable_attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'commit_sha' => :'String',
57
+ :'commit_ts' => :'Integer',
58
+ :'commit_message' => :'String',
59
+ :'content_size' => :'Integer',
60
+ :'size_delta' => :'Integer'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ :'commit_message',
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Abliteration::ReadmeDrift` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ acceptable_attribute_map = self.class.acceptable_attribute_map
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!acceptable_attribute_map.key?(k.to_sym))
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Abliteration::ReadmeDrift`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
83
+ end
84
+ h[k.to_sym] = v
85
+ }
86
+
87
+ if attributes.key?(:'commit_sha')
88
+ self.commit_sha = attributes[:'commit_sha']
89
+ end
90
+
91
+ if attributes.key?(:'commit_ts')
92
+ self.commit_ts = attributes[:'commit_ts']
93
+ end
94
+
95
+ if attributes.key?(:'commit_message')
96
+ self.commit_message = attributes[:'commit_message']
97
+ end
98
+
99
+ if attributes.key?(:'content_size')
100
+ self.content_size = attributes[:'content_size']
101
+ end
102
+
103
+ if attributes.key?(:'size_delta')
104
+ self.size_delta = attributes[:'size_delta']
105
+ end
106
+ end
107
+
108
+ # Show invalid properties with the reasons. Usually used together with valid?
109
+ # @return Array for valid properties with the reasons
110
+ def list_invalid_properties
111
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
112
+ invalid_properties = Array.new
113
+ invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ warn '[DEPRECATED] the `valid?` method is obsolete'
120
+ true
121
+ end
122
+
123
+ # Checks equality by comparing each attribute.
124
+ # @param [Object] Object to be compared
125
+ def ==(o)
126
+ return true if self.equal?(o)
127
+ self.class == o.class &&
128
+ commit_sha == o.commit_sha &&
129
+ commit_ts == o.commit_ts &&
130
+ commit_message == o.commit_message &&
131
+ content_size == o.content_size &&
132
+ size_delta == o.size_delta
133
+ end
134
+
135
+ # @see the `==` method
136
+ # @param [Object] Object to be compared
137
+ def eql?(o)
138
+ self == o
139
+ end
140
+
141
+ # Calculates hash code according to all attributes.
142
+ # @return [Integer] Hash code
143
+ def hash
144
+ [commit_sha, commit_ts, commit_message, content_size, size_delta].hash
145
+ end
146
+
147
+ # Builds the object from hash
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ # @return [Object] Returns the model itself
150
+ def self.build_from_hash(attributes)
151
+ return nil unless attributes.is_a?(Hash)
152
+ attributes = attributes.transform_keys(&:to_sym)
153
+ transformed_hash = {}
154
+ openapi_types.each_pair do |key, type|
155
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
156
+ transformed_hash["#{key}"] = nil
157
+ elsif type =~ /\AArray<(.*)>/i
158
+ # check to ensure the input is an array given that the attribute
159
+ # is documented as an array but the input is not
160
+ if attributes[attribute_map[key]].is_a?(Array)
161
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
162
+ end
163
+ elsif !attributes[attribute_map[key]].nil?
164
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
165
+ end
166
+ end
167
+ new(transformed_hash)
168
+ end
169
+
170
+ # Returns the object in the form of hash
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_hash
173
+ hash = {}
174
+ self.class.attribute_map.each_pair do |attr, param|
175
+ value = self.send(attr)
176
+ if value.nil?
177
+ is_nullable = self.class.openapi_nullable.include?(attr)
178
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
179
+ end
180
+
181
+ hash[param] = _to_hash(value)
182
+ end
183
+ hash
184
+ end
185
+
186
+ end
187
+
188
+ end
@@ -11,5 +11,5 @@ Generator version: 7.25.0
11
11
  =end
12
12
 
13
13
  module Abliteration
14
- VERSION = "0.1.7"
14
+ VERSION = "0.1.9"
15
15
  end
data/lib/abliteration.rb CHANGED
@@ -27,6 +27,8 @@ require 'abliteration/models/deletion_summary'
27
27
  require 'abliteration/models/deletion_summary_timeline_inner'
28
28
  require 'abliteration/models/deletion_summary_top_by_downloads_inner'
29
29
  require 'abliteration/models/delisted_model'
30
+ require 'abliteration/models/download_anomaly'
31
+ require 'abliteration/models/download_point'
30
32
  require 'abliteration/models/envelope'
31
33
  require 'abliteration/models/error'
32
34
  require 'abliteration/models/event'
@@ -36,15 +38,19 @@ require 'abliteration/models/get_historical_deletion_summary200_response'
36
38
  require 'abliteration/models/get_index200_response'
37
39
  require 'abliteration/models/get_method200_response'
38
40
  require 'abliteration/models/get_model200_response'
41
+ require 'abliteration/models/get_model_download_history200_response'
42
+ require 'abliteration/models/get_model_readme_at200_response'
39
43
  require 'abliteration/models/historical_deletion'
40
44
  require 'abliteration/models/index'
41
45
  require 'abliteration/models/index_detail'
46
+ require 'abliteration/models/list_anomalies200_response'
42
47
  require 'abliteration/models/list_authors200_response'
43
48
  require 'abliteration/models/list_datasets200_response'
44
49
  require 'abliteration/models/list_delisted_models200_response'
45
50
  require 'abliteration/models/list_historical_deletions200_response'
46
51
  require 'abliteration/models/list_indices200_response'
47
52
  require 'abliteration/models/list_methods200_response'
53
+ require 'abliteration/models/list_model_readme_drifts200_response'
48
54
  require 'abliteration/models/list_models200_response'
49
55
  require 'abliteration/models/list_timeline200_response'
50
56
  require 'abliteration/models/method'
@@ -53,6 +59,8 @@ require 'abliteration/models/method_detail_all_of_top_authors'
53
59
  require 'abliteration/models/model_detail'
54
60
  require 'abliteration/models/model_summary'
55
61
  require 'abliteration/models/passport'
62
+ require 'abliteration/models/readme_at'
63
+ require 'abliteration/models/readme_drift'
56
64
 
57
65
  # APIs
58
66
  require 'abliteration/api/authors_api'
@@ -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::DownloadAnomaly
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Abliteration::DownloadAnomaly do
21
+ #let(:instance) { Abliteration::DownloadAnomaly.new }
22
+
23
+ describe 'test an instance of DownloadAnomaly' do
24
+ it 'should create an instance of DownloadAnomaly' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Abliteration::DownloadAnomaly)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "model_id"' 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 "current_at"' 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 "current_downloads"' 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 "baseline_at"' 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 "baseline_downloads"' 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 "ratio"' 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 "delta"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ describe 'test attribute "kind"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["spike", "drop"])
76
+ # validator.allowable_values.each do |value|
77
+ # expect { instance.kind = value }.not_to raise_error
78
+ # end
79
+ end
80
+ end
81
+
82
+ end
@@ -0,0 +1,42 @@
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::DownloadPoint
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Abliteration::DownloadPoint do
21
+ #let(:instance) { Abliteration::DownloadPoint.new }
22
+
23
+ describe 'test an instance of DownloadPoint' do
24
+ it 'should create an instance of DownloadPoint' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Abliteration::DownloadPoint)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "date"' 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 "downloads"' 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
+ end
@@ -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::GetModelDownloadHistory200Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Abliteration::GetModelDownloadHistory200Response do
21
+ #let(:instance) { Abliteration::GetModelDownloadHistory200Response.new }
22
+
23
+ describe 'test an instance of GetModelDownloadHistory200Response' do
24
+ it 'should create an instance of GetModelDownloadHistory200Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Abliteration::GetModelDownloadHistory200Response)
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
@@ -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::GetModelReadmeAt200Response
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe Abliteration::GetModelReadmeAt200Response do
21
+ #let(:instance) { Abliteration::GetModelReadmeAt200Response.new }
22
+
23
+ describe 'test an instance of GetModelReadmeAt200Response' do
24
+ it 'should create an instance of GetModelReadmeAt200Response' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(Abliteration::GetModelReadmeAt200Response)
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
@@ -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