venice_client 1.0.3 → 1.0.5

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: b8c9bb367a502b9b3cdbe4bfe3e1fcbe40d0e7a0408d90c25706e2ca02d18abf
4
- data.tar.gz: d711690c7b0674d9f61306acf64f55ba64b026e64f03ab616e5bb68b7659e0cd
3
+ metadata.gz: 6014e9110253dfc81502465519bd7bddebc70fa7587d361ee8c1bf2632fdd0de
4
+ data.tar.gz: 781663c80bddac71dfc62a666581e29108b76b01250de69b090b46d0f98b0781
5
5
  SHA512:
6
- metadata.gz: af95679f66178f2df295a6416c2a4b34f3c2bffee985ed414fc7e6c67981d536f43aebb5ca6e37123caf6b86916aef634cc9949c85b2b727ae2963585c175175
7
- data.tar.gz: c3818600b53ca9a2d0c56d3b7b8595969b06a2af1bf826272c95dc147866f6b5d88b31c1d9ae0d11e53ceb52344a6f6e07a60bf6840f9489c247ccf985cae416
6
+ metadata.gz: 1747d89b076e0a6ce91ae9969e01dc6d0446290a780ed11637147a67414c0dbdd3db168791d45cdd815e51d3e484707eab6bbf03a453aac674d206972d6ddaaf
7
+ data.tar.gz: 4847460d460fa52931d5baf28050e4f69c1823a467bf22d7db5b39ceb0654de14ff27eceb43770bfbcd26f96163546894d830af1c8847de38291c11845f61d50
@@ -169,7 +169,7 @@ module VeniceClient
169
169
  # @return true if the model is valid
170
170
  def valid?
171
171
  warn "[DEPRECATED] the `valid?` method is obsolete"
172
- enable_web_search_validator = EnumAttributeValidator.new("String", ["auto", "false", "true"])
172
+ enable_web_search_validator = EnumAttributeValidator.new("String", ["auto", "off", "on"])
173
173
  return false unless enable_web_search_validator.valid?(@enable_web_search)
174
174
  true
175
175
  end
@@ -177,7 +177,7 @@ module VeniceClient
177
177
  # Custom attribute writer method checking allowed values (enum).
178
178
  # @param [Object] enable_web_search Object to be assigned
179
179
  def enable_web_search=(enable_web_search)
180
- validator = EnumAttributeValidator.new("String", ["auto", "false", "true"])
180
+ validator = EnumAttributeValidator.new("String", ["auto", "off", "on"])
181
181
  unless validator.valid?(enable_web_search)
182
182
  fail ArgumentError, "invalid value for \"enable_web_search\", must be one of #{validator.allowable_values}."
183
183
  end
@@ -10,8 +10,8 @@ Generator version: 7.14.0
10
10
 
11
11
  =end
12
12
 
13
- require 'date'
14
- require 'time'
13
+ require "date"
14
+ require "time"
15
15
 
16
16
  module VeniceClient
17
17
  # Unique parameters to Venice's API implementation.
@@ -72,7 +72,7 @@ module VeniceClient
72
72
  :'character_slug' => :'character_slug',
73
73
  :'strip_thinking_response' => :'strip_thinking_response',
74
74
  :'disable_thinking' => :'disable_thinking',
75
- :'web_search_citations' => :'web_search_citations'
75
+ :'web_search_citations' => :'web_search_citations',
76
76
  }
77
77
  end
78
78
 
@@ -96,14 +96,13 @@ module VeniceClient
96
96
  :'character_slug' => :'String',
97
97
  :'strip_thinking_response' => :'Boolean',
98
98
  :'disable_thinking' => :'Boolean',
99
- :'web_search_citations' => :'Array<CreateChatCompletion200ResponseVeniceParametersWebSearchCitationsInner>'
99
+ :'web_search_citations' => :'Array<CreateChatCompletion200ResponseVeniceParametersWebSearchCitationsInner>',
100
100
  }
101
101
  end
102
102
 
103
103
  # List of attributes with nullable: true
104
104
  def self.openapi_nullable
105
- Set.new([
106
- ])
105
+ Set.new([])
107
106
  end
108
107
 
109
108
  # Initializes the object
@@ -172,7 +171,7 @@ module VeniceClient
172
171
  # Show invalid properties with the reasons. Usually used together with valid?
173
172
  # @return Array for valid properties with the reasons
174
173
  def list_invalid_properties
175
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
174
+ warn "[DEPRECATED] the `list_invalid_properties` method is obsolete"
176
175
  invalid_properties = Array.new
177
176
  if @enable_web_search.nil?
178
177
  invalid_properties.push('invalid value for "enable_web_search", enable_web_search cannot be nil.')
@@ -204,9 +203,9 @@ module VeniceClient
204
203
  # Check to see if the all the properties in the model are valid
205
204
  # @return true if the model is valid
206
205
  def valid?
207
- warn '[DEPRECATED] the `valid?` method is obsolete'
206
+ warn "[DEPRECATED] the `valid?` method is obsolete"
208
207
  return false if @enable_web_search.nil?
209
- enable_web_search_validator = EnumAttributeValidator.new('String', ["auto", "false", "true"])
208
+ enable_web_search_validator = EnumAttributeValidator.new("String", ["auto", "off", "on"])
210
209
  return false unless enable_web_search_validator.valid?(@enable_web_search)
211
210
  return false if @enable_web_citations.nil?
212
211
  return false if @include_venice_system_prompt.nil?
@@ -219,7 +218,7 @@ module VeniceClient
219
218
  # Custom attribute writer method checking allowed values (enum).
220
219
  # @param [Object] enable_web_search Object to be assigned
221
220
  def enable_web_search=(enable_web_search)
222
- validator = EnumAttributeValidator.new('String', ["auto", "false", "true"])
221
+ validator = EnumAttributeValidator.new("String", ["auto", "off", "on"])
223
222
  unless validator.valid?(enable_web_search)
224
223
  fail ArgumentError, "invalid value for \"enable_web_search\", must be one of #{validator.allowable_values}."
225
224
  end
@@ -230,7 +229,7 @@ module VeniceClient
230
229
  # @param [Object] enable_web_citations Value to be assigned
231
230
  def enable_web_citations=(enable_web_citations)
232
231
  if enable_web_citations.nil?
233
- fail ArgumentError, 'enable_web_citations cannot be nil'
232
+ fail ArgumentError, "enable_web_citations cannot be nil"
234
233
  end
235
234
 
236
235
  @enable_web_citations = enable_web_citations
@@ -240,7 +239,7 @@ module VeniceClient
240
239
  # @param [Object] include_venice_system_prompt Value to be assigned
241
240
  def include_venice_system_prompt=(include_venice_system_prompt)
242
241
  if include_venice_system_prompt.nil?
243
- fail ArgumentError, 'include_venice_system_prompt cannot be nil'
242
+ fail ArgumentError, "include_venice_system_prompt cannot be nil"
244
243
  end
245
244
 
246
245
  @include_venice_system_prompt = include_venice_system_prompt
@@ -250,7 +249,7 @@ module VeniceClient
250
249
  # @param [Object] include_search_results_in_stream Value to be assigned
251
250
  def include_search_results_in_stream=(include_search_results_in_stream)
252
251
  if include_search_results_in_stream.nil?
253
- fail ArgumentError, 'include_search_results_in_stream cannot be nil'
252
+ fail ArgumentError, "include_search_results_in_stream cannot be nil"
254
253
  end
255
254
 
256
255
  @include_search_results_in_stream = include_search_results_in_stream
@@ -260,7 +259,7 @@ module VeniceClient
260
259
  # @param [Object] strip_thinking_response Value to be assigned
261
260
  def strip_thinking_response=(strip_thinking_response)
262
261
  if strip_thinking_response.nil?
263
- fail ArgumentError, 'strip_thinking_response cannot be nil'
262
+ fail ArgumentError, "strip_thinking_response cannot be nil"
264
263
  end
265
264
 
266
265
  @strip_thinking_response = strip_thinking_response
@@ -270,7 +269,7 @@ module VeniceClient
270
269
  # @param [Object] disable_thinking Value to be assigned
271
270
  def disable_thinking=(disable_thinking)
272
271
  if disable_thinking.nil?
273
- fail ArgumentError, 'disable_thinking cannot be nil'
272
+ fail ArgumentError, "disable_thinking cannot be nil"
274
273
  end
275
274
 
276
275
  @disable_thinking = disable_thinking
@@ -281,14 +280,14 @@ module VeniceClient
281
280
  def ==(o)
282
281
  return true if self.equal?(o)
283
282
  self.class == o.class &&
284
- enable_web_search == o.enable_web_search &&
285
- enable_web_citations == o.enable_web_citations &&
286
- include_venice_system_prompt == o.include_venice_system_prompt &&
287
- include_search_results_in_stream == o.include_search_results_in_stream &&
288
- character_slug == o.character_slug &&
289
- strip_thinking_response == o.strip_thinking_response &&
290
- disable_thinking == o.disable_thinking &&
291
- web_search_citations == o.web_search_citations
283
+ enable_web_search == o.enable_web_search &&
284
+ enable_web_citations == o.enable_web_citations &&
285
+ include_venice_system_prompt == o.include_venice_system_prompt &&
286
+ include_search_results_in_stream == o.include_search_results_in_stream &&
287
+ character_slug == o.character_slug &&
288
+ strip_thinking_response == o.strip_thinking_response &&
289
+ disable_thinking == o.disable_thinking &&
290
+ web_search_citations == o.web_search_citations
292
291
  end
293
292
 
294
293
  # @see the `==` method
@@ -414,7 +413,5 @@ module VeniceClient
414
413
  value
415
414
  end
416
415
  end
417
-
418
416
  end
419
-
420
417
  end
@@ -11,5 +11,5 @@ Generator version: 7.14.0
11
11
  =end
12
12
 
13
13
  module VeniceClient
14
- VERSION = "1.0.3"
14
+ VERSION = "1.0.5"
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.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator