mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-19 03:25:32 +00:00
Disable PerplexityAi Provider
This commit is contained in:
parent
98895e5b09
commit
261fac86dc
@ -47,7 +47,7 @@ class Aivvm(AsyncGeneratorProvider):
|
|||||||
async with session.post(f"{cls.url}/api/chat", json=json_data) as response:
|
async with session.post(f"{cls.url}/api/chat", json=json_data) as response:
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
async for chunk in response.content.iter_any():
|
async for chunk in response.content.iter_any():
|
||||||
yield chunk.decode('utf-8')
|
yield chunk.decode()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@property
|
@property
|
||||||
|
@ -11,7 +11,7 @@ from .base_provider import AsyncProvider, format_prompt, get_cookies
|
|||||||
|
|
||||||
class PerplexityAi(AsyncProvider):
|
class PerplexityAi(AsyncProvider):
|
||||||
url = "https://www.perplexity.ai"
|
url = "https://www.perplexity.ai"
|
||||||
working = True
|
working = False
|
||||||
supports_gpt_35_turbo = True
|
supports_gpt_35_turbo = True
|
||||||
_sources = []
|
_sources = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user