diff options
author | abc <98614666+xtekky@users.noreply.github.com> | 2023-09-23 02:30:45 +0200 |
---|---|---|
committer | abc <98614666+xtekky@users.noreply.github.com> | 2023-09-23 02:30:45 +0200 |
commit | 66e76604941cd27a924cf2569717ad20003dbcbd (patch) | |
tree | a661cd2a93e8d978f5fa74a477592af323663d43 /tool/readme_table.py | |
parent | ~ | Update models list (diff) | |
download | gpt4free-66e76604941cd27a924cf2569717ad20003dbcbd.tar gpt4free-66e76604941cd27a924cf2569717ad20003dbcbd.tar.gz gpt4free-66e76604941cd27a924cf2569717ad20003dbcbd.tar.bz2 gpt4free-66e76604941cd27a924cf2569717ad20003dbcbd.tar.lz gpt4free-66e76604941cd27a924cf2569717ad20003dbcbd.tar.xz gpt4free-66e76604941cd27a924cf2569717ad20003dbcbd.tar.zst gpt4free-66e76604941cd27a924cf2569717ad20003dbcbd.zip |
Diffstat (limited to '')
-rw-r--r-- | tool/readme_table.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tool/readme_table.py b/tool/readme_table.py index 4351c036..b5b64cb1 100644 --- a/tool/readme_table.py +++ b/tool/readme_table.py @@ -74,7 +74,7 @@ def print_providers(): ] providers = get_providers() - #responses = asyncio.run(test_async_list(providers)) + responses = asyncio.run(test_async_list(providers)) for is_working in (True, False): for idx, _provider in enumerate(providers): @@ -94,10 +94,10 @@ def print_providers(): can_async = "✔️" if issubclass(_provider, AsyncProvider) else "❌" if _provider.working: status = '![Active](https://img.shields.io/badge/Active-brightgreen)' - # if responses[idx]: - # status = '![Active](https://img.shields.io/badge/Active-brightgreen)' - # else: - # status = '![Unknown](https://img.shields.io/badge/Unknown-grey)' + if responses[idx]: + status = '![Active](https://img.shields.io/badge/Active-brightgreen)' + else: + status = '![Unknown](https://img.shields.io/badge/Unknown-grey)' else: status = '![Inactive](https://img.shields.io/badge/Inactive-red)' auth = "✔️" if _provider.needs_auth else "❌" @@ -151,8 +151,8 @@ def get_models(): if __name__ == "__main__": - # print_imports() - # print_async() + print_imports() + print_async() print_providers() - # print("\n", "-" * 50, "\n") - # print_models()
\ No newline at end of file + print("\n", "-" * 50, "\n") + print_models()
\ No newline at end of file |