Skip to content

Support for Perplexity Spaces #367

Description

@dbolivar

Perplexity added a nice feature a couple of months ago called Perplexity Spaces. In short, it allows for organizing threads inside these so-called Spaces (akin to folders), but for me the greatest feature is the ability to set custom instructions to each space, which gets sent automatically to the chat model as a system prompt.

Each Space has its own URL, with a scheme similar to this: https://www.perplexity.ai/spaces/technical-expert-<random_string>. So one idea to add support for Perplexity Spaces into Code Web Chat would be simply to add the ability to override the provider URL with a custom one. So the user could create multiple Perplexity profiles, each one with a custom URL, targeting a specific Space.

I quickly inspected the HTML of the chat textbox inside a Space, and it looks like the regular textbox, so probably there won't be any need to adjust element IDs: just the URL replacement should be enough.

URL overrides also have the added benefit of bringing more flexibility to other providers as well (especially for self-hosted solutions), besides Perplexity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions