diff options
author | Tekky <98614666+xtekky@users.noreply.github.com> | 2023-08-25 18:22:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 18:22:25 +0200 |
commit | 473ac1450ae09cd59c7dc818a4bb272ed5640610 (patch) | |
tree | 60052aad3746053eb4aec5b7e44d75404f4d11fe /g4f/Provider/Ails.py | |
parent | Remove judge function (diff) | |
parent | ~ | Merge pull request #841 (diff) | |
download | gpt4free-473ac1450ae09cd59c7dc818a4bb272ed5640610.tar gpt4free-473ac1450ae09cd59c7dc818a4bb272ed5640610.tar.gz gpt4free-473ac1450ae09cd59c7dc818a4bb272ed5640610.tar.bz2 gpt4free-473ac1450ae09cd59c7dc818a4bb272ed5640610.tar.lz gpt4free-473ac1450ae09cd59c7dc818a4bb272ed5640610.tar.xz gpt4free-473ac1450ae09cd59c7dc818a4bb272ed5640610.tar.zst gpt4free-473ac1450ae09cd59c7dc818a4bb272ed5640610.zip |
Diffstat (limited to 'g4f/Provider/Ails.py')
-rw-r--r-- | g4f/Provider/Ails.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g4f/Provider/Ails.py b/g4f/Provider/Ails.py index 52b3745d..6665b677 100644 --- a/g4f/Provider/Ails.py +++ b/g4f/Provider/Ails.py @@ -72,6 +72,8 @@ class Ails(BaseProvider): if b"content" in token: completion_chunk = json.loads(token.decode().replace("data: ", "")) token = completion_chunk["choices"][0]["delta"].get("content") + if "ai.ls" in token.lower() or "ai.ci" in token.lower(): + raise Exception("Response Error: " + token) if token != None: yield token |