azure_openai_client 0.0.1 → 0.0.2
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 +4 -4
- data/Gemfile +10 -0
- data/Gemfile.lock +76 -0
- data/README.md +50 -87
- data/Rakefile +10 -0
- data/azure_openai_client.gemspec +38 -0
- data/docs/ChatCompletionsCreate200Response.md +28 -0
- data/docs/ChatCompletionsCreate200ResponseChoicesInner.md +22 -0
- data/docs/ChatCompletionsCreate200ResponseChoicesInnerMessage.md +20 -0
- data/docs/ChatCompletionsCreate200ResponseUsage.md +22 -0
- data/docs/ChatCompletionsCreateRequest.md +38 -0
- data/docs/ChatCompletionsCreateRequestMessagesInner.md +22 -0
- data/docs/ChatCompletionsCreateRequestStop.md +49 -0
- data/docs/CompletionsCreate200Response.md +28 -0
- data/docs/CompletionsCreate200ResponseChoicesInner.md +24 -0
- data/docs/CompletionsCreate200ResponseChoicesInnerLogprobs.md +24 -0
- data/docs/CompletionsCreate200ResponseUsage.md +22 -0
- data/docs/CompletionsCreateRequest.md +52 -0
- data/docs/CompletionsCreateRequestPrompt.md +49 -0
- data/docs/CompletionsCreateRequestStop.md +49 -0
- data/docs/DefaultApi.md +238 -0
- data/docs/EmbeddingsCreate200Response.md +24 -0
- data/docs/EmbeddingsCreate200ResponseDataInner.md +22 -0
- data/docs/EmbeddingsCreate200ResponseUsage.md +20 -0
- data/docs/EmbeddingsCreateRequest.md +24 -0
- data/docs/EmbeddingsCreateRequestInput.md +49 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/ErrorResponseError.md +24 -0
- data/git_push.sh +57 -0
- data/inference.json +816 -0
- data/lib/azure_openai_client/api/default_api.rb +120 -93
- data/lib/azure_openai_client/api_client.rb +77 -75
- data/lib/azure_openai_client/api_error.rb +5 -5
- data/lib/azure_openai_client/configuration.rb +114 -22
- data/lib/azure_openai_client/models/{inline_response_200_2.rb → chat_completions_create200_response.rb} +34 -26
- data/lib/azure_openai_client/models/{inline_response_200_2_choices.rb → chat_completions_create200_response_choices_inner.rb} +28 -20
- data/lib/azure_openai_client/models/{inline_response_200_2_message.rb → chat_completions_create200_response_choices_inner_message.rb} +28 -20
- data/lib/azure_openai_client/models/{inline_response_200_2_usage.rb → chat_completions_create200_response_usage.rb} +28 -20
- data/lib/azure_openai_client/models/{chat_completions_body.rb → chat_completions_create_request.rb} +183 -37
- data/lib/azure_openai_client/models/{deploymentsdeploymentidchatcompletions_messages.rb → chat_completions_create_request_messages_inner.rb} +30 -22
- data/lib/azure_openai_client/models/chat_completions_create_request_stop.rb +105 -0
- data/lib/azure_openai_client/models/{inline_response_200.rb → completions_create200_response.rb} +34 -26
- data/lib/azure_openai_client/models/{inline_response_200_choices.rb → completions_create200_response_choices_inner.rb} +30 -22
- data/lib/azure_openai_client/models/{inline_response_200_logprobs.rb → completions_create200_response_choices_inner_logprobs.rb} +30 -22
- data/lib/azure_openai_client/models/{inline_response_200_usage.rb → completions_create200_response_usage.rb} +28 -20
- data/lib/azure_openai_client/models/{deploymentid_completions_body.rb → completions_create_request.rb} +58 -52
- data/lib/azure_openai_client/models/completions_create_request_prompt.rb +105 -0
- data/lib/azure_openai_client/models/completions_create_request_stop.rb +105 -0
- data/lib/azure_openai_client/models/{inline_response_200_1.rb → embeddings_create200_response.rb} +30 -22
- data/lib/azure_openai_client/models/{inline_response_200_1_data.rb → embeddings_create200_response_data_inner.rb} +28 -20
- data/lib/azure_openai_client/models/{inline_response_200_1_usage.rb → embeddings_create200_response_usage.rb} +26 -18
- data/lib/azure_openai_client/models/embeddings_create_request.rb +252 -0
- data/lib/azure_openai_client/models/embeddings_create_request_input.rb +105 -0
- data/lib/azure_openai_client/models/error_response.rb +21 -13
- data/lib/azure_openai_client/models/error_response_error.rb +27 -19
- data/lib/azure_openai_client/version.rb +5 -6
- data/lib/azure_openai_client.rb +23 -23
- data/openapi-codegen.sh +12 -0
- data/openapi_config.yaml +14 -0
- data/spec/api/default_api_spec.rb +21 -22
- data/spec/api_client_spec.rb +15 -16
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/chat_completions_create200_response_choices_inner_message_spec.rb +44 -0
- data/spec/models/chat_completions_create200_response_choices_inner_spec.rb +46 -0
- data/spec/models/chat_completions_create200_response_spec.rb +64 -0
- data/spec/models/chat_completions_create200_response_usage_spec.rb +46 -0
- data/spec/models/chat_completions_create_request_messages_inner_spec.rb +50 -0
- data/spec/models/chat_completions_create_request_spec.rb +94 -0
- data/spec/models/chat_completions_create_request_stop_spec.rb +31 -0
- data/spec/models/completions_create200_response_choices_inner_logprobs_spec.rb +52 -0
- data/spec/models/completions_create200_response_choices_inner_spec.rb +52 -0
- data/spec/models/completions_create200_response_spec.rb +64 -0
- data/spec/models/completions_create200_response_usage_spec.rb +46 -0
- data/spec/models/completions_create_request_prompt_spec.rb +31 -0
- data/spec/models/completions_create_request_spec.rb +136 -0
- data/spec/models/completions_create_request_stop_spec.rb +31 -0
- data/spec/models/embeddings_create200_response_data_inner_spec.rb +46 -0
- data/spec/models/embeddings_create200_response_spec.rb +52 -0
- data/spec/models/embeddings_create200_response_usage_spec.rb +40 -0
- data/spec/models/embeddings_create_request_input_spec.rb +31 -0
- data/spec/models/embeddings_create_request_spec.rb +52 -0
- data/spec/models/error_response_error_spec.rb +12 -20
- data/spec/models/error_response_spec.rb +9 -17
- data/spec/spec_helper.rb +4 -5
- metadata +91 -77
- data/lib/azure_openai_client/models/deploymentid_embeddings_body.rb +0 -202
- data/lib/azure_openai_client/models/one_ofchat_completions_body_stop.rb +0 -198
- data/lib/azure_openai_client/models/one_ofdeploymentid_completions_body_prompt.rb +0 -198
- data/lib/azure_openai_client/models/one_ofdeploymentid_completions_body_stop.rb +0 -198
- data/spec/models/chat_completions_body_spec.rb +0 -102
- data/spec/models/deploymentid_completions_body_spec.rb +0 -144
- data/spec/models/deploymentid_embeddings_body_spec.rb +0 -36
- data/spec/models/deploymentsdeploymentidchatcompletions_messages_spec.rb +0 -58
- data/spec/models/inline_response_200_1_data_spec.rb +0 -54
- data/spec/models/inline_response_200_1_spec.rb +0 -60
- data/spec/models/inline_response_200_1_usage_spec.rb +0 -48
- data/spec/models/inline_response_200_2_choices_spec.rb +0 -54
- data/spec/models/inline_response_200_2_message_spec.rb +0 -52
- data/spec/models/inline_response_200_2_spec.rb +0 -72
- data/spec/models/inline_response_200_2_usage_spec.rb +0 -54
- data/spec/models/inline_response_200_choices_spec.rb +0 -60
- data/spec/models/inline_response_200_logprobs_spec.rb +0 -60
- data/spec/models/inline_response_200_spec.rb +0 -72
- data/spec/models/inline_response_200_usage_spec.rb +0 -54
- data/spec/models/one_ofchat_completions_body_stop_spec.rb +0 -36
- data/spec/models/one_ofdeploymentid_completions_body_prompt_spec.rb +0 -36
- data/spec/models/one_ofdeploymentid_completions_body_stop_spec.rb +0 -36
@@ -1,58 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::DeploymentsdeploymentidchatcompletionsMessages
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'DeploymentsdeploymentidchatcompletionsMessages' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::DeploymentsdeploymentidchatcompletionsMessages.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of DeploymentsdeploymentidchatcompletionsMessages' do
|
32
|
-
it 'should create an instance of DeploymentsdeploymentidchatcompletionsMessages' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::DeploymentsdeploymentidchatcompletionsMessages)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "role"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system", "user", "assistant"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { @instance.role = value }.not_to raise_error
|
42
|
-
# end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
describe 'test attribute "content"' do
|
47
|
-
it 'should work' do
|
48
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
describe 'test attribute "name"' do
|
53
|
-
it 'should work' do
|
54
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse2001Data
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse2001Data' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse2001Data.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse2001Data' do
|
32
|
-
it 'should create an instance of InlineResponse2001Data' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse2001Data)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "index"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "object"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "embedding"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse2001
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse2001' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse2001.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse2001' do
|
32
|
-
it 'should create an instance of InlineResponse2001' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse2001)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "object"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "model"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "data"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe 'test attribute "usage"' do
|
55
|
-
it 'should work' do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse2001Usage
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse2001Usage' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse2001Usage.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse2001Usage' do
|
32
|
-
it 'should create an instance of InlineResponse2001Usage' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse2001Usage)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "prompt_tokens"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "total_tokens"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse2002Choices
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse2002Choices' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse2002Choices.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse2002Choices' do
|
32
|
-
it 'should create an instance of InlineResponse2002Choices' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse2002Choices)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "index"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "message"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "finish_reason"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse2002Message
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse2002Message' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse2002Message.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse2002Message' do
|
32
|
-
it 'should create an instance of InlineResponse2002Message' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse2002Message)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "role"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system", "user", "assistant"])
|
40
|
-
# validator.allowable_values.each do |value|
|
41
|
-
# expect { @instance.role = value }.not_to raise_error
|
42
|
-
# end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
describe 'test attribute "content"' do
|
47
|
-
it 'should work' do
|
48
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse2002
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse2002' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse2002.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse2002' do
|
32
|
-
it 'should create an instance of InlineResponse2002' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse2002)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "id"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "object"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "created"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe 'test attribute "model"' do
|
55
|
-
it 'should work' do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
describe 'test attribute "choices"' do
|
61
|
-
it 'should work' do
|
62
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
describe 'test attribute "usage"' do
|
67
|
-
it 'should work' do
|
68
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse2002Usage
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse2002Usage' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse2002Usage.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse2002Usage' do
|
32
|
-
it 'should create an instance of InlineResponse2002Usage' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse2002Usage)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "prompt_tokens"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "completion_tokens"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "total_tokens"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse200Choices
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse200Choices' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse200Choices.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse200Choices' do
|
32
|
-
it 'should create an instance of InlineResponse200Choices' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse200Choices)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "text"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "index"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "logprobs"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe 'test attribute "finish_reason"' do
|
55
|
-
it 'should work' do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse200Logprobs
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse200Logprobs' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse200Logprobs.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse200Logprobs' do
|
32
|
-
it 'should create an instance of InlineResponse200Logprobs' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse200Logprobs)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "tokens"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "token_logprobs"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "top_logprobs"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe 'test attribute "text_offset"' do
|
55
|
-
it 'should work' do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Azure OpenAI Service API
|
5
|
-
|
6
|
-
#Azure OpenAI APIs for completions and search
|
7
|
-
|
8
|
-
OpenAPI spec version: 2023-05-15
|
9
|
-
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
-
Swagger Codegen version: 3.0.42
|
12
|
-
=end
|
13
|
-
|
14
|
-
require 'spec_helper'
|
15
|
-
require 'json'
|
16
|
-
require 'date'
|
17
|
-
|
18
|
-
# Unit tests for AzureOpenaiClient::InlineResponse200
|
19
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
-
# Please update as you see appropriate
|
21
|
-
describe 'InlineResponse200' do
|
22
|
-
before do
|
23
|
-
# run before each test
|
24
|
-
@instance = AzureOpenaiClient::InlineResponse200.new
|
25
|
-
end
|
26
|
-
|
27
|
-
after do
|
28
|
-
# run after each test
|
29
|
-
end
|
30
|
-
|
31
|
-
describe 'test an instance of InlineResponse200' do
|
32
|
-
it 'should create an instance of InlineResponse200' do
|
33
|
-
expect(@instance).to be_instance_of(AzureOpenaiClient::InlineResponse200)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
describe 'test attribute "id"' do
|
37
|
-
it 'should work' do
|
38
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
describe 'test attribute "object"' do
|
43
|
-
it 'should work' do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
describe 'test attribute "created"' do
|
49
|
-
it 'should work' do
|
50
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe 'test attribute "model"' do
|
55
|
-
it 'should work' do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
describe 'test attribute "choices"' do
|
61
|
-
it 'should work' do
|
62
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
describe 'test attribute "usage"' do
|
67
|
-
it 'should work' do
|
68
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
end
|