From 0c4d218c2c10da460a79d1547412de87937ba8c2 Mon Sep 17 00:00:00 2001 From: abc <98614666+xtekky@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:51:35 +0100 Subject: . --- etc/unittest/integration.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'etc/unittest/integration.py') diff --git a/etc/unittest/integration.py b/etc/unittest/integration.py index d8fc41d0..af7494e2 100644 --- a/etc/unittest/integration.py +++ b/etc/unittest/integration.py @@ -8,7 +8,7 @@ except ImportError: has_nest_asyncio = False from g4f.client import Client, ChatCompletion -from g4f.Provider import Bing, OpenaiChat, DuckDuckGo +from g4f.Provider import Bing, OpenaiChat DEFAULT_MESSAGES = [{"role": "system", "content": 'Response in json, Example: {"success": false}'}, {"role": "user", "content": "Say success true in json"}] @@ -25,13 +25,6 @@ class TestProviderIntegration(unittest.TestCase): self.assertIsInstance(response, ChatCompletion) self.assertIn("success", json.loads(response.choices[0].message.content)) - def test_duckduckgo(self): - self.skipTest("Not working") - client = Client(provider=DuckDuckGo) - response = client.chat.completions.create(DEFAULT_MESSAGES, "", response_format={"type": "json_object"}) - self.assertIsInstance(response, ChatCompletion) - self.assertIn("success", json.loads(response.choices[0].message.content)) - def test_openai(self): self.skipTest("not working in this network") client = Client(provider=OpenaiChat) -- cgit v1.2.3