Skip to content

Latest commit

 

History

History
367 lines (259 loc) · 10.3 KB

File metadata and controls

367 lines (259 loc) · 10.3 KB

LiteLLMClient::MistralPassThroughApi

All URIs are relative to http://localhost

Method HTTP request Description
mistral_proxy_route_mistral_endpoint_get GET /mistral/{endpoint} Mistral Proxy Route
mistral_proxy_route_mistral_endpoint_get_0 PUT /mistral/{endpoint} Mistral Proxy Route
mistral_proxy_route_mistral_endpoint_get_1 POST /mistral/{endpoint} Mistral Proxy Route
mistral_proxy_route_mistral_endpoint_get_2 DELETE /mistral/{endpoint} Mistral Proxy Route
mistral_proxy_route_mistral_endpoint_get_3 PATCH /mistral/{endpoint} Mistral Proxy Route

mistral_proxy_route_mistral_endpoint_get

Object mistral_proxy_route_mistral_endpoint_get(endpoint)

Mistral Proxy Route

Docs

Examples

require 'time'
require 'litellm_client'
# setup authorization
LiteLLMClient.configure do |config|
  # Configure API key authorization: APIKeyHeader
  config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
end

api_instance = LiteLLMClient::MistralPassThroughApi.new
endpoint = 'endpoint_example' # String | 

begin
  # Mistral Proxy Route
  result = api_instance.mistral_proxy_route_mistral_endpoint_get(endpoint)
  p result
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get: #{e}"
end

Using the mistral_proxy_route_mistral_endpoint_get_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(Object, Integer, Hash)> mistral_proxy_route_mistral_endpoint_get_with_http_info(endpoint)

begin
  # Mistral Proxy Route
  data, status_code, headers = api_instance.mistral_proxy_route_mistral_endpoint_get_with_http_info(endpoint)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => Object
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
endpoint String

Return type

Object

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

mistral_proxy_route_mistral_endpoint_get_0

Object mistral_proxy_route_mistral_endpoint_get_0(endpoint)

Mistral Proxy Route

Docs

Examples

require 'time'
require 'litellm_client'
# setup authorization
LiteLLMClient.configure do |config|
  # Configure API key authorization: APIKeyHeader
  config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
end

api_instance = LiteLLMClient::MistralPassThroughApi.new
endpoint = 'endpoint_example' # String | 

begin
  # Mistral Proxy Route
  result = api_instance.mistral_proxy_route_mistral_endpoint_get_0(endpoint)
  p result
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_0: #{e}"
end

Using the mistral_proxy_route_mistral_endpoint_get_0_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(Object, Integer, Hash)> mistral_proxy_route_mistral_endpoint_get_0_with_http_info(endpoint)

begin
  # Mistral Proxy Route
  data, status_code, headers = api_instance.mistral_proxy_route_mistral_endpoint_get_0_with_http_info(endpoint)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => Object
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_0_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
endpoint String

Return type

Object

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

mistral_proxy_route_mistral_endpoint_get_1

Object mistral_proxy_route_mistral_endpoint_get_1(endpoint)

Mistral Proxy Route

Docs

Examples

require 'time'
require 'litellm_client'
# setup authorization
LiteLLMClient.configure do |config|
  # Configure API key authorization: APIKeyHeader
  config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
end

api_instance = LiteLLMClient::MistralPassThroughApi.new
endpoint = 'endpoint_example' # String | 

begin
  # Mistral Proxy Route
  result = api_instance.mistral_proxy_route_mistral_endpoint_get_1(endpoint)
  p result
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_1: #{e}"
end

Using the mistral_proxy_route_mistral_endpoint_get_1_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(Object, Integer, Hash)> mistral_proxy_route_mistral_endpoint_get_1_with_http_info(endpoint)

begin
  # Mistral Proxy Route
  data, status_code, headers = api_instance.mistral_proxy_route_mistral_endpoint_get_1_with_http_info(endpoint)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => Object
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_1_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
endpoint String

Return type

Object

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

mistral_proxy_route_mistral_endpoint_get_2

Object mistral_proxy_route_mistral_endpoint_get_2(endpoint)

Mistral Proxy Route

Docs

Examples

require 'time'
require 'litellm_client'
# setup authorization
LiteLLMClient.configure do |config|
  # Configure API key authorization: APIKeyHeader
  config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
end

api_instance = LiteLLMClient::MistralPassThroughApi.new
endpoint = 'endpoint_example' # String | 

begin
  # Mistral Proxy Route
  result = api_instance.mistral_proxy_route_mistral_endpoint_get_2(endpoint)
  p result
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_2: #{e}"
end

Using the mistral_proxy_route_mistral_endpoint_get_2_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(Object, Integer, Hash)> mistral_proxy_route_mistral_endpoint_get_2_with_http_info(endpoint)

begin
  # Mistral Proxy Route
  data, status_code, headers = api_instance.mistral_proxy_route_mistral_endpoint_get_2_with_http_info(endpoint)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => Object
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_2_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
endpoint String

Return type

Object

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

mistral_proxy_route_mistral_endpoint_get_3

Object mistral_proxy_route_mistral_endpoint_get_3(endpoint)

Mistral Proxy Route

Docs

Examples

require 'time'
require 'litellm_client'
# setup authorization
LiteLLMClient.configure do |config|
  # Configure API key authorization: APIKeyHeader
  config.api_key['x-litellm-api-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-litellm-api-key'] = 'Bearer'
end

api_instance = LiteLLMClient::MistralPassThroughApi.new
endpoint = 'endpoint_example' # String | 

begin
  # Mistral Proxy Route
  result = api_instance.mistral_proxy_route_mistral_endpoint_get_3(endpoint)
  p result
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_3: #{e}"
end

Using the mistral_proxy_route_mistral_endpoint_get_3_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(Object, Integer, Hash)> mistral_proxy_route_mistral_endpoint_get_3_with_http_info(endpoint)

begin
  # Mistral Proxy Route
  data, status_code, headers = api_instance.mistral_proxy_route_mistral_endpoint_get_3_with_http_info(endpoint)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => Object
rescue LiteLLMClient::ApiError => e
  puts "Error when calling MistralPassThroughApi->mistral_proxy_route_mistral_endpoint_get_3_with_http_info: #{e}"
end

Parameters

Name Type Description Notes
endpoint String

Return type

Object

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json