venice_client 1.0.10 → 1.0.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8fbc8be533e1ba20843526813cc73eef17e56efae4c830028d89a2eb1ceaacb
4
- data.tar.gz: 2764d27f214635647c6e1d23f201c543211e2847e736c9a46e51be36629558da
3
+ metadata.gz: 801025488229ae90b172b53f59dda5915ee679c7e04e432cbf5f9e5739a4a044
4
+ data.tar.gz: 68c697a04dbe84a35ccb30753cce038d8185f62e199da0a4cdd95613800adbe3
5
5
  SHA512:
6
- metadata.gz: 21644af74fe3dc42a4c434b46fe418f4422188cbc2a106225f9e6b785ffb56bff5136d4de5147b90b2bbd76eb2440d28ed852a66fabf302f9fb40c465455651d
7
- data.tar.gz: 9d888a66857d717bd9c9c5efcee8ec3f06d28bd159535393547c35123da150cd9219aaf59888a327d63bbdac2a02f971897f807663f1479620614237afb3b045
6
+ metadata.gz: 8f3d85e14c595bd6c09bb9153267a465e0a49582e173df6cd917058fe835a208620ce62335edfc7df57e91da93067880aa37486a5f70148619969d8de457d1ac
7
+ data.tar.gz: 2ec9ac9c4106131c99fee2ca0b635875641ffce44b11e38105298c757b7c6f0f48ba568bdfb0b02dcf03f819ba695952e86be57c4c844c4c8fa9110444ce7244
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- venice_client (1.0.10)
4
+ venice_client (1.0.12)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -99,9 +99,9 @@ module VeniceClient
99
99
  # check to see if the attribute exists and convert string to symbol for hash key
100
100
  acceptable_attribute_map = self.class.acceptable_attribute_map
101
101
  attributes = attributes.each_with_object({}) { |(k, v), h|
102
- if (!acceptable_attribute_map.key?(k.to_sym))
103
- fail ArgumentError, "`#{k}` is not a valid attribute in `VeniceClient::AssistantMessage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
104
- end
102
+ # if (!acceptable_attribute_map.key?(k.to_sym))
103
+ # fail ArgumentError, "`#{k}` is not a valid attribute in `VeniceClient::AssistantMessage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
104
+ # end
105
105
  h[k.to_sym] = v
106
106
  }
107
107
 
@@ -36,8 +36,6 @@ module VeniceClient
36
36
 
37
37
  attr_accessor :venice_parameters
38
38
 
39
- attr_accessor :additional_properties
40
-
41
39
  class EnumAttributeValidator
42
40
  attr_reader :datatype
43
41
  attr_reader :allowable_values
@@ -112,18 +110,14 @@ module VeniceClient
112
110
  fail ArgumentError, "The input argument (attributes) must be a hash in `VeniceClient::CreateChatCompletion200Response` initialize method"
113
111
  end
114
112
 
115
- @additional_properties = {}
116
113
  # check to see if the attribute exists and convert string to symbol for hash key
117
114
  acceptable_attribute_map = self.class.acceptable_attribute_map
118
- new_attributes = {}
119
- attributes.each do |k, v|
120
- if (acceptable_attribute_map.key?(k.to_sym))
121
- new_attributes[k.to_sym] = v
122
- else
123
- @additional_properties[k.to_sym] = v
115
+ attributes = attributes.each_with_object({}) { |(k, v), h|
116
+ if (!acceptable_attribute_map.key?(k.to_sym))
117
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VeniceClient::CreateChatCompletion200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
124
118
  end
125
- end
126
- attributes = new_attributes
119
+ h[k.to_sym] = v
120
+ }
127
121
 
128
122
  if attributes.key?(:'choices')
129
123
  if (value = attributes[:'choices']).is_a?(Array)
@@ -293,8 +287,7 @@ module VeniceClient
293
287
  object == o.object &&
294
288
  prompt_logprobs == o.prompt_logprobs &&
295
289
  usage == o.usage &&
296
- venice_parameters == o.venice_parameters &&
297
- additional_properties == o.additional_properties
290
+ venice_parameters == o.venice_parameters
298
291
  end
299
292
 
300
293
  # @see the `==` method
@@ -306,7 +299,7 @@ module VeniceClient
306
299
  # Calculates hash code according to all attributes.
307
300
  # @return [Integer] Hash code
308
301
  def hash
309
- [choices, created, id, model, object, prompt_logprobs, usage, venice_parameters, additional_properties].hash
302
+ [choices, created, id, model, object, prompt_logprobs, usage, venice_parameters].hash
310
303
  end
311
304
 
312
305
  # Builds the object from hash
@@ -357,10 +350,10 @@ module VeniceClient
357
350
  when :Object
358
351
  # generic object (usually a Hash), return directly
359
352
  value
360
- when /\AArray<(?<inner_type>.+)>/i
353
+ when /\AArray<(?<inner_type>.+)>\z/
361
354
  inner_type = Regexp.last_match[:inner_type]
362
355
  value.map { |v| _deserialize(inner_type, v) }
363
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>/i
356
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
364
357
  k_type = Regexp.last_match[:k_type]
365
358
  v_type = Regexp.last_match[:v_type]
366
359
  {}.tap do |hash|
@@ -400,7 +393,7 @@ module VeniceClient
400
393
 
401
394
  hash[param] = _to_hash(value)
402
395
  end
403
- hash.merge!(@additional_properties || {})
396
+ hash.merge!(@additional_properties)
404
397
  hash
405
398
  end
406
399
 
@@ -424,4 +417,4 @@ module VeniceClient
424
417
 
425
418
  end
426
419
 
427
- end
420
+ end
@@ -100,9 +100,9 @@ module VeniceClient
100
100
  # check to see if the attribute exists and convert string to symbol for hash key
101
101
  acceptable_attribute_map = self.class.acceptable_attribute_map
102
102
  attributes = attributes.each_with_object({}) { |(k, v), h|
103
- if (!acceptable_attribute_map.key?(k.to_sym))
104
- fail ArgumentError, "`#{k}` is not a valid attribute in `VeniceClient::CreateChatCompletion200ResponseChoicesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
105
- end
103
+ #if (!acceptable_attribute_map.key?(k.to_sym))
104
+ # fail ArgumentError, "`#{k}` is not a valid attribute in `VeniceClient::CreateChatCompletion200ResponseChoicesInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
105
+ #end
106
106
  h[k.to_sym] = v
107
107
  }
108
108
 
@@ -11,5 +11,5 @@ Generator version: 7.14.0
11
11
  =end
12
12
 
13
13
  module VeniceClient
14
- VERSION = '1.0.10'
14
+ VERSION = '1.0.12'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: venice_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator