summaryrefslogtreecommitdiffstats
path: root/etc/unittest/integration.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-06 10:47:43 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-06 10:47:43 +0200
commit0de9ca20044ced84c12fbcf3b6de90ac193025e4 (patch)
tree68b4041d0f7f1ce93e5d4e06f3cf89a5651911fd /etc/unittest/integration.py
parentUpdate client.md (diff)
downloadgpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.gz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.bz2
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.lz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.xz
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.tar.zst
gpt4free-0de9ca20044ced84c12fbcf3b6de90ac193025e4.zip
Diffstat (limited to '')
-rw-r--r--etc/unittest/integration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/unittest/integration.py b/etc/unittest/integration.py
index 36f09c0e..f69d4770 100644
--- a/etc/unittest/integration.py
+++ b/etc/unittest/integration.py
@@ -4,13 +4,13 @@ import json
try:
import nest_asyncio
has_nest_asyncio = True
-except:
+except ImportError:
has_nest_asyncio = False
from g4f.client import Client, ChatCompletion
from g4f.Provider import Bing, OpenaiChat
-DEFAULT_MESSAGES = [{"role": "system", "content": 'Response in json, Example: {"success: True"}'},
+DEFAULT_MESSAGES = [{"role": "system", "content": 'Response in json, Example: {"success: true"}'},
{"role": "user", "content": "Say success true in json"}]
class TestProviderIntegration(unittest.TestCase):