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.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +76 -0
  4. data/README.md +50 -87
  5. data/Rakefile +10 -0
  6. data/azure_openai_client.gemspec +38 -0
  7. data/docs/ChatCompletionsCreate200Response.md +28 -0
  8. data/docs/ChatCompletionsCreate200ResponseChoicesInner.md +22 -0
  9. data/docs/ChatCompletionsCreate200ResponseChoicesInnerMessage.md +20 -0
  10. data/docs/ChatCompletionsCreate200ResponseUsage.md +22 -0
  11. data/docs/ChatCompletionsCreateRequest.md +38 -0
  12. data/docs/ChatCompletionsCreateRequestMessagesInner.md +22 -0
  13. data/docs/ChatCompletionsCreateRequestStop.md +49 -0
  14. data/docs/CompletionsCreate200Response.md +28 -0
  15. data/docs/CompletionsCreate200ResponseChoicesInner.md +24 -0
  16. data/docs/CompletionsCreate200ResponseChoicesInnerLogprobs.md +24 -0
  17. data/docs/CompletionsCreate200ResponseUsage.md +22 -0
  18. data/docs/CompletionsCreateRequest.md +52 -0
  19. data/docs/CompletionsCreateRequestPrompt.md +49 -0
  20. data/docs/CompletionsCreateRequestStop.md +49 -0
  21. data/docs/DefaultApi.md +238 -0
  22. data/docs/EmbeddingsCreate200Response.md +24 -0
  23. data/docs/EmbeddingsCreate200ResponseDataInner.md +22 -0
  24. data/docs/EmbeddingsCreate200ResponseUsage.md +20 -0
  25. data/docs/EmbeddingsCreateRequest.md +24 -0
  26. data/docs/EmbeddingsCreateRequestInput.md +49 -0
  27. data/docs/ErrorResponse.md +18 -0
  28. data/docs/ErrorResponseError.md +24 -0
  29. data/git_push.sh +57 -0
  30. data/inference.json +816 -0
  31. data/lib/azure_openai_client/api/default_api.rb +120 -93
  32. data/lib/azure_openai_client/api_client.rb +77 -75
  33. data/lib/azure_openai_client/api_error.rb +5 -5
  34. data/lib/azure_openai_client/configuration.rb +114 -22
  35. data/lib/azure_openai_client/models/{inline_response_200_2.rb → chat_completions_create200_response.rb} +34 -26
  36. data/lib/azure_openai_client/models/{inline_response_200_2_choices.rb → chat_completions_create200_response_choices_inner.rb} +28 -20
  37. data/lib/azure_openai_client/models/{inline_response_200_2_message.rb → chat_completions_create200_response_choices_inner_message.rb} +28 -20
  38. data/lib/azure_openai_client/models/{inline_response_200_2_usage.rb → chat_completions_create200_response_usage.rb} +28 -20
  39. data/lib/azure_openai_client/models/{chat_completions_body.rb → chat_completions_create_request.rb} +183 -37
  40. data/lib/azure_openai_client/models/{deploymentsdeploymentidchatcompletions_messages.rb → chat_completions_create_request_messages_inner.rb} +30 -22
  41. data/lib/azure_openai_client/models/chat_completions_create_request_stop.rb +105 -0
  42. data/lib/azure_openai_client/models/{inline_response_200.rb → completions_create200_response.rb} +34 -26
  43. data/lib/azure_openai_client/models/{inline_response_200_choices.rb → completions_create200_response_choices_inner.rb} +30 -22
  44. data/lib/azure_openai_client/models/{inline_response_200_logprobs.rb → completions_create200_response_choices_inner_logprobs.rb} +30 -22
  45. data/lib/azure_openai_client/models/{inline_response_200_usage.rb → completions_create200_response_usage.rb} +28 -20
  46. data/lib/azure_openai_client/models/{deploymentid_completions_body.rb → completions_create_request.rb} +58 -52
  47. data/lib/azure_openai_client/models/completions_create_request_prompt.rb +105 -0
  48. data/lib/azure_openai_client/models/completions_create_request_stop.rb +105 -0
  49. data/lib/azure_openai_client/models/{inline_response_200_1.rb → embeddings_create200_response.rb} +30 -22
  50. data/lib/azure_openai_client/models/{inline_response_200_1_data.rb → embeddings_create200_response_data_inner.rb} +28 -20
  51. data/lib/azure_openai_client/models/{inline_response_200_1_usage.rb → embeddings_create200_response_usage.rb} +26 -18
  52. data/lib/azure_openai_client/models/embeddings_create_request.rb +252 -0
  53. data/lib/azure_openai_client/models/embeddings_create_request_input.rb +105 -0
  54. data/lib/azure_openai_client/models/error_response.rb +21 -13
  55. data/lib/azure_openai_client/models/error_response_error.rb +27 -19
  56. data/lib/azure_openai_client/version.rb +5 -6
  57. data/lib/azure_openai_client.rb +23 -23
  58. data/openapi-codegen.sh +12 -0
  59. data/openapi_config.yaml +14 -0
  60. data/spec/api/default_api_spec.rb +21 -22
  61. data/spec/api_client_spec.rb +15 -16
  62. data/spec/configuration_spec.rb +3 -3
  63. data/spec/models/chat_completions_create200_response_choices_inner_message_spec.rb +44 -0
  64. data/spec/models/chat_completions_create200_response_choices_inner_spec.rb +46 -0
  65. data/spec/models/chat_completions_create200_response_spec.rb +64 -0
  66. data/spec/models/chat_completions_create200_response_usage_spec.rb +46 -0
  67. data/spec/models/chat_completions_create_request_messages_inner_spec.rb +50 -0
  68. data/spec/models/chat_completions_create_request_spec.rb +94 -0
  69. data/spec/models/chat_completions_create_request_stop_spec.rb +31 -0
  70. data/spec/models/completions_create200_response_choices_inner_logprobs_spec.rb +52 -0
  71. data/spec/models/completions_create200_response_choices_inner_spec.rb +52 -0
  72. data/spec/models/completions_create200_response_spec.rb +64 -0
  73. data/spec/models/completions_create200_response_usage_spec.rb +46 -0
  74. data/spec/models/completions_create_request_prompt_spec.rb +31 -0
  75. data/spec/models/completions_create_request_spec.rb +136 -0
  76. data/spec/models/completions_create_request_stop_spec.rb +31 -0
  77. data/spec/models/embeddings_create200_response_data_inner_spec.rb +46 -0
  78. data/spec/models/embeddings_create200_response_spec.rb +52 -0
  79. data/spec/models/embeddings_create200_response_usage_spec.rb +40 -0
  80. data/spec/models/embeddings_create_request_input_spec.rb +31 -0
  81. data/spec/models/embeddings_create_request_spec.rb +52 -0
  82. data/spec/models/error_response_error_spec.rb +12 -20
  83. data/spec/models/error_response_spec.rb +9 -17
  84. data/spec/spec_helper.rb +4 -5
  85. metadata +91 -77
  86. data/lib/azure_openai_client/models/deploymentid_embeddings_body.rb +0 -202
  87. data/lib/azure_openai_client/models/one_ofchat_completions_body_stop.rb +0 -198
  88. data/lib/azure_openai_client/models/one_ofdeploymentid_completions_body_prompt.rb +0 -198
  89. data/lib/azure_openai_client/models/one_ofdeploymentid_completions_body_stop.rb +0 -198
  90. data/spec/models/chat_completions_body_spec.rb +0 -102
  91. data/spec/models/deploymentid_completions_body_spec.rb +0 -144
  92. data/spec/models/deploymentid_embeddings_body_spec.rb +0 -36
  93. data/spec/models/deploymentsdeploymentidchatcompletions_messages_spec.rb +0 -58
  94. data/spec/models/inline_response_200_1_data_spec.rb +0 -54
  95. data/spec/models/inline_response_200_1_spec.rb +0 -60
  96. data/spec/models/inline_response_200_1_usage_spec.rb +0 -48
  97. data/spec/models/inline_response_200_2_choices_spec.rb +0 -54
  98. data/spec/models/inline_response_200_2_message_spec.rb +0 -52
  99. data/spec/models/inline_response_200_2_spec.rb +0 -72
  100. data/spec/models/inline_response_200_2_usage_spec.rb +0 -54
  101. data/spec/models/inline_response_200_choices_spec.rb +0 -60
  102. data/spec/models/inline_response_200_logprobs_spec.rb +0 -60
  103. data/spec/models/inline_response_200_spec.rb +0 -72
  104. data/spec/models/inline_response_200_usage_spec.rb +0 -54
  105. data/spec/models/one_ofchat_completions_body_stop_spec.rb +0 -36
  106. data/spec/models/one_ofdeploymentid_completions_body_prompt_spec.rb +0 -36
  107. 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