summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Ails.py
diff options
context:
space:
mode:
authorzengrr <47846202+zeng-rr@users.noreply.github.com>2023-08-25 04:07:48 +0200
committerzengrr <47846202+zeng-rr@users.noreply.github.com>2023-08-25 04:07:48 +0200
commit38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20 (patch)
tree5d18a00fa87183b6381471f9f1fc27298040ff08 /g4f/Provider/Ails.py
parentAils throw the contents of an error response (diff)
downloadgpt4free-38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20.tar
gpt4free-38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20.tar.gz
gpt4free-38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20.tar.bz2
gpt4free-38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20.tar.lz
gpt4free-38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20.tar.xz
gpt4free-38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20.tar.zst
gpt4free-38abb0a0b0a7f2e92dd5d19cee5374cc5a166f20.zip
Diffstat (limited to 'g4f/Provider/Ails.py')
-rw-r--r--g4f/Provider/Ails.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/Ails.py b/g4f/Provider/Ails.py
index 806544b4..6665b677 100644
--- a/g4f/Provider/Ails.py
+++ b/g4f/Provider/Ails.py
@@ -72,7 +72,7 @@ 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():
+ if "ai.ls" in token.lower() or "ai.ci" in token.lower():
raise Exception("Response Error: " + token)
if token != None:
yield token