Skip to content

Conversation

@cpbotha
Copy link
Contributor

@cpbotha cpbotha commented May 31, 2025

The perplexity API returns a list of string citations, as a separate attribute, that it refers to in the text as e.g. [1]

This patch handles that response.data.citations and adds it to the response. In my experiments with this MCP server in VSCode, the VSCode LLM lists the sources as well.

See the screenshot for an example:

image

@DaInfernalCoder DaInfernalCoder merged commit fa8d39f into DaInfernalCoder:main May 31, 2025
@DaInfernalCoder
Copy link
Owner

thanks mate

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