File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
test/components/generators/chat Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -151,23 +151,6 @@ def test_init_with_parameters_and_env_vars(self, monkeypatch):
151151 assert component .client .timeout == 100.0
152152 assert component .client .max_retries == 10
153153
154- def test_init_should_also_create_async_client_with_same_args (self , monkeypatch ):
155- monkeypatch .setenv ("OPENAI_API_KEY" , "test-api-key" )
156- component = OpenAIChatGenerator (
157- api_key = Secret .from_token ("test-api-key" ),
158- api_base_url = "test-base-url" ,
159- organization = "test-organization" ,
160- timeout = 30 ,
161- max_retries = 5 ,
162- )
163-
164- assert isinstance (component .async_client , AsyncOpenAI )
165- assert component .async_client .api_key == "test-api-key"
166- assert component .async_client .organization == "test-organization"
167- assert component .async_client .base_url == "test-base-url/"
168- assert component .async_client .timeout == 30
169- assert component .async_client .max_retries == 5
170-
171154 def test_to_dict_default (self , monkeypatch ):
172155 monkeypatch .setenv ("OPENAI_API_KEY" , "test-api-key" )
173156 component = OpenAIChatGenerator ()
You can’t perform that action at this time.
0 commit comments