diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-06 12:23:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-06 12:23:58 +0200 |
commit | 5db96406dd142b9a84d459ab45a10465bdb61740 (patch) | |
tree | eb7d4844047d6bd8560aa4032a6f3cf9f5cb82ec /etc | |
parent | Update client.md (diff) | |
parent | Update README.md (diff) | |
download | gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.gz gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.bz2 gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.lz gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.xz gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.tar.zst gpt4free-5db96406dd142b9a84d459ab45a10465bdb61740.zip |
Diffstat (limited to 'etc')
-rw-r--r-- | etc/tool/contributers.py | 6 | ||||
-rw-r--r-- | etc/unittest/integration.py | 4 |
2 files changed, 8 insertions, 2 deletions
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'<a href="https://github.com/{user["login"]}" target="_blank"><img src="{user["avatar_url"]}&s=45" width="45" title="{user["login"]}"></a>')
\ 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): |