mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
perplexity: Remove duplicate step and fix numbering in README (#17978)
Release Notes: - N/A --------- Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
51faf4a1cd
commit
e7912370e6
1 changed files with 20 additions and 18 deletions
|
@ -12,30 +12,32 @@ Open the AI Assistant panel (`cmd-r` or `ctrl-r`) and enter:
|
||||||
|
|
||||||
## Development Setup
|
## Development Setup
|
||||||
|
|
||||||
1. Install the rust toolchain and clone the zed repo:
|
1. Install the Rust toolchain and clone the zed repo:
|
||||||
```
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
||||||
|
|
||||||
mkdir -p ~/code
|
```
|
||||||
cd ~/code
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
git clone https://github.com/zed-industries/zed
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Launch Zed and Open Zed Extensions (`cmd-shift-x` / `ctrl-shift-x`)
|
mkdir -p ~/code
|
||||||
3. Open Zed
|
cd ~/code
|
||||||
4. Open Zed Extensions (`cmd-shift-x` / `ctrl-shift-x`)
|
git clone https://github.com/zed-industries/zed
|
||||||
5. Click "Install Dev Extension"
|
```
|
||||||
6. Navigate to the "extensions/perplexity" folder inside the zed git repo.
|
|
||||||
7. Ensure your `PERPLEXITY_API_KEY` environment variable is set (instructions below)
|
1. Open Zed
|
||||||
```sh
|
1. Open Zed Extensions (`cmd-shift-x` / `ctrl-shift-x`)
|
||||||
env |grep PERPLEXITY_API_KEY
|
1. Click "Install Dev Extension"
|
||||||
```
|
1. Navigate to the "extensions/perplexity" folder inside the zed git repo.
|
||||||
8. Quit and relaunch Zed
|
1. Ensure your `PERPLEXITY_API_KEY` environment variable is set (instructions below)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
env | grep PERPLEXITY_API_KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
1. Quit and relaunch Zed
|
||||||
|
|
||||||
## PERPLEXITY_API_KEY
|
## PERPLEXITY_API_KEY
|
||||||
|
|
||||||
This extension requires a Perplexity API key to be available via the `PERPLEXITY_API_KEY` environment variable.
|
This extension requires a Perplexity API key to be available via the `PERPLEXITY_API_KEY` environment variable.
|
||||||
|
|
||||||
To onbtain a Perplexity.ai API token, login to your Perplexity.ai account and go [Settings->API](https://www.perplexity.ai/settings/api) and under "API Keys" click "Generate". This will require you to have [Perplexity Pro](https://www.perplexity.ai/pro) or to buy API credits. By default the extension uses `llama-3.1-sonar-small-128k-online`, currently cheapest model available which is roughly half a penny per request + a penny per 50,000 tokens. So most requests will cost less than $0.01 USD.
|
To onbtain a Perplexity.ai API token, login to your Perplexity.ai account and go [Settings->API](https://www.perplexity.ai/settings/api) and under "API Keys" click "Generate". This will require you to have [Perplexity Pro](https://www.perplexity.ai/pro) or to buy API credits. By default the extension uses `llama-3.1-sonar-small-128k-online`, currently cheapest model available which is roughly half a penny per request + a penny per 50,000 tokens. So most requests will cost less than $0.01 USD.
|
||||||
|
|
||||||
Take your API key and add it to your environment by adding `export PERPLEXITY_API_KEY="pplx-0123456789abcdef..."` to your `~/.zshrc` or `~/.bashrc`. Reload close and reopen your terminal session. Check with `env |grep PERPLEXITY_API_KEY`.
|
Take your API key and add it to your environment by adding `export PERPLEXITY_API_KEY="pplx-0123456789abcdef..."` to your `~/.zshrc` or `~/.bashrc`. Reload close and reopen your terminal session. Check with `env |grep PERPLEXITY_API_KEY`.
|
||||||
|
|
Loading…
Reference in a new issue