summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorzengrr <47846202+zeng-rr@users.noreply.github.com>2023-08-23 13:36:30 +0200
committerzengrr <47846202+zeng-rr@users.noreply.github.com>2023-08-23 13:36:30 +0200
commit1ed448e584092e151212b1d511fd2cbec133064b (patch)
treed2f1b71fa1104a74b3e4d44182c89ca84a6b976a /g4f/Provider
parentfix Yqcloud's prompter using only the last message (diff)
downloadgpt4free-1ed448e584092e151212b1d511fd2cbec133064b.tar
gpt4free-1ed448e584092e151212b1d511fd2cbec133064b.tar.gz
gpt4free-1ed448e584092e151212b1d511fd2cbec133064b.tar.bz2
gpt4free-1ed448e584092e151212b1d511fd2cbec133064b.tar.lz
gpt4free-1ed448e584092e151212b1d511fd2cbec133064b.tar.xz
gpt4free-1ed448e584092e151212b1d511fd2cbec133064b.tar.zst
gpt4free-1ed448e584092e151212b1d511fd2cbec133064b.zip
Diffstat (limited to 'g4f/Provider')
-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..806544b4 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".lower() in token.lower():
+ raise Exception("Response Error: " + token)
if token != None:
yield token