venice_client 1.0.0
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +510 -0
- data/Rakefile +8 -0
- data/docs/APIKeysApi.md +334 -0
- data/docs/AnyOfChatCompletionRequestMessagesItems.md +6 -0
- data/docs/AnyOfChatCompletionRequestStop.md +6 -0
- data/docs/AnyOfChatCompletionRequestToolChoice.md +6 -0
- data/docs/AnyOfCreateEmbeddingRequestSchemaInput.md +6 -0
- data/docs/AnyOfCreateEmbeddingRequestSchemaModel.md +6 -0
- data/docs/AnyOfModelResponseModelSpecConstraints.md +6 -0
- data/docs/AnyOfModelResponseModelSpecPricing.md +6 -0
- data/docs/AnyOfUpscaleImageRequestEnhance.md +6 -0
- data/docs/AnyOfUpscaleImageRequestImage.md +6 -0
- data/docs/AnyOfapiKeysBodyExpiresAt.md +6 -0
- data/docs/AnyOfapiKeysConsumptionLimitUsd.md +6 -0
- data/docs/AnyOfapiKeysConsumptionLimitVcu.md +6 -0
- data/docs/AnyOfapiKeysGenerateWeb3KeyBodyExpiresAt.md +6 -0
- data/docs/AnyOfinlineResponse2002DataItems.md +6 -0
- data/docs/AnyOfinlineResponse2004Type.md +6 -0
- data/docs/AnyOfinlineResponse2005Type.md +6 -0
- data/docs/AnyOfinlineResponse2006Type.md +6 -0
- data/docs/AnyOfinlineResponse200ChoicesMessage.md +6 -0
- data/docs/AnyOfinlineResponse200PromptLogprobs.md +6 -0
- data/docs/ApiKeysBody.md +10 -0
- data/docs/ApiKeysConsumptionLimit.md +8 -0
- data/docs/ApiKeysGenerateWeb3KeyBody.md +13 -0
- data/docs/AudioApi.md +58 -0
- data/docs/BillingApi.md +70 -0
- data/docs/BillingUsageRequest.md +12 -0
- data/docs/BillingUsageResponse.md +8 -0
- data/docs/BillingUsageResponseData.md +14 -0
- data/docs/BillingUsageResponseInferenceDetails.md +10 -0
- data/docs/BillingUsageResponsePagination.md +10 -0
- data/docs/CharactersApi.md +52 -0
- data/docs/ChatApi.md +60 -0
- data/docs/ChatCompletionRequest.md +32 -0
- data/docs/ChatCompletionRequestFunction.md +9 -0
- data/docs/ChatCompletionRequestStreamOptions.md +7 -0
- data/docs/ChatCompletionRequestVeniceParameters.md +12 -0
- data/docs/CreateEmbeddingRequestSchema.md +11 -0
- data/docs/CreateSpeechRequestSchema.md +12 -0
- data/docs/EmbeddingsApi.md +60 -0
- data/docs/GenerateImageRequest.md +22 -0
- data/docs/ImageApi.md +270 -0
- data/docs/InlineResponse200.md +14 -0
- data/docs/InlineResponse2001.md +10 -0
- data/docs/InlineResponse20010.md +7 -0
- data/docs/InlineResponse20010Data.md +12 -0
- data/docs/InlineResponse20010DataApiTier.md +8 -0
- data/docs/InlineResponse20010DataBalances.md +8 -0
- data/docs/InlineResponse20010DataRateLimits.md +8 -0
- data/docs/InlineResponse20010DataRateLimits1.md +8 -0
- data/docs/InlineResponse20011.md +8 -0
- data/docs/InlineResponse20011Data.md +11 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse20012Data.md +7 -0
- data/docs/InlineResponse20013.md +8 -0
- data/docs/InlineResponse20013Data.md +16 -0
- data/docs/InlineResponse20013Stats.md +7 -0
- data/docs/InlineResponse20014.md +10 -0
- data/docs/InlineResponse20014Data.md +9 -0
- data/docs/InlineResponse20014Usage.md +8 -0
- data/docs/InlineResponse20015.md +8 -0
- data/docs/InlineResponse2001Timing.md +10 -0
- data/docs/InlineResponse2002.md +8 -0
- data/docs/InlineResponse2003.md +8 -0
- data/docs/InlineResponse2004.md +9 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +9 -0
- data/docs/InlineResponse2007.md +8 -0
- data/docs/InlineResponse2007Data.md +15 -0
- data/docs/InlineResponse2007Usage.md +7 -0
- data/docs/InlineResponse2007UsageTrailingSevenDays.md +8 -0
- data/docs/InlineResponse2008.md +8 -0
- data/docs/InlineResponse2008Data.md +12 -0
- data/docs/InlineResponse2009.md +7 -0
- data/docs/InlineResponse200Choices.md +11 -0
- data/docs/InlineResponse200Logprobs.md +10 -0
- data/docs/InlineResponse200LogprobsTopLogprobs.md +9 -0
- data/docs/InlineResponse200Usage.md +10 -0
- data/docs/InlineResponse200VeniceParameters.md +13 -0
- data/docs/InlineResponse200VeniceParametersWebSearchCitations.md +10 -0
- data/docs/InlineResponse400.md +8 -0
- data/docs/InlineResponse401.md +7 -0
- data/docs/InlineResponse402.md +7 -0
- data/docs/InlineResponse403.md +7 -0
- data/docs/InlineResponse415.md +7 -0
- data/docs/InlineResponse429.md +7 -0
- data/docs/InlineResponse500.md +7 -0
- data/docs/InlineResponse5001.md +7 -0
- data/docs/InlineResponse503.md +7 -0
- data/docs/ModelCompatibilitySchema.md +6 -0
- data/docs/ModelResponse.md +12 -0
- data/docs/ModelResponseModelSpec.md +15 -0
- data/docs/ModelResponseModelSpecCapabilities.md +14 -0
- data/docs/ModelTraitSchema.md +6 -0
- data/docs/ModelsApi.md +160 -0
- data/docs/OneOfChatCompletionRequestResponseFormat.md +6 -0
- data/docs/PreviewApi.md +52 -0
- data/docs/SimpleGenerateImageRequest.md +18 -0
- data/docs/SpeechApi.md +58 -0
- data/docs/ToolCall.md +9 -0
- data/docs/Type.md +6 -0
- data/docs/UpscaleImageRequest.md +12 -0
- data/git_push.sh +55 -0
- data/lib/venice_client/api/api_keys_api.rb +381 -0
- data/lib/venice_client/api/audio_api.rb +74 -0
- data/lib/venice_client/api/billing_api.rb +97 -0
- data/lib/venice_client/api/characters_api.rb +70 -0
- data/lib/venice_client/api/chat_api.rb +77 -0
- data/lib/venice_client/api/embeddings_api.rb +81 -0
- data/lib/venice_client/api/image_api.rb +314 -0
- data/lib/venice_client/api/models_api.rb +185 -0
- data/lib/venice_client/api/preview_api.rb +70 -0
- data/lib/venice_client/api/speech_api.rb +74 -0
- data/lib/venice_client/api_client.rb +388 -0
- data/lib/venice_client/api_error.rb +56 -0
- data/lib/venice_client/configuration.rb +204 -0
- data/lib/venice_client/models/any_of_chat_completion_request_messages_items.rb +197 -0
- data/lib/venice_client/models/any_of_chat_completion_request_stop.rb +197 -0
- data/lib/venice_client/models/any_of_chat_completion_request_tool_choice.rb +197 -0
- data/lib/venice_client/models/any_of_create_embedding_request_schema_input.rb +197 -0
- data/lib/venice_client/models/any_of_create_embedding_request_schema_model.rb +197 -0
- data/lib/venice_client/models/any_of_model_response_model_spec_constraints.rb +197 -0
- data/lib/venice_client/models/any_of_model_response_model_spec_pricing.rb +197 -0
- data/lib/venice_client/models/any_of_upscale_image_request_enhance.rb +197 -0
- data/lib/venice_client/models/any_of_upscale_image_request_image.rb +197 -0
- data/lib/venice_client/models/any_ofapi_keys_body_expires_at.rb +197 -0
- data/lib/venice_client/models/any_ofapi_keys_consumption_limit_usd.rb +197 -0
- data/lib/venice_client/models/any_ofapi_keys_consumption_limit_vcu.rb +195 -0
- data/lib/venice_client/models/any_ofapi_keys_generate_web3_key_body_expires_at.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_2_data_items.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_4_type.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_5_type.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_6_type.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_choices_message.rb +197 -0
- data/lib/venice_client/models/any_ofinline_response_200_prompt_logprobs.rb +197 -0
- data/lib/venice_client/models/api_keys_body.rb +281 -0
- data/lib/venice_client/models/api_keys_consumption_limit.rb +228 -0
- data/lib/venice_client/models/api_keys_generate_web3_key_body.rb +322 -0
- data/lib/venice_client/models/billing_usage_request.rb +309 -0
- data/lib/venice_client/models/billing_usage_response.rb +228 -0
- data/lib/venice_client/models/billing_usage_response_data.rb +350 -0
- data/lib/venice_client/models/billing_usage_response_inference_details.rb +262 -0
- data/lib/venice_client/models/billing_usage_response_pagination.rb +253 -0
- data/lib/venice_client/models/chat_completion_request.rb +483 -0
- data/lib/venice_client/models/chat_completion_request_function.rb +231 -0
- data/lib/venice_client/models/chat_completion_request_stream_options.rb +207 -0
- data/lib/venice_client/models/chat_completion_request_venice_parameters.rb +302 -0
- data/lib/venice_client/models/create_embedding_request_schema.rb +294 -0
- data/lib/venice_client/models/create_speech_request_schema.rb +331 -0
- data/lib/venice_client/models/generate_image_request.rb +420 -0
- data/lib/venice_client/models/inline_response_200.rb +341 -0
- data/lib/venice_client/models/inline_response_200_1.rb +254 -0
- data/lib/venice_client/models/inline_response_200_10.rb +211 -0
- data/lib/venice_client/models/inline_response_200_10_data.rb +287 -0
- data/lib/venice_client/models/inline_response_200_10_data_api_tier.rb +227 -0
- data/lib/venice_client/models/inline_response_200_10_data_balances.rb +217 -0
- data/lib/venice_client/models/inline_response_200_10_data_rate_limits.rb +227 -0
- data/lib/venice_client/models/inline_response_200_10_data_rate_limits_1.rb +223 -0
- data/lib/venice_client/models/inline_response_200_11.rb +262 -0
- data/lib/venice_client/models/inline_response_200_11_data.rb +274 -0
- data/lib/venice_client/models/inline_response_200_12.rb +225 -0
- data/lib/venice_client/models/inline_response_200_12_data.rb +212 -0
- data/lib/venice_client/models/inline_response_200_13.rb +261 -0
- data/lib/venice_client/models/inline_response_200_13_data.rb +350 -0
- data/lib/venice_client/models/inline_response_200_13_stats.rb +212 -0
- data/lib/venice_client/models/inline_response_200_14.rb +292 -0
- data/lib/venice_client/models/inline_response_200_14_data.rb +278 -0
- data/lib/venice_client/models/inline_response_200_14_usage.rb +228 -0
- data/lib/venice_client/models/inline_response_200_15.rb +228 -0
- data/lib/venice_client/models/inline_response_200_1_timing.rb +257 -0
- data/lib/venice_client/models/inline_response_200_2.rb +228 -0
- data/lib/venice_client/models/inline_response_200_3.rb +262 -0
- data/lib/venice_client/models/inline_response_200_4.rb +277 -0
- data/lib/venice_client/models/inline_response_200_5.rb +274 -0
- data/lib/venice_client/models/inline_response_200_6.rb +274 -0
- data/lib/venice_client/models/inline_response_200_7.rb +262 -0
- data/lib/venice_client/models/inline_response_200_7_data.rb +357 -0
- data/lib/venice_client/models/inline_response_200_7_usage.rb +211 -0
- data/lib/venice_client/models/inline_response_200_7_usage_trailing_seven_days.rb +227 -0
- data/lib/venice_client/models/inline_response_200_8.rb +225 -0
- data/lib/venice_client/models/inline_response_200_8_data.rb +316 -0
- data/lib/venice_client/models/inline_response_200_9.rb +211 -0
- data/lib/venice_client/models/inline_response_200_choices.rb +312 -0
- data/lib/venice_client/models/inline_response_200_logprobs.rb +251 -0
- data/lib/venice_client/models/inline_response_200_logprobs_top_logprobs.rb +236 -0
- data/lib/venice_client/models/inline_response_200_usage.rb +253 -0
- data/lib/venice_client/models/inline_response_200_venice_parameters.rb +329 -0
- data/lib/venice_client/models/inline_response_200_venice_parameters_web_search_citations.rb +243 -0
- data/lib/venice_client/models/inline_response_400.rb +222 -0
- data/lib/venice_client/models/inline_response_401.rb +212 -0
- data/lib/venice_client/models/inline_response_402.rb +212 -0
- data/lib/venice_client/models/inline_response_403.rb +212 -0
- data/lib/venice_client/models/inline_response_415.rb +212 -0
- data/lib/venice_client/models/inline_response_429.rb +212 -0
- data/lib/venice_client/models/inline_response_500.rb +212 -0
- data/lib/venice_client/models/inline_response_500_1.rb +212 -0
- data/lib/venice_client/models/inline_response_503.rb +212 -0
- data/lib/venice_client/models/model_compatibility_schema.rb +202 -0
- data/lib/venice_client/models/model_response.rb +340 -0
- data/lib/venice_client/models/model_response_model_spec.rb +292 -0
- data/lib/venice_client/models/model_response_model_spec_capabilities.rb +352 -0
- data/lib/venice_client/models/model_trait_schema.rb +200 -0
- data/lib/venice_client/models/one_of_chat_completion_request_response_format.rb +197 -0
- data/lib/venice_client/models/simple_generate_image_request.rb +456 -0
- data/lib/venice_client/models/tool_call.rb +230 -0
- data/lib/venice_client/models/type.rb +198 -0
- data/lib/venice_client/models/upscale_image_request.rb +270 -0
- data/lib/venice_client/version.rb +14 -0
- data/lib/venice_client.rb +139 -0
- data/spec/api/api_keys_api_spec.rb +113 -0
- data/spec/api/audio_api_spec.rb +45 -0
- data/spec/api/billing_api_spec.rb +51 -0
- data/spec/api/characters_api_spec.rb +44 -0
- data/spec/api/chat_api_spec.rb +46 -0
- data/spec/api/embeddings_api_spec.rb +46 -0
- data/spec/api/image_api_spec.rb +99 -0
- data/spec/api/models_api_spec.rb +69 -0
- data/spec/api/preview_api_spec.rb +44 -0
- data/spec/api/speech_api_spec.rb +45 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/any_of_chat_completion_request_messages_items_spec.rb +34 -0
- data/spec/models/any_of_chat_completion_request_stop_spec.rb +34 -0
- data/spec/models/any_of_chat_completion_request_tool_choice_spec.rb +34 -0
- data/spec/models/any_of_create_embedding_request_schema_input_spec.rb +34 -0
- data/spec/models/any_of_create_embedding_request_schema_model_spec.rb +34 -0
- data/spec/models/any_of_model_response_model_spec_constraints_spec.rb +34 -0
- data/spec/models/any_of_model_response_model_spec_pricing_spec.rb +34 -0
- data/spec/models/any_of_upscale_image_request_enhance_spec.rb +34 -0
- data/spec/models/any_of_upscale_image_request_image_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_body_expires_at_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_consumption_limit_usd_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_consumption_limit_vcu_spec.rb +34 -0
- data/spec/models/any_ofapi_keys_generate_web3_key_body_expires_at_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_2_data_items_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_4_type_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_5_type_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_6_type_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_choices_message_spec.rb +34 -0
- data/spec/models/any_ofinline_response_200_prompt_logprobs_spec.rb +34 -0
- data/spec/models/api_keys_body_spec.rb +61 -0
- data/spec/models/api_keys_consumption_limit_spec.rb +46 -0
- data/spec/models/api_keys_generate_web3_key_body_spec.rb +80 -0
- data/spec/models/billing_usage_request_spec.rb +78 -0
- data/spec/models/billing_usage_response_data_spec.rb +86 -0
- data/spec/models/billing_usage_response_inference_details_spec.rb +57 -0
- data/spec/models/billing_usage_response_pagination_spec.rb +58 -0
- data/spec/models/billing_usage_response_spec.rb +46 -0
- data/spec/models/chat_completion_request_function_spec.rb +52 -0
- data/spec/models/chat_completion_request_spec.rb +189 -0
- data/spec/models/chat_completion_request_stream_options_spec.rb +40 -0
- data/spec/models/chat_completion_request_venice_parameters_spec.rb +73 -0
- data/spec/models/create_embedding_request_schema_spec.rb +68 -0
- data/spec/models/create_speech_request_schema_spec.rb +81 -0
- data/spec/models/generate_image_request_spec.rb +134 -0
- data/spec/models/inline_response_200_10_data_api_tier_spec.rb +45 -0
- data/spec/models/inline_response_200_10_data_balances_spec.rb +45 -0
- data/spec/models/inline_response_200_10_data_rate_limits_1_spec.rb +45 -0
- data/spec/models/inline_response_200_10_data_rate_limits_spec.rb +46 -0
- data/spec/models/inline_response_200_10_data_spec.rb +69 -0
- data/spec/models/inline_response_200_10_spec.rb +40 -0
- data/spec/models/inline_response_200_11_data_spec.rb +64 -0
- data/spec/models/inline_response_200_11_spec.rb +50 -0
- data/spec/models/inline_response_200_12_data_spec.rb +39 -0
- data/spec/models/inline_response_200_12_spec.rb +46 -0
- data/spec/models/inline_response_200_13_data_spec.rb +93 -0
- data/spec/models/inline_response_200_13_spec.rb +49 -0
- data/spec/models/inline_response_200_13_stats_spec.rb +40 -0
- data/spec/models/inline_response_200_14_data_spec.rb +55 -0
- data/spec/models/inline_response_200_14_spec.rb +61 -0
- data/spec/models/inline_response_200_14_usage_spec.rb +45 -0
- data/spec/models/inline_response_200_15_spec.rb +45 -0
- data/spec/models/inline_response_200_1_spec.rb +57 -0
- data/spec/models/inline_response_200_1_timing_spec.rb +58 -0
- data/spec/models/inline_response_200_2_spec.rb +46 -0
- data/spec/models/inline_response_200_3_spec.rb +50 -0
- data/spec/models/inline_response_200_4_spec.rb +55 -0
- data/spec/models/inline_response_200_5_spec.rb +55 -0
- data/spec/models/inline_response_200_6_spec.rb +55 -0
- data/spec/models/inline_response_200_7_data_spec.rb +91 -0
- data/spec/models/inline_response_200_7_spec.rb +50 -0
- data/spec/models/inline_response_200_7_usage_spec.rb +39 -0
- data/spec/models/inline_response_200_7_usage_trailing_seven_days_spec.rb +45 -0
- data/spec/models/inline_response_200_8_data_spec.rb +73 -0
- data/spec/models/inline_response_200_8_spec.rb +45 -0
- data/spec/models/inline_response_200_9_spec.rb +39 -0
- data/spec/models/inline_response_200_choices_spec.rb +72 -0
- data/spec/models/inline_response_200_logprobs_spec.rb +57 -0
- data/spec/models/inline_response_200_logprobs_top_logprobs_spec.rb +51 -0
- data/spec/models/inline_response_200_spec.rb +85 -0
- data/spec/models/inline_response_200_usage_spec.rb +57 -0
- data/spec/models/inline_response_200_venice_parameters_spec.rb +80 -0
- data/spec/models/inline_response_200_venice_parameters_web_search_citations_spec.rb +57 -0
- data/spec/models/inline_response_400_spec.rb +45 -0
- data/spec/models/inline_response_401_spec.rb +39 -0
- data/spec/models/inline_response_402_spec.rb +39 -0
- data/spec/models/inline_response_403_spec.rb +40 -0
- data/spec/models/inline_response_415_spec.rb +40 -0
- data/spec/models/inline_response_429_spec.rb +39 -0
- data/spec/models/inline_response_500_1_spec.rb +40 -0
- data/spec/models/inline_response_500_spec.rb +39 -0
- data/spec/models/inline_response_503_spec.rb +40 -0
- data/spec/models/model_compatibility_schema_spec.rb +34 -0
- data/spec/models/model_response_model_spec_capabilities_spec.rb +85 -0
- data/spec/models/model_response_model_spec_spec.rb +87 -0
- data/spec/models/model_response_spec.rb +81 -0
- data/spec/models/model_trait_schema_spec.rb +34 -0
- data/spec/models/one_of_chat_completion_request_response_format_spec.rb +34 -0
- data/spec/models/simple_generate_image_request_spec.rb +134 -0
- data/spec/models/tool_call_spec.rb +51 -0
- data/spec/models/type_spec.rb +34 -0
- data/spec/models/upscale_image_request_spec.rb +69 -0
- data/spec/spec_helper.rb +110 -0
- data/venice_client.gemspec +38 -0
- metadata +522 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
|
|
14
|
+
describe VeniceClient::ApiClient do
|
|
15
|
+
context 'initialization' do
|
|
16
|
+
context 'URL stuff' do
|
|
17
|
+
context 'host' do
|
|
18
|
+
it 'removes http from host' do
|
|
19
|
+
VeniceClient.configure { |c| c.host = 'http://example.com' }
|
|
20
|
+
expect(VeniceClient::Configuration.default.host).to eq('example.com')
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
it 'removes https from host' do
|
|
24
|
+
VeniceClient.configure { |c| c.host = 'https://wookiee.com' }
|
|
25
|
+
expect(VeniceClient::ApiClient.default.config.host).to eq('wookiee.com')
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it 'removes trailing path from host' do
|
|
29
|
+
VeniceClient.configure { |c| c.host = 'hobo.com/v4' }
|
|
30
|
+
expect(VeniceClient::Configuration.default.host).to eq('hobo.com')
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
context 'base_path' do
|
|
35
|
+
it "prepends a slash to base_path" do
|
|
36
|
+
VeniceClient.configure { |c| c.base_path = 'v4/dog' }
|
|
37
|
+
expect(VeniceClient::Configuration.default.base_path).to eq('/v4/dog')
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it "doesn't prepend a slash if one is already there" do
|
|
41
|
+
VeniceClient.configure { |c| c.base_path = '/v4/dog' }
|
|
42
|
+
expect(VeniceClient::Configuration.default.base_path).to eq('/v4/dog')
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
it "ends up as a blank string if nil" do
|
|
46
|
+
VeniceClient.configure { |c| c.base_path = nil }
|
|
47
|
+
expect(VeniceClient::Configuration.default.base_path).to eq('')
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'params_encoding in #build_request' do
|
|
54
|
+
let(:config) { VeniceClient::Configuration.new }
|
|
55
|
+
let(:api_client) { VeniceClient::ApiClient.new(config) }
|
|
56
|
+
|
|
57
|
+
it 'defaults to nil' do
|
|
58
|
+
expect(VeniceClient::Configuration.default.params_encoding).to eq(nil)
|
|
59
|
+
expect(config.params_encoding).to eq(nil)
|
|
60
|
+
|
|
61
|
+
request = api_client.build_request(:get, '/test')
|
|
62
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
it 'can be customized' do
|
|
66
|
+
config.params_encoding = :multi
|
|
67
|
+
request = api_client.build_request(:get, '/test')
|
|
68
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'timeout in #build_request' do
|
|
73
|
+
let(:config) { VeniceClient::Configuration.new }
|
|
74
|
+
let(:api_client) { VeniceClient::ApiClient.new(config) }
|
|
75
|
+
|
|
76
|
+
it 'defaults to 0' do
|
|
77
|
+
expect(VeniceClient::Configuration.default.timeout).to eq(0)
|
|
78
|
+
expect(config.timeout).to eq(0)
|
|
79
|
+
|
|
80
|
+
request = api_client.build_request(:get, '/test')
|
|
81
|
+
expect(request.options[:timeout]).to eq(0)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
it 'can be customized' do
|
|
85
|
+
config.timeout = 100
|
|
86
|
+
request = api_client.build_request(:get, '/test')
|
|
87
|
+
expect(request.options[:timeout]).to eq(100)
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
describe '#deserialize' do
|
|
92
|
+
it "handles Array<Integer>" do
|
|
93
|
+
api_client = VeniceClient::ApiClient.new
|
|
94
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
95
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
|
96
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
|
97
|
+
expect(data).to be_instance_of(Array)
|
|
98
|
+
expect(data).to eq([12, 34])
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
it 'handles Array<Array<Integer>>' do
|
|
102
|
+
api_client = VeniceClient::ApiClient.new
|
|
103
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
104
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
|
105
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
|
106
|
+
expect(data).to be_instance_of(Array)
|
|
107
|
+
expect(data).to eq([[12, 34], [56]])
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
it 'handles Hash<String, String>' do
|
|
111
|
+
api_client = VeniceClient::ApiClient.new
|
|
112
|
+
headers = { 'Content-Type' => 'application/json' }
|
|
113
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
|
114
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
|
115
|
+
expect(data).to be_instance_of(Hash)
|
|
116
|
+
expect(data).to eq(:message => 'Hello')
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
describe "#object_to_hash" do
|
|
121
|
+
it 'ignores nils and includes empty arrays' do
|
|
122
|
+
# uncomment below to test object_to_hash for model
|
|
123
|
+
# api_client = VeniceClient::ApiClient.new
|
|
124
|
+
# _model = VeniceClient::ModelName.new
|
|
125
|
+
# update the model attribute below
|
|
126
|
+
# _model.id = 1
|
|
127
|
+
# update the expected value (hash) below
|
|
128
|
+
# expected = {id: 1, name: '', tags: []}
|
|
129
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
describe '#build_collection_param' do
|
|
134
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
|
135
|
+
let(:api_client) { VeniceClient::ApiClient.new }
|
|
136
|
+
|
|
137
|
+
it 'works for csv' do
|
|
138
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
it 'works for ssv' do
|
|
142
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
it 'works for tsv' do
|
|
146
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
it 'works for pipes' do
|
|
150
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
it 'works for multi' do
|
|
154
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
it 'fails for invalid collection format' do
|
|
158
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
describe '#json_mime?' do
|
|
163
|
+
let(:api_client) { VeniceClient::ApiClient.new }
|
|
164
|
+
|
|
165
|
+
it 'works' do
|
|
166
|
+
expect(api_client.json_mime?(nil)).to eq false
|
|
167
|
+
expect(api_client.json_mime?('')).to eq false
|
|
168
|
+
|
|
169
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
|
170
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
|
171
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
|
172
|
+
|
|
173
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
|
174
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
|
175
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
describe '#select_header_accept' do
|
|
180
|
+
let(:api_client) { VeniceClient::ApiClient.new }
|
|
181
|
+
|
|
182
|
+
it 'works' do
|
|
183
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
|
184
|
+
expect(api_client.select_header_accept([])).to be_nil
|
|
185
|
+
|
|
186
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
|
187
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
188
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
189
|
+
|
|
190
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
|
191
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
describe '#select_header_content_type' do
|
|
196
|
+
let(:api_client) { VeniceClient::ApiClient.new }
|
|
197
|
+
|
|
198
|
+
it 'works' do
|
|
199
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
|
200
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
|
201
|
+
|
|
202
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
|
203
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
|
204
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
|
205
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
|
206
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
describe '#sanitize_filename' do
|
|
211
|
+
let(:api_client) { VeniceClient::ApiClient.new }
|
|
212
|
+
|
|
213
|
+
it 'works' do
|
|
214
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
|
215
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
|
216
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
|
217
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
|
218
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
|
219
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
|
220
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
|
221
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
|
222
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
end
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
class ArrayMapObject < Petstore::Category
|
|
4
|
+
attr_accessor :int_arr, :pet_arr, :int_map, :pet_map, :int_arr_map, :pet_arr_map, :boolean_true_arr, :boolean_false_arr
|
|
5
|
+
|
|
6
|
+
def self.attribute_map
|
|
7
|
+
{
|
|
8
|
+
:int_arr => :int_arr,
|
|
9
|
+
:pet_arr => :pet_arr,
|
|
10
|
+
:int_map => :int_map,
|
|
11
|
+
:pet_map => :pet_map,
|
|
12
|
+
:int_arr_map => :int_arr_map,
|
|
13
|
+
:pet_arr_map => :pet_arr_map,
|
|
14
|
+
:boolean_true_arr => :boolean_true_arr,
|
|
15
|
+
:boolean_false_arr => :boolean_false_arr,
|
|
16
|
+
}
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def self.swagger_types
|
|
20
|
+
{
|
|
21
|
+
:int_arr => :'Array<Integer>',
|
|
22
|
+
:pet_arr => :'Array<Pet>',
|
|
23
|
+
:int_map => :'Hash<String, Integer>',
|
|
24
|
+
:pet_map => :'Hash<String, Pet>',
|
|
25
|
+
:int_arr_map => :'Hash<String, Array<Integer>>',
|
|
26
|
+
:pet_arr_map => :'Hash<String, Array<Pet>>',
|
|
27
|
+
:boolean_true_arr => :'Array<BOOLEAN>',
|
|
28
|
+
:boolean_false_arr => :'Array<BOOLEAN>',
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'BaseObject' do
|
|
34
|
+
describe 'boolean values' do
|
|
35
|
+
let(:obj) { Petstore::Cat.new({declawed: false}) }
|
|
36
|
+
|
|
37
|
+
it 'should have values set' do
|
|
38
|
+
expect(obj.declawed).not_to be_nil
|
|
39
|
+
expect(obj.declawed).to eq(false)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
describe 'array and map properties' do
|
|
44
|
+
let(:obj) { ArrayMapObject.new }
|
|
45
|
+
|
|
46
|
+
let(:data) do
|
|
47
|
+
{int_arr: [123, 456],
|
|
48
|
+
pet_arr: [{name: 'Kitty'}],
|
|
49
|
+
int_map: {'int' => 123},
|
|
50
|
+
pet_map: {'pet' => {name: 'Kitty'}},
|
|
51
|
+
int_arr_map: {'int_arr' => [123, 456]},
|
|
52
|
+
pet_arr_map: {'pet_arr' => [{name: 'Kitty'}]},
|
|
53
|
+
boolean_true_arr: [true, "true", "TruE", 1, "y", "yes", "1", "t", "T"],
|
|
54
|
+
boolean_false_arr: [false, "", 0, "0", "f", nil, "null"],
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
it 'works for #build_from_hash' do
|
|
59
|
+
obj.build_from_hash(data)
|
|
60
|
+
|
|
61
|
+
expect(obj.int_arr).to match_array([123, 456])
|
|
62
|
+
|
|
63
|
+
expect(obj.pet_arr).to be_instance_of(Array)
|
|
64
|
+
expect(obj.pet_arr).to be_instance_of(1)
|
|
65
|
+
|
|
66
|
+
pet = obj.pet_arr.first
|
|
67
|
+
expect(pet).to be_instance_of(Petstore::Pet)
|
|
68
|
+
expect(pet.name).to eq('Kitty')
|
|
69
|
+
|
|
70
|
+
expect(obj.int_map).to be_instance_of(Hash)
|
|
71
|
+
expect(obj.int_map).to eq({'int' => 123})
|
|
72
|
+
|
|
73
|
+
expect(obj.pet_map).to be_instance_of(Hash)
|
|
74
|
+
pet = obj.pet_map['pet']
|
|
75
|
+
expect(pet).to be_instance_of(Petstore::Pet)
|
|
76
|
+
expect(pet.name).to eq('Kitty')
|
|
77
|
+
|
|
78
|
+
expect(obj.int_arr_map).to be_instance_of(Hash)
|
|
79
|
+
arr = obj.int_arr_map['int_arr']
|
|
80
|
+
expect(arr).to match_array([123, 456])
|
|
81
|
+
|
|
82
|
+
expect(obj.pet_arr_map).to be_instance_of(Hash)
|
|
83
|
+
arr = obj.pet_arr_map['pet_arr']
|
|
84
|
+
expect(arr).to be_instance_of(Array)
|
|
85
|
+
expect(arr.size).to eq(1)
|
|
86
|
+
pet = arr.first
|
|
87
|
+
expect(pet).to be_instance_of(Petstore::Pet)
|
|
88
|
+
expect(pet.name).to eq('Kitty')
|
|
89
|
+
|
|
90
|
+
expect(obj.boolean_true_arr).to be_instance_of(Array)
|
|
91
|
+
obj.boolean_true_arr.each do |b|
|
|
92
|
+
expect(b).to eq(true)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
expect(obj.boolean_false_arr).to be_instance_of(Array)
|
|
96
|
+
obj.boolean_false_arr.each do |b|
|
|
97
|
+
expect(b).to eq(false)
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
it 'works for #to_hash' do
|
|
102
|
+
obj.build_from_hash(data)
|
|
103
|
+
expect_data = data.dup
|
|
104
|
+
expect_data[:boolean_true_arr].map! {true}
|
|
105
|
+
expect_data[:boolean_false_arr].map! {false}
|
|
106
|
+
expect(obj.to_hash).to eq(expect_data)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
|
|
14
|
+
describe VeniceClient::Configuration do
|
|
15
|
+
let(:config) { VeniceClient::Configuration.default }
|
|
16
|
+
|
|
17
|
+
before(:each) do
|
|
18
|
+
# uncomment below to setup host and base_path
|
|
19
|
+
# require 'URI'
|
|
20
|
+
# uri = URI.parse("https://api.venice.ai/api/v1")
|
|
21
|
+
# VeniceClient.configure do |c|
|
|
22
|
+
# c.host = uri.host
|
|
23
|
+
# c.base_path = uri.path
|
|
24
|
+
# end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
describe '#base_url' do
|
|
28
|
+
it 'should have the default value' do
|
|
29
|
+
# uncomment below to test default value of the base path
|
|
30
|
+
# expect(config.base_url).to eq("https://api.venice.ai/api/v1")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
it 'should remove trailing slashes' do
|
|
34
|
+
[nil, '', '/', '//'].each do |base_path|
|
|
35
|
+
config.base_path = base_path
|
|
36
|
+
# uncomment below to test trailing slashes
|
|
37
|
+
# expect(config.base_url).to eq("https://api.venice.ai/api/v1")
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require "spec_helper"
|
|
13
|
+
require "json"
|
|
14
|
+
require "date"
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfChatCompletionRequestMessagesItems
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe "AnyOfChatCompletionRequestMessagesItems" do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfChatCompletionRequestMessagesItems.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "test an instance of AnyOfChatCompletionRequestMessagesItems" do
|
|
30
|
+
it "should create an instance of AnyOfChatCompletionRequestMessagesItems" do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfChatCompletionRequestMessagesItems)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfChatCompletionRequestStop
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AnyOfChatCompletionRequestStop' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfChatCompletionRequestStop.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AnyOfChatCompletionRequestStop' do
|
|
30
|
+
it 'should create an instance of AnyOfChatCompletionRequestStop' do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfChatCompletionRequestStop)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfChatCompletionRequestToolChoice
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AnyOfChatCompletionRequestToolChoice' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfChatCompletionRequestToolChoice.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AnyOfChatCompletionRequestToolChoice' do
|
|
30
|
+
it 'should create an instance of AnyOfChatCompletionRequestToolChoice' do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfChatCompletionRequestToolChoice)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfCreateEmbeddingRequestSchemaInput
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AnyOfCreateEmbeddingRequestSchemaInput' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfCreateEmbeddingRequestSchemaInput.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AnyOfCreateEmbeddingRequestSchemaInput' do
|
|
30
|
+
it 'should create an instance of AnyOfCreateEmbeddingRequestSchemaInput' do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfCreateEmbeddingRequestSchemaInput)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require "spec_helper"
|
|
13
|
+
require "json"
|
|
14
|
+
require "date"
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfCreateEmbeddingRequestSchemaModel
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe "AnyOfCreateEmbeddingRequestSchemaModel" do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfCreateEmbeddingRequestSchemaModel.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "test an instance of AnyOfCreateEmbeddingRequestSchemaModel" do
|
|
30
|
+
it "should create an instance of AnyOfCreateEmbeddingRequestSchemaModel" do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfCreateEmbeddingRequestSchemaModel)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require "spec_helper"
|
|
13
|
+
require "json"
|
|
14
|
+
require "date"
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfModelResponseModelSpecConstraints
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe "AnyOfModelResponseModelSpecConstraints" do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfModelResponseModelSpecConstraints.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "test an instance of AnyOfModelResponseModelSpecConstraints" do
|
|
30
|
+
it "should create an instance of AnyOfModelResponseModelSpecConstraints" do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfModelResponseModelSpecConstraints)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require "spec_helper"
|
|
13
|
+
require "json"
|
|
14
|
+
require "date"
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfModelResponseModelSpecPricing
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe "AnyOfModelResponseModelSpecPricing" do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfModelResponseModelSpecPricing.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "test an instance of AnyOfModelResponseModelSpecPricing" do
|
|
30
|
+
it "should create an instance of AnyOfModelResponseModelSpecPricing" do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfModelResponseModelSpecPricing)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require "spec_helper"
|
|
13
|
+
require "json"
|
|
14
|
+
require "date"
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfUpscaleImageRequestEnhance
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe "AnyOfUpscaleImageRequestEnhance" do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfUpscaleImageRequestEnhance.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "test an instance of AnyOfUpscaleImageRequestEnhance" do
|
|
30
|
+
it "should create an instance of AnyOfUpscaleImageRequestEnhance" do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfUpscaleImageRequestEnhance)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Venice.ai API
|
|
3
|
+
|
|
4
|
+
#The Venice.ai API.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 20250521.233203
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 3.0.68
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require "spec_helper"
|
|
13
|
+
require "json"
|
|
14
|
+
require "date"
|
|
15
|
+
|
|
16
|
+
# Unit tests for VeniceClient::AnyOfUpscaleImageRequestImage
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe "AnyOfUpscaleImageRequestImage" do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = VeniceClient::AnyOfUpscaleImageRequestImage.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe "test an instance of AnyOfUpscaleImageRequestImage" do
|
|
30
|
+
it "should create an instance of AnyOfUpscaleImageRequestImage" do
|
|
31
|
+
expect(@instance).to be_instance_of(VeniceClient::AnyOfUpscaleImageRequestImage)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|