TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
9.8k stars 770 forks source link

Feature request: add support for Perplexity API #558

Closed wajdi-b closed 6 months ago

wajdi-b commented 6 months ago

Perplexity supports many LLM out of the box and has an API similar to OpenAI. People who already have it would benefit from using their subscription instead of getting charged by OpenAI on top.

jeanlucthumm commented 6 months ago

You can use LiteLLM already. Doesn't that do the same thing?

wajdi-b commented 6 months ago

It actually works great without it by just setting configuration variables API_BASE_URL to https://api.perplexity.ai, OPENAI_API_KEY to the Perplexity API key, as well as DEFAULT_MODEL to one of the values found here