Use with Perplexity AI

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.
Image without caption
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.
Here is what it looks like:
Image without caption
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.
Image without caption

Use Perplexity AI model

You can now select and use Perplexity model from the dropdown menu.
Image without caption