mods
mods copied to clipboard
fix: fix perplexity API
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
Steps to reproduce
- Type
mods --settingsin the terminal and ENTER - Add a Perplexity API key.
- Change the default model to any Perplexity model.
- Try to use mods.
mods 'Hey, are you doing?' - 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.
The default config for Perplexity was outdated, indeed! 👏
Two comments on the PR:
- a
fallbackto the cheapersonarcould be useful - i don't think an alias with the same name should be added
@cip8 Changes implemented.
- Redundant aliases removed
- Fallbacks added