Module: VeniceClient

Defined in:
lib/venice_client/version.rb,
lib/venice_client.rb,
lib/venice_client/api_error.rb,
lib/venice_client/api_client.rb,
lib/venice_client/models/type.rb,
lib/venice_client/api/chat_api.rb,
lib/venice_client/api/audio_api.rb,
lib/venice_client/api/image_api.rb,
lib/venice_client/configuration.rb,
lib/venice_client/api/models_api.rb,
lib/venice_client/api/speech_api.rb,
lib/venice_client/api/billing_api.rb,
lib/venice_client/api/preview_api.rb,
lib/venice_client/api/api_keys_api.rb,
lib/venice_client/models/tool_call.rb,
lib/venice_client/api/characters_api.rb,
lib/venice_client/api/embeddings_api.rb,
lib/venice_client/models/api_keys_body.rb,
lib/venice_client/models/model_response.rb,
lib/venice_client/models/model_trait_schema.rb,
lib/venice_client/models/inline_response_200.rb,
lib/venice_client/models/inline_response_400.rb,
lib/venice_client/models/inline_response_401.rb,
lib/venice_client/models/inline_response_402.rb,
lib/venice_client/models/inline_response_403.rb,
lib/venice_client/models/inline_response_415.rb,
lib/venice_client/models/inline_response_429.rb,
lib/venice_client/models/inline_response_500.rb,
lib/venice_client/models/inline_response_503.rb,
lib/venice_client/models/billing_usage_request.rb,
lib/venice_client/models/inline_response_200_1.rb,
lib/venice_client/models/inline_response_200_2.rb,
lib/venice_client/models/inline_response_200_3.rb,
lib/venice_client/models/inline_response_200_4.rb,
lib/venice_client/models/inline_response_200_5.rb,
lib/venice_client/models/inline_response_200_6.rb,
lib/venice_client/models/inline_response_200_7.rb,
lib/venice_client/models/inline_response_200_8.rb,
lib/venice_client/models/inline_response_200_9.rb,
lib/venice_client/models/inline_response_500_1.rb,
lib/venice_client/models/upscale_image_request.rb,
lib/venice_client/models/billing_usage_response.rb,
lib/venice_client/models/generate_image_request.rb,
lib/venice_client/models/inline_response_200_10.rb,
lib/venice_client/models/inline_response_200_11.rb,
lib/venice_client/models/inline_response_200_12.rb,
lib/venice_client/models/inline_response_200_13.rb,
lib/venice_client/models/inline_response_200_14.rb,
lib/venice_client/models/inline_response_200_15.rb,
lib/venice_client/models/chat_completion_request.rb,
lib/venice_client/models/inline_response_200_usage.rb,
lib/venice_client/models/model_response_model_spec.rb,
lib/venice_client/models/api_keys_consumption_limit.rb,
lib/venice_client/models/inline_response_200_7_data.rb,
lib/venice_client/models/inline_response_200_8_data.rb,
lib/venice_client/models/model_compatibility_schema.rb,
lib/venice_client/models/billing_usage_response_data.rb,
lib/venice_client/models/inline_response_200_10_data.rb,
lib/venice_client/models/inline_response_200_11_data.rb,
lib/venice_client/models/inline_response_200_12_data.rb,
lib/venice_client/models/inline_response_200_13_data.rb,
lib/venice_client/models/inline_response_200_14_data.rb,
lib/venice_client/models/inline_response_200_7_usage.rb,
lib/venice_client/models/inline_response_200_choices.rb,
lib/venice_client/models/create_speech_request_schema.rb,
lib/venice_client/models/inline_response_200_13_stats.rb,
lib/venice_client/models/inline_response_200_14_usage.rb,
lib/venice_client/models/inline_response_200_1_timing.rb,
lib/venice_client/models/inline_response_200_logprobs.rb,
lib/venice_client/models/simple_generate_image_request.rb,
lib/venice_client/models/any_ofapi_keys_body_expires_at.rb,
lib/venice_client/models/api_keys_generate_web3_key_body.rb,
lib/venice_client/models/create_embedding_request_schema.rb,
lib/venice_client/models/any_ofinline_response_200_4_type.rb,
lib/venice_client/models/any_ofinline_response_200_5_type.rb,
lib/venice_client/models/any_ofinline_response_200_6_type.rb,
lib/venice_client/models/chat_completion_request_function.rb,
lib/venice_client/models/billing_usage_response_pagination.rb,
lib/venice_client/models/any_of_upscale_image_request_image.rb,
lib/venice_client/models/any_of_chat_completion_request_stop.rb,
lib/venice_client/models/any_of_upscale_image_request_enhance.rb,
lib/venice_client/models/any_ofapi_keys_consumption_limit_usd.rb,
lib/venice_client/models/any_ofapi_keys_consumption_limit_vcu.rb,
lib/venice_client/models/inline_response_200_10_data_api_tier.rb,
lib/venice_client/models/inline_response_200_10_data_balances.rb,
lib/venice_client/models/inline_response_200_venice_parameters.rb,
lib/venice_client/models/any_ofinline_response_200_2_data_items.rb,
lib/venice_client/models/chat_completion_request_stream_options.rb,
lib/venice_client/models/model_response_model_spec_capabilities.rb,
lib/venice_client/models/inline_response_200_10_data_rate_limits.rb,
lib/venice_client/models/any_of_model_response_model_spec_pricing.rb,
lib/venice_client/models/billing_usage_response_inference_details.rb,
lib/venice_client/models/any_ofinline_response_200_choices_message.rb,
lib/venice_client/models/any_ofinline_response_200_prompt_logprobs.rb,
lib/venice_client/models/chat_completion_request_venice_parameters.rb,
lib/venice_client/models/inline_response_200_10_data_rate_limits_1.rb,
lib/venice_client/models/inline_response_200_logprobs_top_logprobs.rb,
lib/venice_client/models/any_of_chat_completion_request_tool_choice.rb,
lib/venice_client/models/any_of_create_embedding_request_schema_input.rb,
lib/venice_client/models/any_of_create_embedding_request_schema_model.rb,
lib/venice_client/models/any_of_model_response_model_spec_constraints.rb,
lib/venice_client/models/any_of_chat_completion_request_messages_items.rb,
lib/venice_client/models/one_of_chat_completion_request_response_format.rb,
lib/venice_client/models/inline_response_200_7_usage_trailing_seven_days.rb,
lib/venice_client/models/any_ofapi_keys_generate_web3_key_body_expires_at.rb,
lib/venice_client/models/inline_response_200_venice_parameters_web_search_citations.rb

Overview

#Venice.ai API

#The Venice.ai API.

OpenAPI spec version: 20250521.233203

Generated by: github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 3.0.68

Defined Under Namespace

Classes: APIKeysApi, AnyOfChatCompletionRequestMessagesItems, AnyOfChatCompletionRequestStop, AnyOfChatCompletionRequestToolChoice, AnyOfCreateEmbeddingRequestSchemaInput, AnyOfCreateEmbeddingRequestSchemaModel, AnyOfModelResponseModelSpecConstraints, AnyOfModelResponseModelSpecPricing, AnyOfUpscaleImageRequestEnhance, AnyOfUpscaleImageRequestImage, AnyOfapiKeysBodyExpiresAt, AnyOfapiKeysConsumptionLimitUsd, AnyOfapiKeysConsumptionLimitVcu, AnyOfapiKeysGenerateWeb3KeyBodyExpiresAt, AnyOfinlineResponse2002DataItems, AnyOfinlineResponse2004Type, AnyOfinlineResponse2005Type, AnyOfinlineResponse2006Type, AnyOfinlineResponse200ChoicesMessage, AnyOfinlineResponse200PromptLogprobs, ApiClient, ApiError, ApiKeysBody, ApiKeysConsumptionLimit, ApiKeysGenerateWeb3KeyBody, AudioApi, BillingApi, BillingUsageRequest, BillingUsageResponse, BillingUsageResponseData, BillingUsageResponseInferenceDetails, BillingUsageResponsePagination, CharactersApi, ChatApi, ChatCompletionRequest, ChatCompletionRequestFunction, ChatCompletionRequestStreamOptions, ChatCompletionRequestVeniceParameters, Configuration, CreateEmbeddingRequestSchema, CreateSpeechRequestSchema, EmbeddingsApi, GenerateImageRequest, ImageApi, InlineResponse200, InlineResponse2001, InlineResponse20010, InlineResponse20010Data, InlineResponse20010DataApiTier, InlineResponse20010DataBalances, InlineResponse20010DataRateLimits, InlineResponse20010DataRateLimits1, InlineResponse20011, InlineResponse20011Data, InlineResponse20012, InlineResponse20012Data, InlineResponse20013, InlineResponse20013Data, InlineResponse20013Stats, InlineResponse20014, InlineResponse20014Data, InlineResponse20014Usage, InlineResponse20015, InlineResponse2001Timing, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2007Data, InlineResponse2007Usage, InlineResponse2007UsageTrailingSevenDays, InlineResponse2008, InlineResponse2008Data, InlineResponse2009, InlineResponse200Choices, InlineResponse200Logprobs, InlineResponse200LogprobsTopLogprobs, InlineResponse200Usage, InlineResponse200VeniceParameters, InlineResponse200VeniceParametersWebSearchCitations, InlineResponse400, InlineResponse401, InlineResponse402, InlineResponse403, InlineResponse415, InlineResponse429, InlineResponse500, InlineResponse5001, InlineResponse503, ModelCompatibilitySchema, ModelResponse, ModelResponseModelSpec, ModelResponseModelSpecCapabilities, ModelTraitSchema, ModelsApi, OneOfChatCompletionRequestResponseFormat, PreviewApi, SimpleGenerateImageRequest, SpeechApi, ToolCall, Type, UpscaleImageRequest

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

VeniceClient.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



131
132
133
134
135
136
137
# File 'lib/venice_client.rb', line 131

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end