diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-02-09 14:24:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 14:24:15 +0100 |
commit | 5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7 (patch) | |
tree | 739dc1c020fcaff53d3f80630036b9aa2ac94f54 /g4f/Provider/Phind.py | |
parent | Merge pull request #1565 from hlohaus/gemini (diff) | |
download | gpt4free-5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7.tar gpt4free-5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7.tar.gz gpt4free-5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7.tar.bz2 gpt4free-5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7.tar.lz gpt4free-5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7.tar.xz gpt4free-5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7.tar.zst gpt4free-5c75972c50ac936cb6dc8e01cef9cdb08daa8ed7.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/Phind.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/Phind.py b/g4f/Provider/Phind.py index a7fdbeca..746dcbcc 100644 --- a/g4f/Provider/Phind.py +++ b/g4f/Provider/Phind.py @@ -67,7 +67,7 @@ class Phind(AsyncGeneratorProvider): if chunk.startswith(b'<PHIND_DONE/>'): break if chunk.startswith(b'<PHIND_BACKEND_ERROR>'): - raise RuntimeError(f"Response: {chunk}") + raise RuntimeError(f"Response: {chunk.decode()}") if chunk.startswith(b'<PHIND_WEBRESULTS>') or chunk.startswith(b'<PHIND_FOLLOWUP>'): pass elif chunk.startswith(b"<PHIND_METADATA>") or chunk.startswith(b"<PHIND_INDICATOR>"): |