mods icon indicating copy to clipboard operation
mods copied to clipboard

fix: fix perplexity API

Open irscin opened this issue 6 months ago • 2 comments

The perplexity API models are not available anymore and return 400 API errors. I replaced the models in the settings template file with the current ones available according to the official docs at: https://docs.perplexity.ai/getting-started/models image

Steps to reproduce

  1. Type mods --settings in the terminal and ENTER
  2. Add a Perplexity API key.
  3. Change the default model to any Perplexity model.
  4. Try to use mods. mods 'Hey, are you doing?'
  5. Get an error 400 API, model does not exist.
  • [X] I have read CONTRIBUTING.md.
  • [X] I have created a discussion that was approved by a maintainer (for new features). <- Not necessary, since this is a bug fix, not a new feature.

irscin avatar Oct 15 '25 12:10 irscin

The default config for Perplexity was outdated, indeed! 👏

Two comments on the PR:

  • a fallback to the cheaper sonar could be useful
  • i don't think an alias with the same name should be added

cip8 avatar Oct 18 '25 11:10 cip8

@cip8 Changes implemented.

  • Redundant aliases removed
  • Fallbacks added

irscin avatar Oct 21 '25 17:10 irscin