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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6014e9110253dfc81502465519bd7bddebc70fa7587d361ee8c1bf2632fdd0de
|
|
4
|
+
data.tar.gz: 781663c80bddac71dfc62a666581e29108b76b01250de69b090b46d0f98b0781
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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", "
|
|
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", "
|
|
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
|
|
14
|
-
require
|
|
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
|
|
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
|
|
206
|
+
warn "[DEPRECATED] the `valid?` method is obsolete"
|
|
208
207
|
return false if @enable_web_search.nil?
|
|
209
|
-
enable_web_search_validator = EnumAttributeValidator.new(
|
|
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(
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|