Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add support for Perplexity API #558

Closed
wajdi-b opened this issue May 6, 2024 · 2 comments
Closed

Feature request: add support for Perplexity API #558

wajdi-b opened this issue May 6, 2024 · 2 comments

Comments

@wajdi-b
Copy link

wajdi-b commented May 6, 2024

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
Copy link
Contributor

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

@wajdi-b
Copy link
Author

wajdi-b commented May 11, 2024

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

@wajdi-b wajdi-b closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants