XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

~

66e76604
abc <98614666+xtekky@users.noreply.github.com>
提交于

代码差异

1 个文件 +9 -9
Modified tool/readme_table.py +9 -9
@@ -74,7 +74,7 @@ def print_providers():
74 74 ]
75 75
76 76 providers = get_providers()
77 #responses = asyncio.run(test_async_list(providers))
77 responses = asyncio.run(test_async_list(providers))
78 78
79 79 for is_working in (True, False):
80 80 for idx, _provider in enumerate(providers):
@@ -94,10 +94,10 @@ def print_providers():
94 94 can_async = "✔️" if issubclass(_provider, AsyncProvider) else "❌"
95 95 if _provider.working:
96 96 status = '![Active](https://img.shields.io/badge/Active-brightgreen)'
97 # if responses[idx]:
98 # status = '![Active](https://img.shields.io/badge/Active-brightgreen)'
99 # else:
100 # status = '![Unknown](https://img.shields.io/badge/Unknown-grey)'
97 if responses[idx]:
98 status = '![Active](https://img.shields.io/badge/Active-brightgreen)'
99 else:
100 status = '![Unknown](https://img.shields.io/badge/Unknown-grey)'
101 101 else:
102 102 status = '![Inactive](https://img.shields.io/badge/Inactive-red)'
103 103 auth = "✔️" if _provider.needs_auth else "❌"
@@ -151,8 +151,8 @@ def get_models():
151 151
152 152
153 153 if __name__ == "__main__":
154 # print_imports()
155 # print_async()
154 print_imports()
155 print_async()
156 156 print_providers()
157 # print("\n", "-" * 50, "\n")
158 # print_models()
157 print("\n", "-" * 50, "\n")
158 print_models()