venice_client 1.0.2 → 1.0.3
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: b8c9bb367a502b9b3cdbe4bfe3e1fcbe40d0e7a0408d90c25706e2ca02d18abf
|
|
4
|
+
data.tar.gz: d711690c7b0674d9f61306acf64f55ba64b026e64f03ab616e5bb68b7659e0cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af95679f66178f2df295a6416c2a4b34f3c2bffee985ed414fc7e6c67981d536f43aebb5ca6e37123caf6b86916aef634cc9949c85b2b727ae2963585c175175
|
|
7
|
+
data.tar.gz: c3818600b53ca9a2d0c56d3b7b8595969b06a2af1bf826272c95dc147866f6b5d88b31c1d9ae0d11e53ceb52344a6f6e07a60bf6840f9489c247ccf985cae416
|
|
@@ -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.
|
|
@@ -68,7 +68,7 @@ module VeniceClient
|
|
|
68
68
|
:'enable_web_search' => :'enable_web_search',
|
|
69
69
|
:'enable_web_citations' => :'enable_web_citations',
|
|
70
70
|
:'include_search_results_in_stream' => :'include_search_results_in_stream',
|
|
71
|
-
:'include_venice_system_prompt' => :'include_venice_system_prompt'
|
|
71
|
+
:'include_venice_system_prompt' => :'include_venice_system_prompt',
|
|
72
72
|
}
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -91,14 +91,13 @@ module VeniceClient
|
|
|
91
91
|
:'enable_web_search' => :'String',
|
|
92
92
|
:'enable_web_citations' => :'Boolean',
|
|
93
93
|
:'include_search_results_in_stream' => :'Boolean',
|
|
94
|
-
:'include_venice_system_prompt' => :'Boolean'
|
|
94
|
+
:'include_venice_system_prompt' => :'Boolean',
|
|
95
95
|
}
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# List of attributes with nullable: true
|
|
99
99
|
def self.openapi_nullable
|
|
100
|
-
Set.new([
|
|
101
|
-
])
|
|
100
|
+
Set.new([])
|
|
102
101
|
end
|
|
103
102
|
|
|
104
103
|
# Initializes the object
|
|
@@ -136,7 +135,7 @@ module VeniceClient
|
|
|
136
135
|
if attributes.key?(:'enable_web_search')
|
|
137
136
|
self.enable_web_search = attributes[:'enable_web_search']
|
|
138
137
|
else
|
|
139
|
-
self.enable_web_search =
|
|
138
|
+
self.enable_web_search = "off"
|
|
140
139
|
end
|
|
141
140
|
|
|
142
141
|
if attributes.key?(:'enable_web_citations')
|
|
@@ -161,7 +160,7 @@ module VeniceClient
|
|
|
161
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
162
161
|
# @return Array for valid properties with the reasons
|
|
163
162
|
def list_invalid_properties
|
|
164
|
-
warn
|
|
163
|
+
warn "[DEPRECATED] the `list_invalid_properties` method is obsolete"
|
|
165
164
|
invalid_properties = Array.new
|
|
166
165
|
invalid_properties
|
|
167
166
|
end
|
|
@@ -169,8 +168,8 @@ module VeniceClient
|
|
|
169
168
|
# Check to see if the all the properties in the model are valid
|
|
170
169
|
# @return true if the model is valid
|
|
171
170
|
def valid?
|
|
172
|
-
warn
|
|
173
|
-
enable_web_search_validator = EnumAttributeValidator.new(
|
|
171
|
+
warn "[DEPRECATED] the `valid?` method is obsolete"
|
|
172
|
+
enable_web_search_validator = EnumAttributeValidator.new("String", ["auto", "false", "true"])
|
|
174
173
|
return false unless enable_web_search_validator.valid?(@enable_web_search)
|
|
175
174
|
true
|
|
176
175
|
end
|
|
@@ -178,7 +177,7 @@ module VeniceClient
|
|
|
178
177
|
# Custom attribute writer method checking allowed values (enum).
|
|
179
178
|
# @param [Object] enable_web_search Object to be assigned
|
|
180
179
|
def enable_web_search=(enable_web_search)
|
|
181
|
-
validator = EnumAttributeValidator.new(
|
|
180
|
+
validator = EnumAttributeValidator.new("String", ["auto", "false", "true"])
|
|
182
181
|
unless validator.valid?(enable_web_search)
|
|
183
182
|
fail ArgumentError, "invalid value for \"enable_web_search\", must be one of #{validator.allowable_values}."
|
|
184
183
|
end
|
|
@@ -190,13 +189,13 @@ module VeniceClient
|
|
|
190
189
|
def ==(o)
|
|
191
190
|
return true if self.equal?(o)
|
|
192
191
|
self.class == o.class &&
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
192
|
+
character_slug == o.character_slug &&
|
|
193
|
+
strip_thinking_response == o.strip_thinking_response &&
|
|
194
|
+
disable_thinking == o.disable_thinking &&
|
|
195
|
+
enable_web_search == o.enable_web_search &&
|
|
196
|
+
enable_web_citations == o.enable_web_citations &&
|
|
197
|
+
include_search_results_in_stream == o.include_search_results_in_stream &&
|
|
198
|
+
include_venice_system_prompt == o.include_venice_system_prompt
|
|
200
199
|
end
|
|
201
200
|
|
|
202
201
|
# @see the `==` method
|
|
@@ -322,7 +321,5 @@ module VeniceClient
|
|
|
322
321
|
value
|
|
323
322
|
end
|
|
324
323
|
end
|
|
325
|
-
|
|
326
324
|
end
|
|
327
|
-
|
|
328
325
|
end
|