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,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20010DataRateLimits1
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**api_model_id** | **String** | The ID of the API model. | [optional]
|
|
7
|
+
**rate_limits** | [**Array<InlineResponse20010DataRateLimits>**](InlineResponse20010DataRateLimits.md) | |
|
|
8
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20011
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**Array<InlineResponse20011Data>**](InlineResponse20011Data.md) | The last 50 rate limit logs for the account. |
|
|
7
|
+
**object** | **String** | |
|
|
8
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20011Data
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**api_key_id** | **String** | The ID of the API key that exceeded the limit. |
|
|
7
|
+
**model_id** | **String** | The ID of the model that was used when the rate limit was exceeded. | [default to 'venice-uncensored']
|
|
8
|
+
**rate_limit_tier** | **String** | The API tier of the rate limit. |
|
|
9
|
+
**rate_limit_type** | **String** | The type of rate limit that was exceeded. |
|
|
10
|
+
**timestamp** | **String** | The timestamp when the rate limit was exceeded. |
|
|
11
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20013
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**Array<InlineResponse20013Data>**](InlineResponse20013Data.md) | |
|
|
7
|
+
**object** | **String** | |
|
|
8
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20013Data
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**adult** | **BOOLEAN** | Whether the character is considered adult content |
|
|
7
|
+
**created_at** | **String** | Date when the character was created |
|
|
8
|
+
**description** | **String** | Description of the character |
|
|
9
|
+
**name** | **String** | Name of the character |
|
|
10
|
+
**share_url** | **String** | Share URL of the character |
|
|
11
|
+
**slug** | **String** | Slug of the character to be used in the completions API |
|
|
12
|
+
**stats** | [**InlineResponse20013Stats**](InlineResponse20013Stats.md) | |
|
|
13
|
+
**tags** | **Array<String>** | Tags associated with the character |
|
|
14
|
+
**updated_at** | **String** | Date when the character was last updated |
|
|
15
|
+
**web_enabled** | **BOOLEAN** | Whether the character is enabled for web use |
|
|
16
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20014
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**Array<InlineResponse20014Data>**](InlineResponse20014Data.md) | The list of embeddings generated by the model. |
|
|
7
|
+
**model** | **String** | The name of the model used to generate the embedding. |
|
|
8
|
+
**object** | **String** | The object type, which is always \"list\" |
|
|
9
|
+
**usage** | [**InlineResponse20014Usage**](InlineResponse20014Usage.md) | |
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20014Data
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**embedding** | [**Array<BigDecimal>**](BigDecimal.md) | The embedding vector |
|
|
7
|
+
**index** | **Integer** | The index of this embedding in the list |
|
|
8
|
+
**object** | **String** | The object type, which is always \"embedding\" |
|
|
9
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20014Usage
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**prompt_tokens** | **Integer** | The number of tokens used by the prompt. |
|
|
7
|
+
**total_tokens** | **Integer** | The total number of tokens used by the request. |
|
|
8
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse20015
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**Array<BillingUsageResponseData>**](BillingUsageResponseData.md) | |
|
|
7
|
+
**pagination** | [**BillingUsageResponsePagination**](BillingUsageResponsePagination.md) | |
|
|
8
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2001Timing
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**inference_duration** | [**BigDecimal**](BigDecimal.md) | Duration of inference in milliseconds |
|
|
7
|
+
**inference_preprocessing_time** | [**BigDecimal**](BigDecimal.md) | Duration of preprocessing in milliseconds |
|
|
8
|
+
**inference_queue_time** | [**BigDecimal**](BigDecimal.md) | Duration of queueing in milliseconds |
|
|
9
|
+
**total** | [**BigDecimal**](BigDecimal.md) | Total duration of the request in milliseconds |
|
|
10
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2002
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**created** | **Integer** | Unix timestamp for when the request was created |
|
|
7
|
+
**data** | [**Array<AnyOfinlineResponse2002DataItems>**](.md) | |
|
|
8
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2004
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**Array<ModelResponse>**](ModelResponse.md) | List of available models |
|
|
7
|
+
**object** | **String** | |
|
|
8
|
+
**type** | [**AnyOfinlineResponse2004Type**](AnyOfinlineResponse2004Type.md) | Type of models returned. |
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2005
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**ModelTraitSchema**](ModelTraitSchema.md) | |
|
|
7
|
+
**object** | **String** | |
|
|
8
|
+
**type** | [**AnyOfinlineResponse2005Type**](AnyOfinlineResponse2005Type.md) | Type of models returned. |
|
|
9
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2006
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**ModelCompatibilitySchema**](ModelCompatibilitySchema.md) | |
|
|
7
|
+
**object** | **String** | |
|
|
8
|
+
**type** | [**AnyOfinlineResponse2006Type**](AnyOfinlineResponse2006Type.md) | Type of models returned. |
|
|
9
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2007
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**data** | [**Array<InlineResponse2007Data>**](InlineResponse2007Data.md) | List of active API keys |
|
|
7
|
+
**object** | **String** | |
|
|
8
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2007Data
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**api_key_type** | **String** | API Key type |
|
|
7
|
+
**consumption_limits** | [**ApiKeysConsumptionLimit**](ApiKeysConsumptionLimit.md) | |
|
|
8
|
+
**created_at** | **String** | API Key creation date |
|
|
9
|
+
**description** | **String** | API Key description | [optional]
|
|
10
|
+
**expires_at** | **String** | API Key expiration date |
|
|
11
|
+
**id** | **String** | API Key ID |
|
|
12
|
+
**last6_chars** | **String** | Last 6 characters of the API Key |
|
|
13
|
+
**last_used_at** | **String** | API Key last used date |
|
|
14
|
+
**usage** | [**InlineResponse2007Usage**](InlineResponse2007Usage.md) | | [optional]
|
|
15
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2007Usage
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**trailing_seven_days** | [**InlineResponse2007UsageTrailingSevenDays**](InlineResponse2007UsageTrailingSevenDays.md) | |
|
|
7
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2007UsageTrailingSevenDays
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**usd** | **String** | USD usage in the trailing 7 days |
|
|
7
|
+
**vcu** | **String** | VCU usage in the trailing 7 days |
|
|
8
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse2008Data
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**api_key** | **String** | The API Key. This is only shown once, so make sure to save it somewhere safe. |
|
|
7
|
+
**api_key_type** | **String** | The API Key type |
|
|
8
|
+
**consumption_limit** | [**ApiKeysConsumptionLimit**](ApiKeysConsumptionLimit.md) | |
|
|
9
|
+
**description** | **String** | The API Key description | [optional]
|
|
10
|
+
**expires_at** | **String** | The API Key expiration date |
|
|
11
|
+
**id** | **String** | The API Key ID |
|
|
12
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse200Choices
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**finish_reason** | **String** | The reason the completion finished. |
|
|
7
|
+
**index** | **Integer** | The index of the choice in the list. |
|
|
8
|
+
**logprobs** | [**InlineResponse200Logprobs**](InlineResponse200Logprobs.md) | |
|
|
9
|
+
**message** | [**AnyOfinlineResponse200ChoicesMessage**](AnyOfinlineResponse200ChoicesMessage.md) | |
|
|
10
|
+
**stop_reason** | **String** | The reason the completion stopped. | [optional]
|
|
11
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse200Logprobs
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**bytes** | [**Array<BigDecimal>**](BigDecimal.md) | Raw bytes of the token | [optional]
|
|
7
|
+
**logprob** | [**BigDecimal**](BigDecimal.md) | The log probability of this token |
|
|
8
|
+
**token** | **String** | The token string |
|
|
9
|
+
**top_logprobs** | [**Array<InlineResponse200LogprobsTopLogprobs>**](InlineResponse200LogprobsTopLogprobs.md) | Top tokens considered with their log probabilities | [optional]
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse200LogprobsTopLogprobs
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**bytes** | [**Array<BigDecimal>**](BigDecimal.md) | | [optional]
|
|
7
|
+
**logprob** | [**BigDecimal**](BigDecimal.md) | |
|
|
8
|
+
**token** | **String** | |
|
|
9
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse200Usage
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**completion_tokens** | **Integer** | The number of tokens in the completion. |
|
|
7
|
+
**prompt_tokens** | **Integer** | The number of tokens in the prompt. |
|
|
8
|
+
**prompt_tokens_details** | **Object** | Breakdown of tokens used in the prompt. Not presently used by Venice. | [optional]
|
|
9
|
+
**total_tokens** | **Integer** | The total number of tokens used in the request. |
|
|
10
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse200VeniceParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**enable_web_search** | **String** | Did the request enable web search? |
|
|
7
|
+
**enable_web_citations** | **BOOLEAN** | Did the request enable web citations? |
|
|
8
|
+
**include_venice_system_prompt** | **BOOLEAN** | Did the request include the Venice system prompt? |
|
|
9
|
+
**character_slug** | **String** | The character slug of a public Venice character. | [optional]
|
|
10
|
+
**strip_thinking_response** | **BOOLEAN** | Did the request strip thinking response? |
|
|
11
|
+
**disable_thinking** | **BOOLEAN** | Did the request disable thinking? |
|
|
12
|
+
**web_search_citations** | [**Array<InlineResponse200VeniceParametersWebSearchCitations>**](InlineResponse200VeniceParametersWebSearchCitations.md) | Citations from web search results. | [optional]
|
|
13
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse200VeniceParametersWebSearchCitations
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**content** | **String** | | [optional]
|
|
7
|
+
**date** | **String** | | [optional]
|
|
8
|
+
**title** | **String** | |
|
|
9
|
+
**url** | **String** | |
|
|
10
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# VeniceClient::InlineResponse400
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**details** | **Object** | Details about the incorrect input | [optional]
|
|
7
|
+
**error** | **String** | A description of the error |
|
|
8
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# VeniceClient::ModelResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**created** | [**BigDecimal**](BigDecimal.md) | Release date on Venice API | [optional]
|
|
7
|
+
**id** | **String** | Model ID |
|
|
8
|
+
**model_spec** | [**ModelResponseModelSpec**](ModelResponseModelSpec.md) | |
|
|
9
|
+
**object** | **String** | Object type |
|
|
10
|
+
**owned_by** | **String** | Who runs the model |
|
|
11
|
+
**type** | **String** | Model type |
|
|
12
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# VeniceClient::ModelResponseModelSpec
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**available_context_tokens** | [**BigDecimal**](BigDecimal.md) | The context length supported by the model. Only applicable for text models. | [optional]
|
|
7
|
+
**beta** | **BOOLEAN** | Is this model in beta? | [optional]
|
|
8
|
+
**capabilities** | [**ModelResponseModelSpecCapabilities**](ModelResponseModelSpecCapabilities.md) | | [optional]
|
|
9
|
+
**constraints** | [**AnyOfModelResponseModelSpecConstraints**](AnyOfModelResponseModelSpecConstraints.md) | Constraints that apply to this model. | [optional]
|
|
10
|
+
**model_source** | **String** | The source of the model, such as a URL to the model repository. | [optional]
|
|
11
|
+
**offline** | **BOOLEAN** | Is this model presently offline? | [optional] [default to false]
|
|
12
|
+
**pricing** | [**AnyOfModelResponseModelSpecPricing**](AnyOfModelResponseModelSpecPricing.md) | Pricing details for the model | [optional]
|
|
13
|
+
**traits** | **Array<String>** | Traits that apply to this model. You can specify a trait to auto-select a model vs. specifying the model ID in your request to avoid breakage as Venice updates and iterates on its models. | [optional]
|
|
14
|
+
**voices** | **Array<String>** | The voices available for this TTS model. Only applicable for TTS models. | [optional]
|
|
15
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# VeniceClient::ModelResponseModelSpecCapabilities
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**optimized_for_code** | **BOOLEAN** | Is the LLM optimized for coding? |
|
|
7
|
+
**quantization** | **String** | The quantization type of the running model. |
|
|
8
|
+
**supports_function_calling** | **BOOLEAN** | Does the LLM model support function calling? |
|
|
9
|
+
**supports_reasoning** | **BOOLEAN** | Does the model support reasoning with <thinking> blocks of output. |
|
|
10
|
+
**supports_response_schema** | **BOOLEAN** | Does the LLM model support response schema? Only models that support function calling can support response_schema. |
|
|
11
|
+
**supports_vision** | **BOOLEAN** | Does the LLM support vision? |
|
|
12
|
+
**supports_web_search** | **BOOLEAN** | Does the LLM model support web search? |
|
|
13
|
+
**supports_log_probs** | **BOOLEAN** | Does the LLM model support logprobs parameter? |
|
|
14
|
+
|
data/docs/ModelsApi.md
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# VeniceClient::ModelsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.venice.ai/api/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**list_model_compatibility_mapping**](ModelsApi.md#list_model_compatibility_mapping) | **GET** /models/compatibility_mapping | /api/v1/models/compatibility_mapping
|
|
8
|
+
[**list_model_traits**](ModelsApi.md#list_model_traits) | **GET** /models/traits | /api/v1/models/traits
|
|
9
|
+
[**list_models**](ModelsApi.md#list_models) | **GET** /models | /api/v1/models
|
|
10
|
+
|
|
11
|
+
# **list_model_compatibility_mapping**
|
|
12
|
+
> InlineResponse2006 list_model_compatibility_mapping(opts)
|
|
13
|
+
|
|
14
|
+
/api/v1/models/compatibility_mapping
|
|
15
|
+
|
|
16
|
+
Returns a list of model compatibility mappings and the associated model.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
```ruby
|
|
20
|
+
# load the gem
|
|
21
|
+
require 'venice_client'
|
|
22
|
+
# setup authorization
|
|
23
|
+
VeniceClient.configure do |config|
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
api_instance = VeniceClient::ModelsApi.new
|
|
27
|
+
opts = {
|
|
28
|
+
type: 'text' # String |
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
begin
|
|
32
|
+
#/api/v1/models/compatibility_mapping
|
|
33
|
+
result = api_instance.list_model_compatibility_mapping(opts)
|
|
34
|
+
p result
|
|
35
|
+
rescue VeniceClient::ApiError => e
|
|
36
|
+
puts "Exception when calling ModelsApi->list_model_compatibility_mapping: #{e}"
|
|
37
|
+
end
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
Name | Type | Description | Notes
|
|
43
|
+
------------- | ------------- | ------------- | -------------
|
|
44
|
+
**type** | **String**| | [optional] [default to text]
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: Not defined
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# **list_model_traits**
|
|
62
|
+
> InlineResponse2005 list_model_traits(opts)
|
|
63
|
+
|
|
64
|
+
/api/v1/models/traits
|
|
65
|
+
|
|
66
|
+
Returns a list of model traits and the associated model.
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
```ruby
|
|
70
|
+
# load the gem
|
|
71
|
+
require 'venice_client'
|
|
72
|
+
# setup authorization
|
|
73
|
+
VeniceClient.configure do |config|
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
api_instance = VeniceClient::ModelsApi.new
|
|
77
|
+
opts = {
|
|
78
|
+
type: 'text' # String |
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
begin
|
|
82
|
+
#/api/v1/models/traits
|
|
83
|
+
result = api_instance.list_model_traits(opts)
|
|
84
|
+
p result
|
|
85
|
+
rescue VeniceClient::ApiError => e
|
|
86
|
+
puts "Exception when calling ModelsApi->list_model_traits: #{e}"
|
|
87
|
+
end
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
Name | Type | Description | Notes
|
|
93
|
+
------------- | ------------- | ------------- | -------------
|
|
94
|
+
**type** | **String**| | [optional] [default to text]
|
|
95
|
+
|
|
96
|
+
### Return type
|
|
97
|
+
|
|
98
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
|
99
|
+
|
|
100
|
+
### Authorization
|
|
101
|
+
|
|
102
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
103
|
+
|
|
104
|
+
### HTTP request headers
|
|
105
|
+
|
|
106
|
+
- **Content-Type**: Not defined
|
|
107
|
+
- **Accept**: application/json
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# **list_models**
|
|
112
|
+
> InlineResponse2004 list_models(opts)
|
|
113
|
+
|
|
114
|
+
/api/v1/models
|
|
115
|
+
|
|
116
|
+
Returns a list of available models supported by the Venice.ai API for both text and image inference.
|
|
117
|
+
|
|
118
|
+
### Example
|
|
119
|
+
```ruby
|
|
120
|
+
# load the gem
|
|
121
|
+
require 'venice_client'
|
|
122
|
+
# setup authorization
|
|
123
|
+
VeniceClient.configure do |config|
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
api_instance = VeniceClient::ModelsApi.new
|
|
127
|
+
opts = {
|
|
128
|
+
type: VeniceClient::Type.new # Type |
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
begin
|
|
132
|
+
#/api/v1/models
|
|
133
|
+
result = api_instance.list_models(opts)
|
|
134
|
+
p result
|
|
135
|
+
rescue VeniceClient::ApiError => e
|
|
136
|
+
puts "Exception when calling ModelsApi->list_models: #{e}"
|
|
137
|
+
end
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
Name | Type | Description | Notes
|
|
143
|
+
------------- | ------------- | ------------- | -------------
|
|
144
|
+
**type** | [**Type**](.md)| | [optional]
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
[**InlineResponse2004**](InlineResponse2004.md)
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: Not defined
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|