From 0de9ca20044ced84c12fbcf3b6de90ac193025e4 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 6 Apr 2024 10:47:43 +0200 Subject: Add Installation Guide for Windows Improve Contributors list in Readme --- etc/tool/contributers.py | 6 ++++++ etc/unittest/integration.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 etc/tool/contributers.py (limited to 'etc') diff --git a/etc/tool/contributers.py b/etc/tool/contributers.py new file mode 100644 index 00000000..76fa461d --- /dev/null +++ b/etc/tool/contributers.py @@ -0,0 +1,6 @@ +import requests + +url = "https://api.github.com/repos/xtekky/gpt4free/contributors" + +for user in requests.get(url).json(): + print(f'') \ No newline at end of file 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): -- cgit v1.2.3