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

Add citations for perplexity #4366

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ybelakov
Copy link

Feature Description
Perplexity just announced that "Citations" are now enabled for everyone via the API: https://docs.perplexity.ai/changelog/changelog#citations-public-release-and-increased-default-rate-limits

They are returned alongside choices in the SSE response.

#3554

@shaper
Copy link
Contributor

shaper commented Jan 17, 2025

Thank you for the PR!

We are working on an approach that will handle this sort of need more generally via #4397 so that we don't have to keep modifying the schema or otherwise putting provider-specific details like this in the internals of the openai-compatible provider. You can see the gist of how we intend to use it for DeepSeek cached token usage, for example, in that PR.

When we land the PR above I will work with you to update this to use it -- coming shortly.

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

Successfully merging this pull request may close these issues.

2 participants