Itβs easy to setup Typing Mind for using with Perplexity AI (https://www.perplexity.ai/) Here is a quick guide.
Get a Perplexity AI account
Go to https://www.perplexity.ai/ and sign up for an account. Then go to https://www.perplexity.ai/settings/api to get your API key.
Note that you may need to top-up your credit to use the API.
Add a custom model in Typing Mind
Go to typingmind.com and create a new Custom Model as follow:
- Click Add Custom Model
- Enter any name you want, for example βPerplexityβ
- Enter the exact endpoint from the API document:
https://api.perplexity.ai/chat/completions
- Enter the Model ID and context length, for example:
pplx-7b-chat
,Βpplx-70b-chat
,Βpplx-7b-online
,Βpplx-70b-online
,Βllama-2-70b-chat
,Βcodellama-34b-instruct
,Βcodellama-70b-instruct
,Βmistral-7b-instruct
, andΒmixtral-8x7b-instruct
.
- Click βAdd Custom Headersβ and add the following header:
Authorization
:Bearer {{your API key}}
- Click βTestβ to verify the information is correct
- Click Add Model.
- Logo URL (suggested): https://seeklogo.com/images/P/perplexity-ai-logo-13120A0AAE-seeklogo.com.png
Here is what it looks like:
Quick troubleshooting guide:
β οΈ If you see errors like βSorry, Custom Model has rejected your requestβ, click on the Model dropdown menu β Model Settings β Advanced Settings β Then reset all parameters to default.
Use Perplexity AI model
You can now select and use Perplexity model from the dropdown menu.