Docs
Configuration
librechat.yaml
Custom AI Endpoints
Perplexity

Perplexity

Perplexity API key: perplexity.ai/settings/api

Notes:

  • Known: icon provided.
  • Known issue: fetching list of models is not supported.
  • API may be strict for some models, and may not allow fields like stop and frequency_penalty may cause an error when set to 0, in which case, you should use dropParams.
  • The example includes a model list, which was last updated on February 27, 2024, for your convenience.
    - name: "Perplexity"
      apiKey: "${PERPLEXITY_API_KEY}"
      baseURL: "https://api.perplexity.ai/"
      models:
        default: [
          "mistral-7b-instruct",
          "sonar-small-chat",
          "sonar-small-online",
          "sonar-medium-chat",
          "sonar-medium-online"
          ]
        fetch: false # fetching list of models is not supported
      titleConvo: true
      titleModel: "sonar-medium-chat"
      summarize: false
      summaryModel: "sonar-medium-chat"
      forcePrompt: false
      dropParams: ["stop", "frequency_penalty"]
      modelDisplayLabel: "Perplexity"

image