Skip to content

Fix AttributeError in perplexity_async and update supported models (gpt 5.2 and grok 4.1)#79

Merged
helallao merged 2 commits intohelallao:mainfrom
luizslvr:fix-async-and-new-models
Dec 13, 2025
Merged

Fix AttributeError in perplexity_async and update supported models (gpt 5.2 and grok 4.1)#79
helallao merged 2 commits intohelallao:mainfrom
luizslvr:fix-async-and-new-models

Conversation

@luizslvr
Copy link
Copy Markdown
Contributor

Description

This PR addresses an AttributeError in the perplexity_async module and updates the list of supported models for Perplexity AI.

Changes Made

  1. Added __init__.py to perplexity_async module:

    • Enables proper importing of Client, Emailnator, and LabsClient classes.
    • Mirrors the structure of the synchronous perplexity module.
    • Fixes AttributeError: module 'perplexity_async' has no attribute 'Client'.
  2. Updated supported models:

    • Expanded the model lists in the search method assertions to include newly supported models like grok-4.1, gpt-5.2, etc., for various modes (pro, reasoning, etc.).

Why These Changes

  • The missing __init__.py prevented users from importing the async client as shown in the documentation/examples.
  • Model updates ensure compatibility with the latest Perplexity AI offerings.

Testing

  • Verified that import perplexity_async; client = await perplexity_async.Client() now works without errors.
  • Confirmed model assertions pass with the new lists.

@helallao helallao merged commit 148d0bd into helallao:main Dec 13, 2025
0 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants