diff options
author | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-01 06:41:00 +0200 |
---|---|---|
committer | Heiner Lohaus <heiner@lohaus.eu> | 2023-10-01 06:41:00 +0200 |
commit | 261fac86dcf278310d035f89f06e7f187e4ebf9c (patch) | |
tree | 1514cc07706ade8ec2ed7fb12720ceb10de53dcd /g4f | |
parent | Update HuggingChat to new api (diff) | |
download | gpt4free-261fac86dcf278310d035f89f06e7f187e4ebf9c.tar gpt4free-261fac86dcf278310d035f89f06e7f187e4ebf9c.tar.gz gpt4free-261fac86dcf278310d035f89f06e7f187e4ebf9c.tar.bz2 gpt4free-261fac86dcf278310d035f89f06e7f187e4ebf9c.tar.lz gpt4free-261fac86dcf278310d035f89f06e7f187e4ebf9c.tar.xz gpt4free-261fac86dcf278310d035f89f06e7f187e4ebf9c.tar.zst gpt4free-261fac86dcf278310d035f89f06e7f187e4ebf9c.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/Aivvm.py | 2 | ||||
-rw-r--r-- | g4f/Provider/PerplexityAi.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Aivvm.py b/g4f/Provider/Aivvm.py index 02b6c2b4..5cd91546 100644 --- a/g4f/Provider/Aivvm.py +++ b/g4f/Provider/Aivvm.py @@ -47,7 +47,7 @@ class Aivvm(AsyncGeneratorProvider): async with session.post(f"{cls.url}/api/chat", json=json_data) as response: response.raise_for_status() async for chunk in response.content.iter_any(): - yield chunk.decode('utf-8') + yield chunk.decode() @classmethod @property diff --git a/g4f/Provider/PerplexityAi.py b/g4f/Provider/PerplexityAi.py index 6e95fd51..612e2d98 100644 --- a/g4f/Provider/PerplexityAi.py +++ b/g4f/Provider/PerplexityAi.py @@ -11,7 +11,7 @@ from .base_provider import AsyncProvider, format_prompt, get_cookies class PerplexityAi(AsyncProvider): url = "https://www.perplexity.ai" - working = True + working = False supports_gpt_35_turbo = True _sources = [] |