Perplexity pipe with beautiful references
""" title: Perplexity Function (Simplified) author: Seyed Yahya Shirazi author_url: neuromechanist.github.io date: 2024-11-19 version: 2.1 license: MIT description: A simplified function for generating text using the Perplexity API with citations. requirements: aiohttp, pydantic environment_variables: PERPLEXITY_API_KEY """
##Features:
✅ Models: Sonar Reasoning, Sonar Pro, Sonar
✅ Citations: Automatic reference formatting ([1] url, [2] url)
✅ Web Search: Built-in internet search capabilities
✅ Search Filters: Domain filtering, recency filters, image search
✅ Clean Formatting: Citations appended neatly at the response end
Best For: Research queries, current events, fact-checking - when you need web-sourced answers with proper citations.
We use optional analytics to improve our websites, and advertising cookies on this site. Privacy Policy.