sigoden / aichat

All-in-one LLM CLI tool featuring Shell Assistant, Chat-REPL, RAG, AI tools & agents, with access to OpenAI, Claude, Gemini, Ollama, Groq, and more.
Apache License 2.0
4.53k stars 306 forks source link

Display citations from Perplexity API #1028

Closed makp closed 2 days ago

makp commented 2 days ago

Is your feature request related to a problem? Please describe. I have been using the client openai-compatible to interact with the Perplexity API. It works fantastic, but it doesn't display the citation sources. The citations come in the API response under the field "citations".

Describe the solution you'd like After the content response finishes displaying, a section called "Citations" could display the citations used in the answer.

sigoden commented 2 days ago

We will not support this feature.

  1. AIchat needs to support more than 20 providers, and it is impossible to handle specifically for a certain provider.

  2. Data cannot be layered or collapsed in TUI. Displaying citations will interfere with the display of original answer. An answer may have two or three lines, but citations may have dozens or hundreds of lines.