Fix PerplexityLabs Provider, Improve bypass_cloudflare helper

This commit is contained in:
Heiner Lohaus
2024-01-27 02:00:44 +01:00
parent 1eb7dc05e5
commit 47b50b4827
11 changed files with 186 additions and 164 deletions

View File

@@ -76,7 +76,7 @@ class PerplexityLabs(AsyncGeneratorProvider, ProviderModelMixin):
'model': cls.get_model(model),
'messages': messages
}
await ws.send_str('42' + json.dumps(['perplexity_playground', message_data]))
await ws.send_str('42' + json.dumps(['perplexity_labs', message_data]))
last_message = 0
while True:
message = await ws.receive_str()