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/inline_response_200.rb,
lib/azure_openai_client/models/error_response_error.rb,
lib/azure_openai_client/models/chat_completions_body.rb,
lib/azure_openai_client/models/inline_response_200_1.rb,
lib/azure_openai_client/models/inline_response_200_2.rb,
lib/azure_openai_client/models/inline_response_200_usage.rb,
lib/azure_openai_client/models/inline_response_200_1_data.rb,
lib/azure_openai_client/models/inline_response_200_1_usage.rb,
lib/azure_openai_client/models/inline_response_200_2_usage.rb,
lib/azure_openai_client/models/inline_response_200_choices.rb,
lib/azure_openai_client/models/deploymentid_embeddings_body.rb,
lib/azure_openai_client/models/inline_response_200_logprobs.rb,
lib/azure_openai_client/models/deploymentid_completions_body.rb,
lib/azure_openai_client/models/inline_response_200_2_choices.rb,
lib/azure_openai_client/models/inline_response_200_2_message.rb,
lib/azure_openai_client/models/one_ofchat_completions_body_stop.rb,
lib/azure_openai_client/models/one_ofdeploymentid_completions_body_stop.rb,
lib/azure_openai_client/models/one_ofdeploymentid_completions_body_prompt.rb,
lib/azure_openai_client/models/deploymentsdeploymentidchatcompletions_messages.rb
Overview
#Azure OpenAI Service API
#Azure OpenAI APIs for completions and search
OpenAPI spec version: 2023-05-15
Generated by: github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 3.0.42
Defined Under Namespace
Classes: ApiClient, ApiError, ChatCompletionsBody, Configuration, DefaultApi, DeploymentidCompletionsBody, DeploymentidEmbeddingsBody, DeploymentsdeploymentidchatcompletionsMessages, ErrorResponse, ErrorResponseError, InlineResponse200, InlineResponse2001, InlineResponse2001Data, InlineResponse2001Usage, InlineResponse2002, InlineResponse2002Choices, InlineResponse2002Message, InlineResponse2002Usage, InlineResponse200Choices, InlineResponse200Logprobs, InlineResponse200Usage, OneOfchatCompletionsBodyStop, OneOfdeploymentidCompletionsBodyPrompt, OneOfdeploymentidCompletionsBodyStop
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
-
.configure ⇒ Object
Customize default settings for the SDK using block.
Class Method Details
.configure ⇒ Object
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 |