summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Llama2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Llama2.py b/g4f/Provider/Llama2.py
index 6d0c0a44..17969621 100644
--- a/g4f/Provider/Llama2.py
+++ b/g4f/Provider/Llama2.py
@@ -62,7 +62,7 @@ class Llama2(AsyncGeneratorProvider):
if not started:
chunk = chunk.lstrip()
started = True
- yield chunk.decode()
+ yield chunk.decode(errors="ignore")
def format_prompt(messages: Messages):
messages = [
@@ -71,4 +71,4 @@ def format_prompt(messages: Messages):
else message["content"]
for message in messages
]
- return "\n".join(messages) + "\n" \ No newline at end of file
+ return "\n".join(messages) + "\n"