Fix AttributeError in perplexity_async and update supported models (gpt 5.2 and grok 4.1) #79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-async-and-new-models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
This PR addresses an
AttributeErrorin theperplexity_asyncmodule and updates the list of supported models for Perplexity AI.Changes Made
Added
__init__.pytoperplexity_asyncmodule:Client,Emailnator, andLabsClientclasses.perplexitymodule.AttributeError: module 'perplexity_async' has no attribute 'Client'.Updated supported models:
searchmethod assertions to include newly supported models likegrok-4.1,gpt-5.2, etc., for various modes (pro, reasoning, etc.).Why These Changes
__init__.pyprevented users from importing the async client as shown in the documentation/examples.Testing
import perplexity_async; client = await perplexity_async.Client()now works without errors.