mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-15 14:51:19 -08:00
Add show log option to gui
This commit is contained in:
parent
7f1b8c9c60
commit
8f3fbee0d8
10 changed files with 96 additions and 46 deletions
|
|
@ -11,7 +11,7 @@ class CloudflareError(ResponseStatusError):
|
|||
...
|
||||
|
||||
def is_cloudflare(text: str) -> bool:
|
||||
if "<title>Attention Required! | Cloudflare</title>" in text:
|
||||
if "<title>Attention Required! | Cloudflare</title>" in text or 'id="cf-cloudflare-status"' in text:
|
||||
return True
|
||||
return '<div id="cf-please-wait">' in text or "<title>Just a moment...</title>" in text
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue