refactor: update model mapping, response handling, and documentation #75

Merged
lifanwar merged 3 commits from update-ai-models into main 2025-11-22 16:00:40 -05:00
lifanwar commented 2025-11-21 16:29:40 -05:00 (Migrated from github.com)

Summary

  • Add: gpt-5.1, claude-4.5-sonnet, gemini-2.5-pro, grok-4, o3, and claude-4.5-sonnet-thinking to supported models
  • Remove deprecated models: gpt-4.5, gpt-4o, o3-mini, r1, grok-2, claude 3.7 sonnet, gemini 2.0 flash
  • Improve error handling and response parsing for various Perplexity API formats
  • Standardize model mapping and usage assertions
  • Update README: model lists and usage

Tested Models

  • gpt-5.1 (pro)
  • claude-4.5-sonnet (pro)
  • gemini-2.5-pro (pro)
  • grok-4 (pro)
  • o3 (reasoning) - currently mapped for reasoning, effectively routes to ChatGPT 5.1 Thinking; this will auto-upgrade once the direct mapping is released by Perplexity
  • claude-4.5-sonnet-thinking (reasoning)

All listed models tested and verified to work.

### Summary - Add: gpt-5.1, claude-4.5-sonnet, gemini-2.5-pro, grok-4, o3, and claude-4.5-sonnet-thinking to supported models - Remove deprecated models: gpt-4.5, gpt-4o, o3-mini, r1, grok-2, claude 3.7 sonnet, gemini 2.0 flash - Improve error handling and response parsing for various Perplexity API formats - Standardize model mapping and usage assertions - Update README: model lists and usage #### Tested Models - gpt-5.1 (pro) - claude-4.5-sonnet (pro) - gemini-2.5-pro (pro) - grok-4 (pro) - o3 (reasoning) - currently mapped for reasoning, effectively routes to ChatGPT 5.1 Thinking; this will auto-upgrade once the direct mapping is released by Perplexity - claude-4.5-sonnet-thinking (reasoning) All listed models tested and verified to work.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
helallao/perplexity-ai!75
No description provided.