venice_client 1.0.19 → 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.
- checksums.yaml +4 -4
- data/README.md +15 -1
- data/docs/AudioModelPricingInput.md +0 -2
- data/docs/CacheControl.md +20 -0
- data/docs/ChatApi.md +1 -1
- data/docs/ChatCompletionRequest.md +7 -1
- data/docs/ChatCompletionRequestReasoning.md +18 -0
- data/docs/ChatCompletionRequestVeniceParameters.md +3 -1
- data/docs/CompleteVideo200Response.md +18 -0
- data/docs/CompleteVideoRequest.md +20 -0
- data/docs/CreateChatCompletion200Response.md +1 -1
- data/docs/CreateChatCompletion200ResponseVeniceParameters.md +2 -0
- data/docs/GenerateImageRequest.md +9 -3
- data/docs/GetApiKeyRateLimitLogs200ResponseDataInner.md +1 -1
- data/docs/GetApiKeyRateLimits200Response.md +0 -2
- data/docs/GetApiKeyRateLimits200ResponseDataBalances.md +0 -2
- data/docs/GetApiKeyRateLimits200ResponseDataRateLimitsInner.md +1 -1
- data/docs/ImageApi.md +1 -1
- data/docs/ImageModelPricingGeneration.md +0 -2
- data/docs/ImageModelPricingUpscale2x.md +0 -2
- data/docs/ImageModelPricingUpscale4x.md +0 -2
- data/docs/ImageUrl.md +2 -0
- data/docs/LLMModelPricingInput.md +0 -2
- data/docs/LLMModelPricingOutput.md +0 -2
- data/docs/ModelResponseModelSpec.md +2 -0
- data/docs/ModelResponseModelSpecConstraints.md +13 -1
- data/docs/ModelsApi.md +2 -2
- data/docs/QueueVideo200Response.md +20 -0
- data/docs/QueueVideoRequest.md +32 -0
- data/docs/QuoteVideo200Response.md +18 -0
- data/docs/RetrieveVideo200Response.md +22 -0
- data/docs/RetrieveVideoRequest.md +22 -0
- data/docs/SimpleGenerateImageRequest.md +1 -1
- data/docs/Text.md +2 -0
- data/docs/VideoApi.md +295 -0
- data/docs/VideoModelConstraints.md +28 -0
- data/lib/venice_client/api/api_keys_api.rb +1 -1
- data/lib/venice_client/api/audio_api.rb +1 -1
- data/lib/venice_client/api/billing_api.rb +1 -1
- data/lib/venice_client/api/characters_api.rb +1 -1
- data/lib/venice_client/api/chat_api.rb +1 -1
- data/lib/venice_client/api/embeddings_api.rb +1 -1
- data/lib/venice_client/api/image_api.rb +1 -1
- data/lib/venice_client/api/models_api.rb +3 -3
- data/lib/venice_client/api/preview_api.rb +1 -1
- data/lib/venice_client/api/speech_api.rb +1 -1
- data/lib/venice_client/api/video_api.rb +278 -0
- data/lib/venice_client/api_client.rb +1 -1
- data/lib/venice_client/api_error.rb +1 -1
- data/lib/venice_client/configuration.rb +1 -1
- data/lib/venice_client/models/assistant_message.rb +8 -8
- data/lib/venice_client/models/assistant_message_content.rb +1 -1
- data/lib/venice_client/models/audio_model_pricing.rb +1 -1
- data/lib/venice_client/models/audio_model_pricing_input.rb +2 -29
- data/lib/venice_client/models/billing_usage_request.rb +1 -1
- data/lib/venice_client/models/billing_usage_response.rb +1 -1
- data/lib/venice_client/models/cache_control.rb +273 -0
- data/lib/venice_client/models/chat_completion_request.rb +65 -2
- data/lib/venice_client/models/chat_completion_request_messages_inner.rb +2 -2
- data/lib/venice_client/models/chat_completion_request_reasoning.rb +256 -0
- data/lib/venice_client/models/chat_completion_request_response_format.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_stop.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_stream_options.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_tool_choice.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_tool_choice_any_of.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_tool_choice_any_of_function.rb +1 -1
- data/lib/venice_client/models/chat_completion_request_venice_parameters.rb +15 -3
- data/lib/venice_client/models/complete_video200_response.rb +238 -0
- data/lib/venice_client/models/complete_video_request.rb +265 -0
- data/lib/venice_client/models/create_api_key200_response.rb +1 -1
- data/lib/venice_client/models/create_api_key200_response_data.rb +1 -1
- data/lib/venice_client/models/create_api_key_request.rb +1 -1
- data/lib/venice_client/models/create_api_key_request_expires_at.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response.rb +11 -19
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner.rb +7 -7
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner_logprobs.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner_logprobs_top_logprobs_inner.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_choices_inner_message.rb +2 -2
- data/lib/venice_client/models/create_chat_completion200_response_usage.rb +1 -1
- data/lib/venice_client/models/create_chat_completion200_response_venice_parameters.rb +29 -2
- data/lib/venice_client/models/create_chat_completion200_response_venice_parameters_web_search_citations_inner.rb +1 -1
- data/lib/venice_client/models/create_embedding200_response.rb +1 -1
- data/lib/venice_client/models/create_embedding200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/create_embedding200_response_usage.rb +1 -1
- data/lib/venice_client/models/create_embedding_request_schema.rb +1 -1
- data/lib/venice_client/models/create_embedding_request_schema_input.rb +1 -1
- data/lib/venice_client/models/create_embedding_request_schema_model.rb +1 -1
- data/lib/venice_client/models/create_speech_request_schema.rb +1 -1
- data/lib/venice_client/models/delete_api_key200_response.rb +1 -1
- data/lib/venice_client/models/detailed_error.rb +1 -1
- data/lib/venice_client/models/edit_image_request.rb +1 -1
- data/lib/venice_client/models/edit_image_request_image.rb +1 -1
- data/lib/venice_client/models/generate_image200_response.rb +1 -1
- data/lib/venice_client/models/generate_image200_response_timing.rb +1 -1
- data/lib/venice_client/models/generate_image_request.rb +44 -42
- data/lib/venice_client/models/get_api_key_by_id200_response.rb +1 -1
- data/lib/venice_client/models/get_api_key_by_id200_response_data.rb +1 -1
- data/lib/venice_client/models/get_api_key_generate_web3_key200_response.rb +1 -1
- data/lib/venice_client/models/get_api_key_generate_web3_key200_response_data.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limit_logs200_response.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limit_logs200_response_data_inner.rb +2 -2
- data/lib/venice_client/models/get_api_key_rate_limits200_response.rb +2 -12
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_api_tier.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_balances.rb +2 -12
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_rate_limits_inner.rb +1 -1
- data/lib/venice_client/models/get_api_key_rate_limits200_response_data_rate_limits_inner_rate_limits_inner.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner_consumption_limits.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner_usage.rb +1 -1
- data/lib/venice_client/models/get_api_keys200_response_data_inner_usage_trailing_seven_days.rb +1 -1
- data/lib/venice_client/models/get_billing_usage200_response.rb +1 -1
- data/lib/venice_client/models/get_billing_usage200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/get_billing_usage200_response_data_inner_inference_details.rb +1 -1
- data/lib/venice_client/models/get_billing_usage200_response_pagination.rb +1 -1
- data/lib/venice_client/models/get_character_by_slug200_response.rb +1 -1
- data/lib/venice_client/models/image_model_constraints.rb +1 -1
- data/lib/venice_client/models/image_model_constraints_steps.rb +1 -1
- data/lib/venice_client/models/image_model_pricing.rb +1 -1
- data/lib/venice_client/models/image_model_pricing_generation.rb +2 -29
- data/lib/venice_client/models/image_model_pricing_upscale.rb +1 -1
- data/lib/venice_client/models/image_model_pricing_upscale2x.rb +2 -29
- data/lib/venice_client/models/image_model_pricing_upscale4x.rb +2 -29
- data/lib/venice_client/models/image_styles_get200_response.rb +1 -1
- data/lib/venice_client/models/image_url.rb +12 -3
- data/lib/venice_client/models/image_url_object.rb +1 -1
- data/lib/venice_client/models/json_object.rb +1 -1
- data/lib/venice_client/models/json_schema.rb +1 -1
- data/lib/venice_client/models/list_characters200_response.rb +1 -1
- data/lib/venice_client/models/list_characters200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/list_characters200_response_data_inner_stats.rb +1 -1
- data/lib/venice_client/models/list_model_compatibility_mapping200_response.rb +1 -1
- data/lib/venice_client/models/list_model_traits200_response.rb +1 -1
- data/lib/venice_client/models/list_models200_response.rb +1 -1
- data/lib/venice_client/models/list_models200_response_type.rb +1 -1
- data/lib/venice_client/models/list_models_type_parameter.rb +1 -1
- data/lib/venice_client/models/llm_model_pricing.rb +1 -1
- data/lib/venice_client/models/llm_model_pricing_input.rb +2 -29
- data/lib/venice_client/models/llm_model_pricing_output.rb +2 -29
- data/lib/venice_client/models/model_response.rb +3 -3
- data/lib/venice_client/models/model_response_model_spec.rb +46 -2
- data/lib/venice_client/models/model_response_model_spec_capabilities.rb +3 -3
- data/lib/venice_client/models/model_response_model_spec_constraints.rb +3 -2
- data/lib/venice_client/models/model_response_model_spec_pricing.rb +1 -1
- data/lib/venice_client/models/objects_inner.rb +1 -1
- data/lib/venice_client/models/post_api_key_generate_web3_key_request.rb +1 -1
- data/lib/venice_client/models/queue_video200_response.rb +265 -0
- data/lib/venice_client/models/queue_video_request.rb +438 -0
- data/lib/venice_client/models/quote_video200_response.rb +237 -0
- data/lib/venice_client/models/retrieve_video200_response.rb +316 -0
- data/lib/venice_client/models/retrieve_video_request.rb +277 -0
- data/lib/venice_client/models/simple_generate_image200_response.rb +1 -1
- data/lib/venice_client/models/simple_generate_image200_response_data_inner.rb +1 -1
- data/lib/venice_client/models/simple_generate_image200_response_data_inner_any_of.rb +1 -1
- data/lib/venice_client/models/simple_generate_image200_response_data_inner_any_of1.rb +1 -1
- data/lib/venice_client/models/simple_generate_image_request.rb +1 -1
- data/lib/venice_client/models/standard_error.rb +1 -1
- data/lib/venice_client/models/system_message.rb +8 -8
- data/lib/venice_client/models/system_message_content.rb +1 -1
- data/lib/venice_client/models/text.rb +12 -3
- data/lib/venice_client/models/text_model_constraints.rb +1 -1
- data/lib/venice_client/models/text_model_constraints_temperature.rb +1 -1
- data/lib/venice_client/models/text_model_constraints_top_p.rb +1 -1
- data/lib/venice_client/models/tool_call.rb +1 -1
- data/lib/venice_client/models/tool_call_function.rb +1 -1
- data/lib/venice_client/models/tool_message.rb +8 -8
- data/lib/venice_client/models/upscale_image_request.rb +1 -1
- data/lib/venice_client/models/upscale_image_request_enhance.rb +1 -1
- data/lib/venice_client/models/user_message.rb +8 -8
- data/lib/venice_client/models/user_message_content.rb +1 -1
- data/lib/venice_client/models/video_model_constraints.rb +404 -0
- data/lib/venice_client/version.rb +2 -2
- data/lib/venice_client.rb +12 -1
- data/spec/api/video_api_spec.rb +83 -0
- data/spec/models/cache_control_spec.rb +46 -0
- data/spec/models/chat_completion_request_reasoning_spec.rb +40 -0
- data/spec/models/complete_video200_response_spec.rb +36 -0
- data/spec/models/complete_video_request_spec.rb +42 -0
- data/spec/models/queue_video200_response_spec.rb +42 -0
- data/spec/models/queue_video_request_spec.rb +86 -0
- data/spec/models/quote_video200_response_spec.rb +36 -0
- data/spec/models/retrieve_video200_response_spec.rb +52 -0
- data/spec/models/retrieve_video_request_spec.rb +48 -0
- data/spec/models/video_model_constraints_spec.rb +70 -0
- data/spec/spec_helper.rb +1 -1
- data/swagger.yaml +587 -76
- data/venice_client.gemspec +1 -1
- metadata +46 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Venice.ai API.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
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
|
|
@@ -14,8 +14,10 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VeniceClient
|
|
17
|
-
#
|
|
17
|
+
# Image URL message type. Supports optional cache_control for prompt caching on supported providers.
|
|
18
18
|
class ImageUrl
|
|
19
|
+
attr_accessor :cache_control
|
|
20
|
+
|
|
19
21
|
attr_accessor :image_url
|
|
20
22
|
|
|
21
23
|
attr_accessor :type
|
|
@@ -45,6 +47,7 @@ module VeniceClient
|
|
|
45
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
48
|
def self.attribute_map
|
|
47
49
|
{
|
|
50
|
+
:'cache_control' => :'cache_control',
|
|
48
51
|
:'image_url' => :'image_url',
|
|
49
52
|
:'type' => :'type'
|
|
50
53
|
}
|
|
@@ -63,6 +66,7 @@ module VeniceClient
|
|
|
63
66
|
# Attribute type mapping.
|
|
64
67
|
def self.openapi_types
|
|
65
68
|
{
|
|
69
|
+
:'cache_control' => :'CacheControl',
|
|
66
70
|
:'image_url' => :'ImageURLObject',
|
|
67
71
|
:'type' => :'String'
|
|
68
72
|
}
|
|
@@ -90,6 +94,10 @@ module VeniceClient
|
|
|
90
94
|
h[k.to_sym] = v
|
|
91
95
|
}
|
|
92
96
|
|
|
97
|
+
if attributes.key?(:'cache_control')
|
|
98
|
+
self.cache_control = attributes[:'cache_control']
|
|
99
|
+
end
|
|
100
|
+
|
|
93
101
|
if attributes.key?(:'image_url')
|
|
94
102
|
self.image_url = attributes[:'image_url']
|
|
95
103
|
else
|
|
@@ -155,6 +163,7 @@ module VeniceClient
|
|
|
155
163
|
def ==(o)
|
|
156
164
|
return true if self.equal?(o)
|
|
157
165
|
self.class == o.class &&
|
|
166
|
+
cache_control == o.cache_control &&
|
|
158
167
|
image_url == o.image_url &&
|
|
159
168
|
type == o.type
|
|
160
169
|
end
|
|
@@ -168,7 +177,7 @@ module VeniceClient
|
|
|
168
177
|
# Calculates hash code according to all attributes.
|
|
169
178
|
# @return [Integer] Hash code
|
|
170
179
|
def hash
|
|
171
|
-
[image_url, type].hash
|
|
180
|
+
[cache_control, image_url, type].hash
|
|
172
181
|
end
|
|
173
182
|
|
|
174
183
|
# 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:
|
|
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
|
|
@@ -18,9 +18,6 @@ module VeniceClient
|
|
|
18
18
|
# USD cost per million input tokens
|
|
19
19
|
attr_accessor :usd
|
|
20
20
|
|
|
21
|
-
# VCU cost per million input tokens (deprecated - use Diem instead)
|
|
22
|
-
attr_accessor :vcu
|
|
23
|
-
|
|
24
21
|
# Diem cost per million input tokens
|
|
25
22
|
attr_accessor :diem
|
|
26
23
|
|
|
@@ -28,7 +25,6 @@ module VeniceClient
|
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
27
|
:'usd' => :'usd',
|
|
31
|
-
:'vcu' => :'vcu',
|
|
32
28
|
:'diem' => :'diem'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
@@ -47,7 +43,6 @@ module VeniceClient
|
|
|
47
43
|
def self.openapi_types
|
|
48
44
|
{
|
|
49
45
|
:'usd' => :'Float',
|
|
50
|
-
:'vcu' => :'Float',
|
|
51
46
|
:'diem' => :'Float'
|
|
52
47
|
}
|
|
53
48
|
end
|
|
@@ -80,12 +75,6 @@ module VeniceClient
|
|
|
80
75
|
self.usd = nil
|
|
81
76
|
end
|
|
82
77
|
|
|
83
|
-
if attributes.key?(:'vcu')
|
|
84
|
-
self.vcu = attributes[:'vcu']
|
|
85
|
-
else
|
|
86
|
-
self.vcu = nil
|
|
87
|
-
end
|
|
88
|
-
|
|
89
78
|
if attributes.key?(:'diem')
|
|
90
79
|
self.diem = attributes[:'diem']
|
|
91
80
|
else
|
|
@@ -102,10 +91,6 @@ module VeniceClient
|
|
|
102
91
|
invalid_properties.push('invalid value for "usd", usd cannot be nil.')
|
|
103
92
|
end
|
|
104
93
|
|
|
105
|
-
if @vcu.nil?
|
|
106
|
-
invalid_properties.push('invalid value for "vcu", vcu cannot be nil.')
|
|
107
|
-
end
|
|
108
|
-
|
|
109
94
|
if @diem.nil?
|
|
110
95
|
invalid_properties.push('invalid value for "diem", diem cannot be nil.')
|
|
111
96
|
end
|
|
@@ -118,7 +103,6 @@ module VeniceClient
|
|
|
118
103
|
def valid?
|
|
119
104
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
105
|
return false if @usd.nil?
|
|
121
|
-
return false if @vcu.nil?
|
|
122
106
|
return false if @diem.nil?
|
|
123
107
|
true
|
|
124
108
|
end
|
|
@@ -133,16 +117,6 @@ module VeniceClient
|
|
|
133
117
|
@usd = usd
|
|
134
118
|
end
|
|
135
119
|
|
|
136
|
-
# Custom attribute writer method with validation
|
|
137
|
-
# @param [Object] vcu Value to be assigned
|
|
138
|
-
def vcu=(vcu)
|
|
139
|
-
if vcu.nil?
|
|
140
|
-
fail ArgumentError, 'vcu cannot be nil'
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
@vcu = vcu
|
|
144
|
-
end
|
|
145
|
-
|
|
146
120
|
# Custom attribute writer method with validation
|
|
147
121
|
# @param [Object] diem Value to be assigned
|
|
148
122
|
def diem=(diem)
|
|
@@ -159,7 +133,6 @@ module VeniceClient
|
|
|
159
133
|
return true if self.equal?(o)
|
|
160
134
|
self.class == o.class &&
|
|
161
135
|
usd == o.usd &&
|
|
162
|
-
vcu == o.vcu &&
|
|
163
136
|
diem == o.diem
|
|
164
137
|
end
|
|
165
138
|
|
|
@@ -172,7 +145,7 @@ module VeniceClient
|
|
|
172
145
|
# Calculates hash code according to all attributes.
|
|
173
146
|
# @return [Integer] Hash code
|
|
174
147
|
def hash
|
|
175
|
-
[usd,
|
|
148
|
+
[usd, diem].hash
|
|
176
149
|
end
|
|
177
150
|
|
|
178
151
|
# 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:
|
|
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
|
|
@@ -18,9 +18,6 @@ module VeniceClient
|
|
|
18
18
|
# USD cost per million output tokens
|
|
19
19
|
attr_accessor :usd
|
|
20
20
|
|
|
21
|
-
# VCU cost per million output tokens (deprecated - use Diem instead)
|
|
22
|
-
attr_accessor :vcu
|
|
23
|
-
|
|
24
21
|
# Diem cost per million output tokens
|
|
25
22
|
attr_accessor :diem
|
|
26
23
|
|
|
@@ -28,7 +25,6 @@ module VeniceClient
|
|
|
28
25
|
def self.attribute_map
|
|
29
26
|
{
|
|
30
27
|
:'usd' => :'usd',
|
|
31
|
-
:'vcu' => :'vcu',
|
|
32
28
|
:'diem' => :'diem'
|
|
33
29
|
}
|
|
34
30
|
end
|
|
@@ -47,7 +43,6 @@ module VeniceClient
|
|
|
47
43
|
def self.openapi_types
|
|
48
44
|
{
|
|
49
45
|
:'usd' => :'Float',
|
|
50
|
-
:'vcu' => :'Float',
|
|
51
46
|
:'diem' => :'Float'
|
|
52
47
|
}
|
|
53
48
|
end
|
|
@@ -80,12 +75,6 @@ module VeniceClient
|
|
|
80
75
|
self.usd = nil
|
|
81
76
|
end
|
|
82
77
|
|
|
83
|
-
if attributes.key?(:'vcu')
|
|
84
|
-
self.vcu = attributes[:'vcu']
|
|
85
|
-
else
|
|
86
|
-
self.vcu = nil
|
|
87
|
-
end
|
|
88
|
-
|
|
89
78
|
if attributes.key?(:'diem')
|
|
90
79
|
self.diem = attributes[:'diem']
|
|
91
80
|
else
|
|
@@ -102,10 +91,6 @@ module VeniceClient
|
|
|
102
91
|
invalid_properties.push('invalid value for "usd", usd cannot be nil.')
|
|
103
92
|
end
|
|
104
93
|
|
|
105
|
-
if @vcu.nil?
|
|
106
|
-
invalid_properties.push('invalid value for "vcu", vcu cannot be nil.')
|
|
107
|
-
end
|
|
108
|
-
|
|
109
94
|
if @diem.nil?
|
|
110
95
|
invalid_properties.push('invalid value for "diem", diem cannot be nil.')
|
|
111
96
|
end
|
|
@@ -118,7 +103,6 @@ module VeniceClient
|
|
|
118
103
|
def valid?
|
|
119
104
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
105
|
return false if @usd.nil?
|
|
121
|
-
return false if @vcu.nil?
|
|
122
106
|
return false if @diem.nil?
|
|
123
107
|
true
|
|
124
108
|
end
|
|
@@ -133,16 +117,6 @@ module VeniceClient
|
|
|
133
117
|
@usd = usd
|
|
134
118
|
end
|
|
135
119
|
|
|
136
|
-
# Custom attribute writer method with validation
|
|
137
|
-
# @param [Object] vcu Value to be assigned
|
|
138
|
-
def vcu=(vcu)
|
|
139
|
-
if vcu.nil?
|
|
140
|
-
fail ArgumentError, 'vcu cannot be nil'
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
@vcu = vcu
|
|
144
|
-
end
|
|
145
|
-
|
|
146
120
|
# Custom attribute writer method with validation
|
|
147
121
|
# @param [Object] diem Value to be assigned
|
|
148
122
|
def diem=(diem)
|
|
@@ -159,7 +133,6 @@ module VeniceClient
|
|
|
159
133
|
return true if self.equal?(o)
|
|
160
134
|
self.class == o.class &&
|
|
161
135
|
usd == o.usd &&
|
|
162
|
-
vcu == o.vcu &&
|
|
163
136
|
diem == o.diem
|
|
164
137
|
end
|
|
165
138
|
|
|
@@ -172,7 +145,7 @@ module VeniceClient
|
|
|
172
145
|
# Calculates hash code according to all attributes.
|
|
173
146
|
# @return [Integer] Hash code
|
|
174
147
|
def hash
|
|
175
|
-
[usd,
|
|
148
|
+
[usd, diem].hash
|
|
176
149
|
end
|
|
177
150
|
|
|
178
151
|
# 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:
|
|
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
|
|
@@ -187,7 +187,7 @@ module VeniceClient
|
|
|
187
187
|
owned_by_validator = EnumAttributeValidator.new('String', ["venice.ai"])
|
|
188
188
|
return false unless owned_by_validator.valid?(@owned_by)
|
|
189
189
|
return false if @type.nil?
|
|
190
|
-
type_validator = EnumAttributeValidator.new('String', ["embedding", "image", "text", "tts", "upscale", "inpaint"])
|
|
190
|
+
type_validator = EnumAttributeValidator.new('String', ["asr", "embedding", "image", "text", "tts", "upscale", "inpaint", "video"])
|
|
191
191
|
return false unless type_validator.valid?(@type)
|
|
192
192
|
true
|
|
193
193
|
end
|
|
@@ -235,7 +235,7 @@ module VeniceClient
|
|
|
235
235
|
# Custom attribute writer method checking allowed values (enum).
|
|
236
236
|
# @param [Object] type Object to be assigned
|
|
237
237
|
def type=(type)
|
|
238
|
-
validator = EnumAttributeValidator.new('String', ["embedding", "image", "text", "tts", "upscale", "inpaint"])
|
|
238
|
+
validator = EnumAttributeValidator.new('String', ["asr", "embedding", "image", "text", "tts", "upscale", "inpaint", "video"])
|
|
239
239
|
unless validator.valid?(type)
|
|
240
240
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
241
241
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Venice.ai API.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
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
|
|
@@ -21,6 +21,9 @@ module VeniceClient
|
|
|
21
21
|
# Is this model in beta?
|
|
22
22
|
attr_accessor :beta
|
|
23
23
|
|
|
24
|
+
# The privacy mode of the model. Private models have zero data retention. Anonymized models Venice can not guarantee privacy on, but requests are not affiliated with a user
|
|
25
|
+
attr_accessor :privacy
|
|
26
|
+
|
|
24
27
|
attr_accessor :capabilities
|
|
25
28
|
|
|
26
29
|
attr_accessor :constraints
|
|
@@ -42,11 +45,34 @@ module VeniceClient
|
|
|
42
45
|
# The voices available for this TTS model. Only applicable for TTS models.
|
|
43
46
|
attr_accessor :voices
|
|
44
47
|
|
|
48
|
+
class EnumAttributeValidator
|
|
49
|
+
attr_reader :datatype
|
|
50
|
+
attr_reader :allowable_values
|
|
51
|
+
|
|
52
|
+
def initialize(datatype, allowable_values)
|
|
53
|
+
@allowable_values = allowable_values.map do |value|
|
|
54
|
+
case datatype.to_s
|
|
55
|
+
when /Integer/i
|
|
56
|
+
value.to_i
|
|
57
|
+
when /Float/i
|
|
58
|
+
value.to_f
|
|
59
|
+
else
|
|
60
|
+
value
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def valid?(value)
|
|
66
|
+
!value || allowable_values.include?(value)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
45
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
71
|
def self.attribute_map
|
|
47
72
|
{
|
|
48
73
|
:'available_context_tokens' => :'availableContextTokens',
|
|
49
74
|
:'beta' => :'beta',
|
|
75
|
+
:'privacy' => :'privacy',
|
|
50
76
|
:'capabilities' => :'capabilities',
|
|
51
77
|
:'constraints' => :'constraints',
|
|
52
78
|
:'name' => :'name',
|
|
@@ -73,6 +99,7 @@ module VeniceClient
|
|
|
73
99
|
{
|
|
74
100
|
:'available_context_tokens' => :'Float',
|
|
75
101
|
:'beta' => :'Boolean',
|
|
102
|
+
:'privacy' => :'String',
|
|
76
103
|
:'capabilities' => :'ModelResponseModelSpecCapabilities',
|
|
77
104
|
:'constraints' => :'ModelResponseModelSpecConstraints',
|
|
78
105
|
:'name' => :'String',
|
|
@@ -114,6 +141,10 @@ module VeniceClient
|
|
|
114
141
|
self.beta = attributes[:'beta']
|
|
115
142
|
end
|
|
116
143
|
|
|
144
|
+
if attributes.key?(:'privacy')
|
|
145
|
+
self.privacy = attributes[:'privacy']
|
|
146
|
+
end
|
|
147
|
+
|
|
117
148
|
if attributes.key?(:'capabilities')
|
|
118
149
|
self.capabilities = attributes[:'capabilities']
|
|
119
150
|
end
|
|
@@ -165,9 +196,21 @@ module VeniceClient
|
|
|
165
196
|
# @return true if the model is valid
|
|
166
197
|
def valid?
|
|
167
198
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
199
|
+
privacy_validator = EnumAttributeValidator.new('String', ["private", "anonymized"])
|
|
200
|
+
return false unless privacy_validator.valid?(@privacy)
|
|
168
201
|
true
|
|
169
202
|
end
|
|
170
203
|
|
|
204
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
205
|
+
# @param [Object] privacy Object to be assigned
|
|
206
|
+
def privacy=(privacy)
|
|
207
|
+
validator = EnumAttributeValidator.new('String', ["private", "anonymized"])
|
|
208
|
+
unless validator.valid?(privacy)
|
|
209
|
+
fail ArgumentError, "invalid value for \"privacy\", must be one of #{validator.allowable_values}."
|
|
210
|
+
end
|
|
211
|
+
@privacy = privacy
|
|
212
|
+
end
|
|
213
|
+
|
|
171
214
|
# Checks equality by comparing each attribute.
|
|
172
215
|
# @param [Object] Object to be compared
|
|
173
216
|
def ==(o)
|
|
@@ -175,6 +218,7 @@ module VeniceClient
|
|
|
175
218
|
self.class == o.class &&
|
|
176
219
|
available_context_tokens == o.available_context_tokens &&
|
|
177
220
|
beta == o.beta &&
|
|
221
|
+
privacy == o.privacy &&
|
|
178
222
|
capabilities == o.capabilities &&
|
|
179
223
|
constraints == o.constraints &&
|
|
180
224
|
name == o.name &&
|
|
@@ -194,7 +238,7 @@ module VeniceClient
|
|
|
194
238
|
# Calculates hash code according to all attributes.
|
|
195
239
|
# @return [Integer] Hash code
|
|
196
240
|
def hash
|
|
197
|
-
[available_context_tokens, beta, capabilities, constraints, name, model_source, offline, pricing, traits, voices].hash
|
|
241
|
+
[available_context_tokens, beta, privacy, capabilities, constraints, name, model_source, offline, pricing, traits, voices].hash
|
|
198
242
|
end
|
|
199
243
|
|
|
200
244
|
# 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:
|
|
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
|
|
@@ -217,7 +217,7 @@ module VeniceClient
|
|
|
217
217
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
218
218
|
return false if @optimized_for_code.nil?
|
|
219
219
|
return false if @quantization.nil?
|
|
220
|
-
quantization_validator = EnumAttributeValidator.new('String', ["fp8", "fp16", "bf16", "not-available"])
|
|
220
|
+
quantization_validator = EnumAttributeValidator.new('String', ["fp4", "fp8", "fp16", "bf16", "int8", "int4", "not-available"])
|
|
221
221
|
return false unless quantization_validator.valid?(@quantization)
|
|
222
222
|
return false if @supports_function_calling.nil?
|
|
223
223
|
return false if @supports_reasoning.nil?
|
|
@@ -241,7 +241,7 @@ module VeniceClient
|
|
|
241
241
|
# Custom attribute writer method checking allowed values (enum).
|
|
242
242
|
# @param [Object] quantization Object to be assigned
|
|
243
243
|
def quantization=(quantization)
|
|
244
|
-
validator = EnumAttributeValidator.new('String', ["fp8", "fp16", "bf16", "not-available"])
|
|
244
|
+
validator = EnumAttributeValidator.new('String', ["fp4", "fp8", "fp16", "bf16", "int8", "int4", "not-available"])
|
|
245
245
|
unless validator.valid?(quantization)
|
|
246
246
|
fail ArgumentError, "invalid value for \"quantization\", must be one of #{validator.allowable_values}."
|
|
247
247
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The Venice.ai API.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
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
|
|
@@ -21,7 +21,8 @@ module VeniceClient
|
|
|
21
21
|
def openapi_any_of
|
|
22
22
|
[
|
|
23
23
|
:'ImageModelConstraints',
|
|
24
|
-
:'TextModelConstraints'
|
|
24
|
+
:'TextModelConstraints',
|
|
25
|
+
:'VideoModelConstraints'
|
|
25
26
|
]
|
|
26
27
|
end
|
|
27
28
|
|