venice_client 1.0.20 → 1.0.21

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 (189) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -1
  3. data/docs/AudioModelPricingInput.md +0 -2
  4. data/docs/CacheControl.md +20 -0
  5. data/docs/ChatApi.md +1 -1
  6. data/docs/ChatCompletionRequest.md +7 -1
  7. data/docs/ChatCompletionRequestReasoning.md +18 -0
  8. data/docs/ChatCompletionRequestVeniceParameters.md +3 -1
  9. data/docs/CompleteVideo200Response.md +18 -0
  10. data/docs/CompleteVideoRequest.md +20 -0
  11. data/docs/CreateChatCompletion200Response.md +1 -1
  12. data/docs/CreateChatCompletion200ResponseVeniceParameters.md +2 -0
  13. data/docs/GenerateImageRequest.md +9 -3
  14. data/docs/GetApiKeyRateLimitLogs200ResponseDataInner.md +1 -1
  15. data/docs/GetApiKeyRateLimits200Response.md +0 -2
  16. data/docs/GetApiKeyRateLimits200ResponseDataBalances.md +0 -2
  17. data/docs/GetApiKeyRateLimits200ResponseDataRateLimitsInner.md +1 -1
  18. data/docs/ImageApi.md +1 -1
  19. data/docs/ImageModelPricingGeneration.md +0 -2
  20. data/docs/ImageModelPricingUpscale2x.md +0 -2
  21. data/docs/ImageModelPricingUpscale4x.md +0 -2
  22. data/docs/ImageUrl.md +2 -0
  23. data/docs/LLMModelPricingInput.md +0 -2
  24. data/docs/LLMModelPricingOutput.md +0 -2
  25. data/docs/ModelResponseModelSpec.md +2 -0
  26. data/docs/ModelResponseModelSpecConstraints.md +13 -1
  27. data/docs/ModelsApi.md +2 -2
  28. data/docs/QueueVideo200Response.md +20 -0
  29. data/docs/QueueVideoRequest.md +32 -0
  30. data/docs/QuoteVideo200Response.md +18 -0
  31. data/docs/RetrieveVideo200Response.md +22 -0
  32. data/docs/RetrieveVideoRequest.md +22 -0
  33. data/docs/SimpleGenerateImageRequest.md +1 -1
  34. data/docs/Text.md +2 -0
  35. data/docs/VideoApi.md +295 -0
  36. data/docs/VideoModelConstraints.md +28 -0
  37. data/lib/venice_client/api/api_keys_api.rb +1 -1
  38. data/lib/venice_client/api/audio_api.rb +1 -1
  39. data/lib/venice_client/api/billing_api.rb +1 -1
  40. data/lib/venice_client/api/characters_api.rb +1 -1
  41. data/lib/venice_client/api/chat_api.rb +1 -1
  42. data/lib/venice_client/api/embeddings_api.rb +1 -1
  43. data/lib/venice_client/api/image_api.rb +1 -1
  44. data/lib/venice_client/api/models_api.rb +3 -3
  45. data/lib/venice_client/api/preview_api.rb +1 -1
  46. data/lib/venice_client/api/speech_api.rb +1 -1
  47. data/lib/venice_client/api/video_api.rb +278 -0
  48. data/lib/venice_client/api_client.rb +1 -1
  49. data/lib/venice_client/api_error.rb +1 -1
  50. data/lib/venice_client/configuration.rb +1 -1
  51. data/lib/venice_client/models/assistant_message.rb +8 -8
  52. data/lib/venice_client/models/assistant_message_content.rb +1 -1
  53. data/lib/venice_client/models/audio_model_pricing.rb +1 -1
  54. data/lib/venice_client/models/audio_model_pricing_input.rb +2 -29
  55. data/lib/venice_client/models/billing_usage_request.rb +1 -1
  56. data/lib/venice_client/models/billing_usage_response.rb +1 -1
  57. data/lib/venice_client/models/cache_control.rb +273 -0
  58. data/lib/venice_client/models/chat_completion_request.rb +65 -2
  59. data/lib/venice_client/models/chat_completion_request_messages_inner.rb +2 -2
  60. data/lib/venice_client/models/chat_completion_request_reasoning.rb +256 -0
  61. data/lib/venice_client/models/chat_completion_request_response_format.rb +1 -1
  62. data/lib/venice_client/models/chat_completion_request_stop.rb +1 -1
  63. data/lib/venice_client/models/chat_completion_request_stream_options.rb +1 -1
  64. data/lib/venice_client/models/chat_completion_request_tool_choice.rb +1 -1
  65. data/lib/venice_client/models/chat_completion_request_tool_choice_any_of.rb +1 -1
  66. data/lib/venice_client/models/chat_completion_request_tool_choice_any_of_function.rb +1 -1
  67. data/lib/venice_client/models/chat_completion_request_venice_parameters.rb +15 -3
  68. data/lib/venice_client/models/complete_video200_response.rb +238 -0
  69. data/lib/venice_client/models/complete_video_request.rb +265 -0
  70. data/lib/venice_client/models/create_api_key200_response.rb +1 -1
  71. data/lib/venice_client/models/create_api_key200_response_data.rb +1 -1
  72. data/lib/venice_client/models/create_api_key_request.rb +1 -1
  73. data/lib/venice_client/models/create_api_key_request_expires_at.rb +1 -1
  74. data/lib/venice_client/models/create_chat_completion200_response.rb +11 -19
  75. data/lib/venice_client/models/create_chat_completion200_response_choices_inner.rb +7 -7
  76. data/lib/venice_client/models/create_chat_completion200_response_choices_inner_logprobs.rb +1 -1
  77. data/lib/venice_client/models/create_chat_completion200_response_choices_inner_logprobs_top_logprobs_inner.rb +1 -1
  78. data/lib/venice_client/models/create_chat_completion200_response_choices_inner_message.rb +2 -2
  79. data/lib/venice_client/models/create_chat_completion200_response_usage.rb +1 -1
  80. data/lib/venice_client/models/create_chat_completion200_response_venice_parameters.rb +29 -2
  81. data/lib/venice_client/models/create_chat_completion200_response_venice_parameters_web_search_citations_inner.rb +1 -1
  82. data/lib/venice_client/models/create_embedding200_response.rb +1 -1
  83. data/lib/venice_client/models/create_embedding200_response_data_inner.rb +1 -1
  84. data/lib/venice_client/models/create_embedding200_response_usage.rb +1 -1
  85. data/lib/venice_client/models/create_embedding_request_schema.rb +1 -1
  86. data/lib/venice_client/models/create_embedding_request_schema_input.rb +1 -1
  87. data/lib/venice_client/models/create_embedding_request_schema_model.rb +1 -1
  88. data/lib/venice_client/models/create_speech_request_schema.rb +1 -1
  89. data/lib/venice_client/models/delete_api_key200_response.rb +1 -1
  90. data/lib/venice_client/models/detailed_error.rb +1 -1
  91. data/lib/venice_client/models/edit_image_request.rb +1 -1
  92. data/lib/venice_client/models/edit_image_request_image.rb +1 -1
  93. data/lib/venice_client/models/generate_image200_response.rb +1 -1
  94. data/lib/venice_client/models/generate_image200_response_timing.rb +1 -1
  95. data/lib/venice_client/models/generate_image_request.rb +44 -42
  96. data/lib/venice_client/models/get_api_key_by_id200_response.rb +1 -1
  97. data/lib/venice_client/models/get_api_key_by_id200_response_data.rb +1 -1
  98. data/lib/venice_client/models/get_api_key_generate_web3_key200_response.rb +1 -1
  99. data/lib/venice_client/models/get_api_key_generate_web3_key200_response_data.rb +1 -1
  100. data/lib/venice_client/models/get_api_key_rate_limit_logs200_response.rb +1 -1
  101. data/lib/venice_client/models/get_api_key_rate_limit_logs200_response_data_inner.rb +2 -2
  102. data/lib/venice_client/models/get_api_key_rate_limits200_response.rb +2 -12
  103. data/lib/venice_client/models/get_api_key_rate_limits200_response_data.rb +1 -1
  104. data/lib/venice_client/models/get_api_key_rate_limits200_response_data_api_tier.rb +1 -1
  105. data/lib/venice_client/models/get_api_key_rate_limits200_response_data_balances.rb +2 -12
  106. data/lib/venice_client/models/get_api_key_rate_limits200_response_data_rate_limits_inner.rb +1 -1
  107. data/lib/venice_client/models/get_api_key_rate_limits200_response_data_rate_limits_inner_rate_limits_inner.rb +1 -1
  108. data/lib/venice_client/models/get_api_keys200_response.rb +1 -1
  109. data/lib/venice_client/models/get_api_keys200_response_data_inner.rb +1 -1
  110. data/lib/venice_client/models/get_api_keys200_response_data_inner_consumption_limits.rb +1 -1
  111. data/lib/venice_client/models/get_api_keys200_response_data_inner_usage.rb +1 -1
  112. data/lib/venice_client/models/get_api_keys200_response_data_inner_usage_trailing_seven_days.rb +1 -1
  113. data/lib/venice_client/models/get_billing_usage200_response.rb +1 -1
  114. data/lib/venice_client/models/get_billing_usage200_response_data_inner.rb +1 -1
  115. data/lib/venice_client/models/get_billing_usage200_response_data_inner_inference_details.rb +1 -1
  116. data/lib/venice_client/models/get_billing_usage200_response_pagination.rb +1 -1
  117. data/lib/venice_client/models/get_character_by_slug200_response.rb +1 -1
  118. data/lib/venice_client/models/image_model_constraints.rb +1 -1
  119. data/lib/venice_client/models/image_model_constraints_steps.rb +1 -1
  120. data/lib/venice_client/models/image_model_pricing.rb +1 -1
  121. data/lib/venice_client/models/image_model_pricing_generation.rb +2 -29
  122. data/lib/venice_client/models/image_model_pricing_upscale.rb +1 -1
  123. data/lib/venice_client/models/image_model_pricing_upscale2x.rb +2 -29
  124. data/lib/venice_client/models/image_model_pricing_upscale4x.rb +2 -29
  125. data/lib/venice_client/models/image_styles_get200_response.rb +1 -1
  126. data/lib/venice_client/models/image_url.rb +12 -3
  127. data/lib/venice_client/models/image_url_object.rb +1 -1
  128. data/lib/venice_client/models/json_object.rb +1 -1
  129. data/lib/venice_client/models/json_schema.rb +1 -1
  130. data/lib/venice_client/models/list_characters200_response.rb +1 -1
  131. data/lib/venice_client/models/list_characters200_response_data_inner.rb +1 -1
  132. data/lib/venice_client/models/list_characters200_response_data_inner_stats.rb +1 -1
  133. data/lib/venice_client/models/list_model_compatibility_mapping200_response.rb +1 -1
  134. data/lib/venice_client/models/list_model_traits200_response.rb +1 -1
  135. data/lib/venice_client/models/list_models200_response.rb +1 -1
  136. data/lib/venice_client/models/list_models200_response_type.rb +1 -1
  137. data/lib/venice_client/models/list_models_type_parameter.rb +1 -1
  138. data/lib/venice_client/models/llm_model_pricing.rb +1 -1
  139. data/lib/venice_client/models/llm_model_pricing_input.rb +2 -29
  140. data/lib/venice_client/models/llm_model_pricing_output.rb +2 -29
  141. data/lib/venice_client/models/model_response.rb +3 -3
  142. data/lib/venice_client/models/model_response_model_spec.rb +46 -2
  143. data/lib/venice_client/models/model_response_model_spec_capabilities.rb +3 -3
  144. data/lib/venice_client/models/model_response_model_spec_constraints.rb +3 -2
  145. data/lib/venice_client/models/model_response_model_spec_pricing.rb +1 -1
  146. data/lib/venice_client/models/objects_inner.rb +1 -1
  147. data/lib/venice_client/models/post_api_key_generate_web3_key_request.rb +1 -1
  148. data/lib/venice_client/models/queue_video200_response.rb +265 -0
  149. data/lib/venice_client/models/queue_video_request.rb +438 -0
  150. data/lib/venice_client/models/quote_video200_response.rb +237 -0
  151. data/lib/venice_client/models/retrieve_video200_response.rb +316 -0
  152. data/lib/venice_client/models/retrieve_video_request.rb +277 -0
  153. data/lib/venice_client/models/simple_generate_image200_response.rb +1 -1
  154. data/lib/venice_client/models/simple_generate_image200_response_data_inner.rb +1 -1
  155. data/lib/venice_client/models/simple_generate_image200_response_data_inner_any_of.rb +1 -1
  156. data/lib/venice_client/models/simple_generate_image200_response_data_inner_any_of1.rb +1 -1
  157. data/lib/venice_client/models/simple_generate_image_request.rb +1 -1
  158. data/lib/venice_client/models/standard_error.rb +1 -1
  159. data/lib/venice_client/models/system_message.rb +8 -8
  160. data/lib/venice_client/models/system_message_content.rb +1 -1
  161. data/lib/venice_client/models/text.rb +12 -3
  162. data/lib/venice_client/models/text_model_constraints.rb +1 -1
  163. data/lib/venice_client/models/text_model_constraints_temperature.rb +1 -1
  164. data/lib/venice_client/models/text_model_constraints_top_p.rb +1 -1
  165. data/lib/venice_client/models/tool_call.rb +1 -1
  166. data/lib/venice_client/models/tool_call_function.rb +1 -1
  167. data/lib/venice_client/models/tool_message.rb +8 -8
  168. data/lib/venice_client/models/upscale_image_request.rb +1 -1
  169. data/lib/venice_client/models/upscale_image_request_enhance.rb +1 -1
  170. data/lib/venice_client/models/user_message.rb +8 -8
  171. data/lib/venice_client/models/user_message_content.rb +1 -1
  172. data/lib/venice_client/models/video_model_constraints.rb +404 -0
  173. data/lib/venice_client/version.rb +2 -2
  174. data/lib/venice_client.rb +12 -1
  175. data/spec/api/video_api_spec.rb +83 -0
  176. data/spec/models/cache_control_spec.rb +46 -0
  177. data/spec/models/chat_completion_request_reasoning_spec.rb +40 -0
  178. data/spec/models/complete_video200_response_spec.rb +36 -0
  179. data/spec/models/complete_video_request_spec.rb +42 -0
  180. data/spec/models/queue_video200_response_spec.rb +42 -0
  181. data/spec/models/queue_video_request_spec.rb +86 -0
  182. data/spec/models/quote_video200_response_spec.rb +36 -0
  183. data/spec/models/retrieve_video200_response_spec.rb +52 -0
  184. data/spec/models/retrieve_video_request_spec.rb +48 -0
  185. data/spec/models/video_model_constraints_spec.rb +70 -0
  186. data/spec/spec_helper.rb +1 -1
  187. data/swagger.yaml +587 -76
  188. data/venice_client.gemspec +1 -1
  189. metadata +46 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -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,6 @@ module VeniceClient
400
393
 
401
394
  hash[param] = _to_hash(value)
402
395
  end
403
- hash.merge!(@additional_properties || {})
404
396
  hash
405
397
  end
406
398
 
@@ -424,4 +416,4 @@ module VeniceClient
424
416
 
425
417
  end
426
418
 
427
- end
419
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -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
 
@@ -172,9 +172,9 @@ module VeniceClient
172
172
  # Custom attribute writer method checking allowed values (enum).
173
173
  # @param [Object] finish_reason Object to be assigned
174
174
  def finish_reason=(finish_reason)
175
- validator = EnumAttributeValidator.new('String', ["tool_calls", "stop", "length"])
175
+ validator = EnumAttributeValidator.new('String', ["stop", "length"])
176
176
  unless validator.valid?(finish_reason)
177
- fail ArgumentError, "invalid value for \"finish_reason\", must be one of #{validator.allowable_values}. Was #{finish_reason}"
177
+ fail ArgumentError, "invalid value for \"finish_reason\", must be one of #{validator.allowable_values}."
178
178
  end
179
179
  @finish_reason = finish_reason
180
180
  end
@@ -202,7 +202,7 @@ module VeniceClient
202
202
  # Custom attribute writer method checking allowed values (enum).
203
203
  # @param [Object] stop_reason Object to be assigned
204
204
  def stop_reason=(stop_reason)
205
- validator = EnumAttributeValidator.new('String', ["tool_calls", "stop", "length"])
205
+ validator = EnumAttributeValidator.new('String', ["stop", "length"])
206
206
  unless validator.valid?(stop_reason)
207
207
  fail ArgumentError, "invalid value for \"stop_reason\", must be one of #{validator.allowable_values}."
208
208
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -87,7 +87,7 @@ module VeniceClient
87
87
  return model if model
88
88
  else
89
89
  # raise if data contains keys that are not known to the model
90
- # raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
90
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
91
91
  model = const.build_from_hash(data)
92
92
  return model if model
93
93
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -22,6 +22,9 @@ module VeniceClient
22
22
  # Did the request enable web citations?
23
23
  attr_accessor :enable_web_citations
24
24
 
25
+ # Did the request enable web scraping of URLs via Firecrawl?
26
+ attr_accessor :enable_web_scraping
27
+
25
28
  # Did the request include the Venice system prompt?
26
29
  attr_accessor :include_venice_system_prompt
27
30
 
@@ -70,6 +73,7 @@ module VeniceClient
70
73
  {
71
74
  :'enable_web_search' => :'enable_web_search',
72
75
  :'enable_web_citations' => :'enable_web_citations',
76
+ :'enable_web_scraping' => :'enable_web_scraping',
73
77
  :'include_venice_system_prompt' => :'include_venice_system_prompt',
74
78
  :'include_search_results_in_stream' => :'include_search_results_in_stream',
75
79
  :'return_search_results_as_documents' => :'return_search_results_as_documents',
@@ -95,6 +99,7 @@ module VeniceClient
95
99
  {
96
100
  :'enable_web_search' => :'String',
97
101
  :'enable_web_citations' => :'Boolean',
102
+ :'enable_web_scraping' => :'Boolean',
98
103
  :'include_venice_system_prompt' => :'Boolean',
99
104
  :'include_search_results_in_stream' => :'Boolean',
100
105
  :'return_search_results_as_documents' => :'Boolean',
@@ -139,6 +144,12 @@ module VeniceClient
139
144
  self.enable_web_citations = nil
140
145
  end
141
146
 
147
+ if attributes.key?(:'enable_web_scraping')
148
+ self.enable_web_scraping = attributes[:'enable_web_scraping']
149
+ else
150
+ self.enable_web_scraping = nil
151
+ end
152
+
142
153
  if attributes.key?(:'include_venice_system_prompt')
143
154
  self.include_venice_system_prompt = attributes[:'include_venice_system_prompt']
144
155
  else
@@ -193,6 +204,10 @@ module VeniceClient
193
204
  invalid_properties.push('invalid value for "enable_web_citations", enable_web_citations cannot be nil.')
194
205
  end
195
206
 
207
+ if @enable_web_scraping.nil?
208
+ invalid_properties.push('invalid value for "enable_web_scraping", enable_web_scraping cannot be nil.')
209
+ end
210
+
196
211
  if @include_venice_system_prompt.nil?
197
212
  invalid_properties.push('invalid value for "include_venice_system_prompt", include_venice_system_prompt cannot be nil.')
198
213
  end
@@ -224,6 +239,7 @@ module VeniceClient
224
239
  enable_web_search_validator = EnumAttributeValidator.new('String', ["auto", "off", "on"])
225
240
  return false unless enable_web_search_validator.valid?(@enable_web_search)
226
241
  return false if @enable_web_citations.nil?
242
+ return false if @enable_web_scraping.nil?
227
243
  return false if @include_venice_system_prompt.nil?
228
244
  return false if @include_search_results_in_stream.nil?
229
245
  return false if @return_search_results_as_documents.nil?
@@ -252,6 +268,16 @@ module VeniceClient
252
268
  @enable_web_citations = enable_web_citations
253
269
  end
254
270
 
271
+ # Custom attribute writer method with validation
272
+ # @param [Object] enable_web_scraping Value to be assigned
273
+ def enable_web_scraping=(enable_web_scraping)
274
+ if enable_web_scraping.nil?
275
+ fail ArgumentError, 'enable_web_scraping cannot be nil'
276
+ end
277
+
278
+ @enable_web_scraping = enable_web_scraping
279
+ end
280
+
255
281
  # Custom attribute writer method with validation
256
282
  # @param [Object] include_venice_system_prompt Value to be assigned
257
283
  def include_venice_system_prompt=(include_venice_system_prompt)
@@ -309,6 +335,7 @@ module VeniceClient
309
335
  self.class == o.class &&
310
336
  enable_web_search == o.enable_web_search &&
311
337
  enable_web_citations == o.enable_web_citations &&
338
+ enable_web_scraping == o.enable_web_scraping &&
312
339
  include_venice_system_prompt == o.include_venice_system_prompt &&
313
340
  include_search_results_in_stream == o.include_search_results_in_stream &&
314
341
  return_search_results_as_documents == o.return_search_results_as_documents &&
@@ -327,7 +354,7 @@ module VeniceClient
327
354
  # Calculates hash code according to all attributes.
328
355
  # @return [Integer] Hash code
329
356
  def hash
330
- [enable_web_search, enable_web_citations, include_venice_system_prompt, include_search_results_in_stream, return_search_results_as_documents, character_slug, strip_thinking_response, disable_thinking, web_search_citations].hash
357
+ [enable_web_search, enable_web_citations, enable_web_scraping, include_venice_system_prompt, include_search_results_in_stream, return_search_results_as_documents, character_slug, strip_thinking_response, disable_thinking, web_search_citations].hash
331
358
  end
332
359
 
333
360
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -57,12 +57,21 @@ module VeniceClient
57
57
  # Random seed for generation. If not provided, a random seed will be used.
58
58
  attr_accessor :seed
59
59
 
60
- # Number of inference steps. The following models have reduced max steps from the global max: venice-sd35: 30 max steps, hidream: 50 max steps, flux.1-krea: 30 max steps, flux-dev: 30 max steps, flux-dev-uncensored: 30 max steps, lustify-sdxl: 50 max steps, lustify-v7: 25 max steps, pony-realism: 50 max steps, qwen-image: 8 max steps, stable-diffusion-3.5: 30 max steps, wai-Illustrious: 30 max steps. These constraints are exposed in the model list endpoint for each model.
60
+ # Number of inference steps. This model does not support steps - this field is ignored.
61
61
  attr_accessor :steps
62
62
 
63
63
  # An image style to apply to the image. Visit https://docs.venice.ai/api-reference/endpoint/image/styles for more details.
64
64
  attr_accessor :style_preset
65
65
 
66
+ # Aspect ratio (utilized by certain image models including Nano Banana). Examples: \"1:1\", \"16:9\".
67
+ attr_accessor :aspect_ratio
68
+
69
+ # Resolution (utilized by certain image models including Nano Banana). Examples: \"1024x1024\", \"512x512\".
70
+ attr_accessor :resolution
71
+
72
+ # Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image. Only supported by certain models. If web search is used, additional credits are getting charged.
73
+ attr_accessor :enable_web_search
74
+
66
75
  # Width of the generated image. Each model has a specific height and width divisor listed in the widthHeightDivisor constraint in the model list endpoint.
67
76
  attr_accessor :width
68
77
 
@@ -107,6 +116,9 @@ module VeniceClient
107
116
  :'seed' => :'seed',
108
117
  :'steps' => :'steps',
109
118
  :'style_preset' => :'style_preset',
119
+ :'aspect_ratio' => :'aspect_ratio',
120
+ :'resolution' => :'resolution',
121
+ :'enable_web_search' => :'enable_web_search',
110
122
  :'width' => :'width'
111
123
  }
112
124
  end
@@ -140,6 +152,9 @@ module VeniceClient
140
152
  :'seed' => :'Integer',
141
153
  :'steps' => :'Integer',
142
154
  :'style_preset' => :'String',
155
+ :'aspect_ratio' => :'String',
156
+ :'resolution' => :'String',
157
+ :'enable_web_search' => :'Boolean',
143
158
  :'width' => :'Integer'
144
159
  }
145
160
  end
@@ -244,13 +259,25 @@ module VeniceClient
244
259
  if attributes.key?(:'steps')
245
260
  self.steps = attributes[:'steps']
246
261
  else
247
- self.steps = 20
262
+ self.steps = 0
248
263
  end
249
264
 
250
265
  if attributes.key?(:'style_preset')
251
266
  self.style_preset = attributes[:'style_preset']
252
267
  end
253
268
 
269
+ if attributes.key?(:'aspect_ratio')
270
+ self.aspect_ratio = attributes[:'aspect_ratio']
271
+ end
272
+
273
+ if attributes.key?(:'resolution')
274
+ self.resolution = attributes[:'resolution']
275
+ end
276
+
277
+ if attributes.key?(:'enable_web_search')
278
+ self.enable_web_search = attributes[:'enable_web_search']
279
+ end
280
+
254
281
  if attributes.key?(:'width')
255
282
  self.width = attributes[:'width']
256
283
  else
@@ -291,16 +318,16 @@ module VeniceClient
291
318
  invalid_properties.push('invalid value for "model", model cannot be nil.')
292
319
  end
293
320
 
294
- if !@negative_prompt.nil? && @negative_prompt.to_s.length > 1500
295
- invalid_properties.push('invalid value for "negative_prompt", the character length must be smaller than or equal to 1500.')
321
+ if !@negative_prompt.nil? && @negative_prompt.to_s.length > 7500
322
+ invalid_properties.push('invalid value for "negative_prompt", the character length must be smaller than or equal to 7500.')
296
323
  end
297
324
 
298
325
  if @prompt.nil?
299
326
  invalid_properties.push('invalid value for "prompt", prompt cannot be nil.')
300
327
  end
301
328
 
302
- if @prompt.to_s.length > 1500
303
- invalid_properties.push('invalid value for "prompt", the character length must be smaller than or equal to 1500.')
329
+ if @prompt.to_s.length > 7500
330
+ invalid_properties.push('invalid value for "prompt", the character length must be smaller than or equal to 7500.')
304
331
  end
305
332
 
306
333
  if @prompt.to_s.length < 1
@@ -323,14 +350,6 @@ module VeniceClient
323
350
  invalid_properties.push('invalid value for "seed", must be greater than or equal to -999999999.')
324
351
  end
325
352
 
326
- if !@steps.nil? && @steps > 50
327
- invalid_properties.push('invalid value for "steps", must be smaller than or equal to 50.')
328
- end
329
-
330
- if !@steps.nil? && @steps <= 0
331
- invalid_properties.push('invalid value for "steps", must be greater than 0.')
332
- end
333
-
334
353
  if !@width.nil? && @width > 1280
335
354
  invalid_properties.push('invalid value for "width", must be smaller than or equal to 1280.')
336
355
  end
@@ -355,16 +374,14 @@ module VeniceClient
355
374
  return false if !@lora_strength.nil? && @lora_strength > 100
356
375
  return false if !@lora_strength.nil? && @lora_strength < 0
357
376
  return false if @model.nil?
358
- return false if !@negative_prompt.nil? && @negative_prompt.to_s.length > 1500
377
+ return false if !@negative_prompt.nil? && @negative_prompt.to_s.length > 7500
359
378
  return false if @prompt.nil?
360
- return false if @prompt.to_s.length > 1500
379
+ return false if @prompt.to_s.length > 7500
361
380
  return false if @prompt.to_s.length < 1
362
381
  return false if !@variants.nil? && @variants > 4
363
382
  return false if !@variants.nil? && @variants < 1
364
383
  return false if !@seed.nil? && @seed > 999999999
365
384
  return false if !@seed.nil? && @seed < -999999999
366
- return false if !@steps.nil? && @steps > 50
367
- return false if !@steps.nil? && @steps <= 0
368
385
  return false if !@width.nil? && @width > 1280
369
386
  return false if !@width.nil? && @width <= 0
370
387
  true
@@ -451,8 +468,8 @@ module VeniceClient
451
468
  fail ArgumentError, 'negative_prompt cannot be nil'
452
469
  end
453
470
 
454
- if negative_prompt.to_s.length > 1500
455
- fail ArgumentError, 'invalid value for "negative_prompt", the character length must be smaller than or equal to 1500.'
471
+ if negative_prompt.to_s.length > 7500
472
+ fail ArgumentError, 'invalid value for "negative_prompt", the character length must be smaller than or equal to 7500.'
456
473
  end
457
474
 
458
475
  @negative_prompt = negative_prompt
@@ -465,8 +482,8 @@ module VeniceClient
465
482
  fail ArgumentError, 'prompt cannot be nil'
466
483
  end
467
484
 
468
- if prompt.to_s.length > 1500
469
- fail ArgumentError, 'invalid value for "prompt", the character length must be smaller than or equal to 1500.'
485
+ if prompt.to_s.length > 7500
486
+ fail ArgumentError, 'invalid value for "prompt", the character length must be smaller than or equal to 7500.'
470
487
  end
471
488
 
472
489
  if prompt.to_s.length < 1
@@ -512,24 +529,6 @@ module VeniceClient
512
529
  @seed = seed
513
530
  end
514
531
 
515
- # Custom attribute writer method with validation
516
- # @param [Object] steps Value to be assigned
517
- def steps=(steps)
518
- if steps.nil?
519
- fail ArgumentError, 'steps cannot be nil'
520
- end
521
-
522
- if steps > 50
523
- fail ArgumentError, 'invalid value for "steps", must be smaller than or equal to 50.'
524
- end
525
-
526
- if steps <= 0
527
- fail ArgumentError, 'invalid value for "steps", must be greater than 0.'
528
- end
529
-
530
- @steps = steps
531
- end
532
-
533
532
  # Custom attribute writer method with validation
534
533
  # @param [Object] width Value to be assigned
535
534
  def width=(width)
@@ -569,6 +568,9 @@ module VeniceClient
569
568
  seed == o.seed &&
570
569
  steps == o.steps &&
571
570
  style_preset == o.style_preset &&
571
+ aspect_ratio == o.aspect_ratio &&
572
+ resolution == o.resolution &&
573
+ enable_web_search == o.enable_web_search &&
572
574
  width == o.width
573
575
  end
574
576
 
@@ -581,7 +583,7 @@ module VeniceClient
581
583
  # Calculates hash code according to all attributes.
582
584
  # @return [Integer] Hash code
583
585
  def hash
584
- [cfg_scale, embed_exif_metadata, format, height, hide_watermark, inpaint, lora_strength, model, negative_prompt, prompt, return_binary, variants, safe_mode, seed, steps, style_preset, width].hash
586
+ [cfg_scale, embed_exif_metadata, format, height, hide_watermark, inpaint, lora_strength, model, negative_prompt, prompt, return_binary, variants, safe_mode, seed, steps, style_preset, aspect_ratio, resolution, enable_web_search, width].hash
585
587
  end
586
588
 
587
589
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The Venice.ai API.
5
5
 
6
- The version of the OpenAPI document: 20250918.173746
6
+ The version of the OpenAPI document: 20251209.153516
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.14.0