summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Ails.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-08-25 18:17:38 +0200
committerGitHub <noreply@github.com>2023-08-25 18:17:38 +0200
commit80f85e851e384e27d07252199f7d0b424b2d1193 (patch)
tree2c6323a6acba8bf830d5ba49895c831523e23b08 /g4f/Provider/Ails.py
parentMerge pull request #833 from hlohaus/bing (diff)
parentAils Supplementary Identification of Unusual Response Content (diff)
downloadgpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar
gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.gz
gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.bz2
gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.lz
gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.xz
gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.tar.zst
gpt4free-80f85e851e384e27d07252199f7d0b424b2d1193.zip
Diffstat (limited to 'g4f/Provider/Ails.py')
-rw-r--r--g4f/Provider/Ails.py2
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