azure_openai_client 0.0.1
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 +7 -0
- data/README.md +178 -0
- data/lib/azure_openai_client/api/default_api.rb +232 -0
- data/lib/azure_openai_client/api_client.rb +390 -0
- data/lib/azure_openai_client/api_error.rb +58 -0
- data/lib/azure_openai_client/configuration.rb +214 -0
- data/lib/azure_openai_client/models/chat_completions_body.rb +334 -0
- data/lib/azure_openai_client/models/deploymentid_completions_body.rb +406 -0
- data/lib/azure_openai_client/models/deploymentid_embeddings_body.rb +202 -0
- data/lib/azure_openai_client/models/deploymentsdeploymentidchatcompletions_messages.rb +274 -0
- data/lib/azure_openai_client/models/error_response.rb +209 -0
- data/lib/azure_openai_client/models/error_response_error.rb +236 -0
- data/lib/azure_openai_client/models/inline_response_200.rb +281 -0
- data/lib/azure_openai_client/models/inline_response_200_1.rb +258 -0
- data/lib/azure_openai_client/models/inline_response_200_1_data.rb +244 -0
- data/lib/azure_openai_client/models/inline_response_200_1_usage.rb +228 -0
- data/lib/azure_openai_client/models/inline_response_200_2.rb +281 -0
- data/lib/azure_openai_client/models/inline_response_200_2_choices.rb +227 -0
- data/lib/azure_openai_client/models/inline_response_200_2_message.rb +264 -0
- data/lib/azure_openai_client/models/inline_response_200_2_usage.rb +242 -0
- data/lib/azure_openai_client/models/inline_response_200_choices.rb +236 -0
- data/lib/azure_openai_client/models/inline_response_200_logprobs.rb +244 -0
- data/lib/azure_openai_client/models/inline_response_200_usage.rb +242 -0
- data/lib/azure_openai_client/models/one_ofchat_completions_body_stop.rb +198 -0
- data/lib/azure_openai_client/models/one_ofdeploymentid_completions_body_prompt.rb +198 -0
- data/lib/azure_openai_client/models/one_ofdeploymentid_completions_body_stop.rb +198 -0
- data/lib/azure_openai_client/version.rb +16 -0
- data/lib/azure_openai_client.rb +61 -0
- data/spec/api/default_api_spec.rb +75 -0
- data/spec/api_client_spec.rb +229 -0
- data/spec/configuration_spec.rb +78 -0
- data/spec/models/chat_completions_body_spec.rb +102 -0
- data/spec/models/deploymentid_completions_body_spec.rb +144 -0
- data/spec/models/deploymentid_embeddings_body_spec.rb +36 -0
- data/spec/models/deploymentsdeploymentidchatcompletions_messages_spec.rb +58 -0
- data/spec/models/error_response_error_spec.rb +60 -0
- data/spec/models/error_response_spec.rb +42 -0
- data/spec/models/inline_response_200_1_data_spec.rb +54 -0
- data/spec/models/inline_response_200_1_spec.rb +60 -0
- data/spec/models/inline_response_200_1_usage_spec.rb +48 -0
- data/spec/models/inline_response_200_2_choices_spec.rb +54 -0
- data/spec/models/inline_response_200_2_message_spec.rb +52 -0
- data/spec/models/inline_response_200_2_spec.rb +72 -0
- data/spec/models/inline_response_200_2_usage_spec.rb +54 -0
- data/spec/models/inline_response_200_choices_spec.rb +60 -0
- data/spec/models/inline_response_200_logprobs_spec.rb +60 -0
- data/spec/models/inline_response_200_spec.rb +72 -0
- data/spec/models/inline_response_200_usage_spec.rb +54 -0
- data/spec/models/one_ofchat_completions_body_stop_spec.rb +36 -0
- data/spec/models/one_ofdeploymentid_completions_body_prompt_spec.rb +36 -0
- data/spec/models/one_ofdeploymentid_completions_body_stop_spec.rb +36 -0
- data/spec/spec_helper.rb +112 -0
- metadata +177 -0
@@ -0,0 +1,102 @@
|
|
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::ChatCompletionsBody
|
19
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
+
# Please update as you see appropriate
|
21
|
+
describe 'ChatCompletionsBody' do
|
22
|
+
before do
|
23
|
+
# run before each test
|
24
|
+
@instance = AzureOpenaiClient::ChatCompletionsBody.new
|
25
|
+
end
|
26
|
+
|
27
|
+
after do
|
28
|
+
# run after each test
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'test an instance of ChatCompletionsBody' do
|
32
|
+
it 'should create an instance of ChatCompletionsBody' do
|
33
|
+
expect(@instance).to be_instance_of(AzureOpenaiClient::ChatCompletionsBody)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
describe 'test attribute "messages"' 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 "temperature"' 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_p"' 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 "n"' 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 "stream"' 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 "stop"' 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
|
+
describe 'test attribute "max_tokens"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "presence_penalty"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "frequency_penalty"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "logit_bias"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "user"' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
end
|
@@ -0,0 +1,144 @@
|
|
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::DeploymentidCompletionsBody
|
19
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
+
# Please update as you see appropriate
|
21
|
+
describe 'DeploymentidCompletionsBody' do
|
22
|
+
before do
|
23
|
+
# run before each test
|
24
|
+
@instance = AzureOpenaiClient::DeploymentidCompletionsBody.new
|
25
|
+
end
|
26
|
+
|
27
|
+
after do
|
28
|
+
# run after each test
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'test an instance of DeploymentidCompletionsBody' do
|
32
|
+
it 'should create an instance of DeploymentidCompletionsBody' do
|
33
|
+
expect(@instance).to be_instance_of(AzureOpenaiClient::DeploymentidCompletionsBody)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
describe 'test attribute "prompt"' 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 "max_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 "temperature"' 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 "top_p"' 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 "logit_bias"' 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 "user"' 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
|
+
describe 'test attribute "n"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "stream"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "logprobs"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "model"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "suffix"' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe 'test attribute "echo"' do
|
103
|
+
it 'should work' do
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
describe 'test attribute "stop"' do
|
109
|
+
it 'should work' do
|
110
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
describe 'test attribute "completion_config"' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
describe 'test attribute "cache_level"' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
describe 'test attribute "presence_penalty"' do
|
127
|
+
it 'should work' do
|
128
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
describe 'test attribute "frequency_penalty"' do
|
133
|
+
it 'should work' do
|
134
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe 'test attribute "best_of"' do
|
139
|
+
it 'should work' do
|
140
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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::DeploymentidEmbeddingsBody
|
19
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
+
# Please update as you see appropriate
|
21
|
+
describe 'DeploymentidEmbeddingsBody' do
|
22
|
+
before do
|
23
|
+
# run before each test
|
24
|
+
@instance = AzureOpenaiClient::DeploymentidEmbeddingsBody.new
|
25
|
+
end
|
26
|
+
|
27
|
+
after do
|
28
|
+
# run after each test
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'test an instance of DeploymentidEmbeddingsBody' do
|
32
|
+
it 'should create an instance of DeploymentidEmbeddingsBody' do
|
33
|
+
expect(@instance).to be_instance_of(AzureOpenaiClient::DeploymentidEmbeddingsBody)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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
|
@@ -0,0 +1,60 @@
|
|
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::ErrorResponseError
|
19
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
+
# Please update as you see appropriate
|
21
|
+
describe 'ErrorResponseError' do
|
22
|
+
before do
|
23
|
+
# run before each test
|
24
|
+
@instance = AzureOpenaiClient::ErrorResponseError.new
|
25
|
+
end
|
26
|
+
|
27
|
+
after do
|
28
|
+
# run after each test
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'test an instance of ErrorResponseError' do
|
32
|
+
it 'should create an instance of ErrorResponseError' do
|
33
|
+
expect(@instance).to be_instance_of(AzureOpenaiClient::ErrorResponseError)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
describe 'test attribute "code"' 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 "param"' 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 "type"' 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
|
@@ -0,0 +1,42 @@
|
|
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::ErrorResponse
|
19
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
20
|
+
# Please update as you see appropriate
|
21
|
+
describe 'ErrorResponse' do
|
22
|
+
before do
|
23
|
+
# run before each test
|
24
|
+
@instance = AzureOpenaiClient::ErrorResponse.new
|
25
|
+
end
|
26
|
+
|
27
|
+
after do
|
28
|
+
# run after each test
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'test an instance of ErrorResponse' do
|
32
|
+
it 'should create an instance of ErrorResponse' do
|
33
|
+
expect(@instance).to be_instance_of(AzureOpenaiClient::ErrorResponse)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
describe 'test attribute "error"' 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
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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
|
@@ -0,0 +1,60 @@
|
|
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
|
@@ -0,0 +1,48 @@
|
|
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
|
@@ -0,0 +1,54 @@
|
|
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
|