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

XFEstudio/gpt4free

Update update.sh

864e4174
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +5 -6
Modified docker/update.sh +4 -5
@@ -4,11 +4,10 @@ control_c() {
4 4 exit
5 5 }
6 6
7 trap control_c SIGINT
8
9 while true ; do
10 python -m etc.tool.update
11 sleep 600 | while read line ; do
7 while :
8 do
9 python -m etc.tool.update
10 sleep 600 | while read line ; do
12 11 PID=$!
13 12 echo $line
14 13 done
Modified g4f/Provider/needs_auth/LMArenaBeta.py +1 -1
@@ -107,7 +107,7 @@ class LMArenaBeta(AsyncGeneratorProvider, ProviderModelMixin, AuthFileMixin):
107 107 await asyncio.sleep(1)
108 108 args = await get_args_from_nodriver(cls.url, proxy=proxy, callback=callback)
109 109 except (RuntimeError, FileNotFoundError) as e:
110 debug.log(f"Nodriver is not available: {type(e).__name__}: {e}")
110 debug.log(f"Nodriver is not available:", e)
111 111 args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"}
112 112 else:
113 113 args = {"headers": DEFAULT_HEADERS, "cookies": {}, "impersonate": "chrome"}