diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2024-06-11 16:51:35 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2024-06-11 16:51:35 +0200 |
commit | 0c4d218c2c10da460a79d1547412de87937ba8c2 (patch) | |
tree | ce2fb9629d7b9e2bb23da8d4fdf7e4b9ee52a5af | |
parent | requested removal of DuckDuckGo (diff) | |
download | gpt4free-0c4d218c2c10da460a79d1547412de87937ba8c2.tar gpt4free-0c4d218c2c10da460a79d1547412de87937ba8c2.tar.gz gpt4free-0c4d218c2c10da460a79d1547412de87937ba8c2.tar.bz2 gpt4free-0c4d218c2c10da460a79d1547412de87937ba8c2.tar.lz gpt4free-0c4d218c2c10da460a79d1547412de87937ba8c2.tar.xz gpt4free-0c4d218c2c10da460a79d1547412de87937ba8c2.tar.zst gpt4free-0c4d218c2c10da460a79d1547412de87937ba8c2.zip |
Diffstat (limited to '')
-rw-r--r-- | etc/unittest/integration.py | 9 |
1 files changed, 1 insertions, 8 deletions
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) |