It appears that Perplexity AI has changed their API and PerplexiPy hasn't kept up. PerplexiPy is an unofficial wrapper for Perplexity. Below is an example of what happens when you try to query the bot. I suggest migrating to https://github.com/perplexityai/perplexity-py/, the official Python API library for Perplexity AI.
<SopelBot> katt: Available models: [1] r1-1776; [2] sonar; [3] sonar-pro; [4] sonar-reasoning; [5] sonar-reasoning-pro;
<katt> .mymodel 1
<katt> .q hi
<SopelBot> Unexpected PerplexityClientError (model %s no longer available in underlying API) from katt. Message was: .q hi
<katt> .mymodel 2
<katt> .q hi
<SopelBot> Unexpected PerplexityClientError (model %s no longer available in underlying API) from katt. Message was: .q hi
<katt> .mymodel 3
<katt> .q hi
<SopelBot> Unexpected PerplexityClientError (model %s no longer available in underlying API) from katt. Message was: .q hi```
It appears that Perplexity AI has changed their API and PerplexiPy hasn't kept up. PerplexiPy is an unofficial wrapper for Perplexity. Below is an example of what happens when you try to query the bot. I suggest migrating to https://github.com/perplexityai/perplexity-py/, the official Python API library for Perplexity AI.