Stealing Fire from the gods! This Flask app takes messages from Perplexity and streams them into SillyTavern, allowing you to use your """Legally Paid for""" subscription to Perplexity Pro within SillyTavern! :)
Use with Opus has been heavily restricted, there is now a daily limit on Opus, as well as the moderation being set to heavy. It's mostly dead. Might still be useful for coding, or using other models in the future. So I'll keep it up.
-
Click the green <> Code button, and download the repo as a ZIP file, extract it somewhere.
-
Make a Perplexity account and activate a Pro subscription. Set your preferred model to Claude-3-Opus in the settings. Make sure ""NOT"" to cancel your subscription. wink wink
-
Put the same email you signed up to Perplexity with into
config.ini
. -
Install Python 3.10 or 3.11.
-
Run
start.bat
. -
In SillyTavern, under the OpenAI settings, put
https://127.0.0.1:5001
as the API URL. (It's Claude, but my app uses OpenAI methods for streaming) -
Set your context to 10500. Then try generating a message!
-
The console will ask you for a verification link. Open your email and paste the link into the console.
And boom! It will generate your request.
Note: You might need a light jailbreak for spicy requests.
If you'd like to make improvements, there are several things I couldn't really figure out (I didn't bother too)
- Anonymous User Request? It often fails, but I'm not 100% sure it's needed, as we are using authenicated accounts.
- Document uploading for larger context? My script has a function for document uploading but everytime I tried the moderation got waaay more heavy. No clue why.
- Any other improvements. Just Submit a PR and I'll review and merge it if it's good.