Module: AzureOpenaiClient

Defined in:
lib/azure_openai_client/version.rb,
lib/azure_openai_client.rb,
lib/azure_openai_client/api_error.rb,
lib/azure_openai_client/api_client.rb,
lib/azure_openai_client/configuration.rb,
lib/azure_openai_client/api/default_api.rb,
lib/azure_openai_client/models/error_response.rb,
lib/azure_openai_client/models/error_response_error.rb,
lib/azure_openai_client/models/embeddings_create_request.rb,
lib/azure_openai_client/models/completions_create_request.rb,
lib/azure_openai_client/models/embeddings_create200_response.rb,
lib/azure_openai_client/models/completions_create200_response.rb,
lib/azure_openai_client/models/chat_completions_create_request.rb,
lib/azure_openai_client/models/completions_create_request_stop.rb,
lib/azure_openai_client/models/embeddings_create_request_input.rb,
lib/azure_openai_client/models/completions_create_request_prompt.rb,
lib/azure_openai_client/models/chat_completions_create200_response.rb,
lib/azure_openai_client/models/embeddings_create200_response_usage.rb,
lib/azure_openai_client/models/chat_completions_create_request_stop.rb,
lib/azure_openai_client/models/completions_create200_response_usage.rb,
lib/azure_openai_client/models/embeddings_create200_response_data_inner.rb,
lib/azure_openai_client/models/chat_completions_create200_response_usage.rb,
lib/azure_openai_client/models/completions_create200_response_choices_inner.rb,
lib/azure_openai_client/models/chat_completions_create_request_messages_inner.rb,
lib/azure_openai_client/models/chat_completions_create200_response_choices_inner.rb,
lib/azure_openai_client/models/completions_create200_response_choices_inner_logprobs.rb,
lib/azure_openai_client/models/chat_completions_create200_response_choices_inner_message.rb

Overview

#Azure OpenAI Service API

#Azure OpenAI APIs for completions and search

The version of the OpenAPI document: 2023-05-15

Generated by: openapi-generator.tech OpenAPI Generator version: 6.6.0

Defined Under Namespace

Modules: ChatCompletionsCreateRequestStop, CompletionsCreateRequestPrompt, CompletionsCreateRequestStop, EmbeddingsCreateRequestInput Classes: ApiClient, ApiError, ChatCompletionsCreate200Response, ChatCompletionsCreate200ResponseChoicesInner, ChatCompletionsCreate200ResponseChoicesInnerMessage, ChatCompletionsCreate200ResponseUsage, ChatCompletionsCreateRequest, ChatCompletionsCreateRequestMessagesInner, CompletionsCreate200Response, CompletionsCreate200ResponseChoicesInner, CompletionsCreate200ResponseChoicesInnerLogprobs, CompletionsCreate200ResponseUsage, CompletionsCreateRequest, Configuration, DefaultApi, EmbeddingsCreate200Response, EmbeddingsCreate200ResponseDataInner, EmbeddingsCreate200ResponseUsage, EmbeddingsCreateRequest, ErrorResponse, ErrorResponseError

Constant Summary collapse

VERSION =
'0.0.4'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

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

If no block given, return the default Configuration object.



53
54
55
56
57
58
59
# File 'lib/azure_openai_client.rb', line 53

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