diff --git a/docs/src/ai/agent-panel.md b/docs/src/ai/agent-panel.md index c383862ed631cbfdc42f591d63be09fb1209c8b8..0197bfb3ecc7b4ea245c6ce6963c3b592558a90f 100644 --- a/docs/src/ai/agent-panel.md +++ b/docs/src/ai/agent-panel.md @@ -85,6 +85,8 @@ You can type `@` to mention files, directories, symbols, previous threads, and r Copying images and pasting them in the panel's message editor is also supported. +When you paste multi-line code selections copied from an editor buffer, Zed automatically formats them as @mentions with the file context. To paste content without this automatic formatting, use {#kb agent::PasteRaw} to paste raw text directly. + ### Selection as Context Additionally, you can also select text in a buffer and add it as context by using the {#kb agent::AddSelectionToThread} keybinding, running the {#action agent::AddSelectionToThread} action, or choosing the "Selection" item in the `@` menu. @@ -100,6 +102,8 @@ You can also do this at any time with an ongoing thread via the "Agent Options" After you've configured your LLM providers—either via [a custom API key](./llm-providers.md) or through [Zed's hosted models](./models.md)—you can switch between them by clicking on the model selector on the message editor or by using the {#kb agent::ToggleModelSelector} keybinding. +If you have favorited models configured, you can cycle through them with {#kb agent::CycleFavoriteModels} without opening the model selector. + > The same model can be offered via multiple providers - for example, Claude Sonnet 4 is available via Zed Pro, OpenRouter, Anthropic directly, and more. > Make sure you've selected the correct model **_provider_** for the model you'd like to use, delineated by the logo to the left of the model in the model selector. diff --git a/docs/src/ai/edit-prediction.md b/docs/src/ai/edit-prediction.md index 65a427842cda461806dc79ecf67f3a180afd9763..74a85f566fae43d5696e14192c07ec1ca4f22d27 100644 --- a/docs/src/ai/edit-prediction.md +++ b/docs/src/ai/edit-prediction.md @@ -305,7 +305,7 @@ To use GitHub Copilot as your provider, set this within `settings.json`: } ``` -You should be able to sign-in to GitHub Copilot by clicking on the Copilot icon in the status bar and following the setup instructions. +To sign in to GitHub Copilot, click on the Copilot icon in the status bar. A popup window appears displaying a device code. Click the copy button to copy the code, then click "Connect to GitHub" to open the GitHub verification page in your browser. Paste the code when prompted. The popup window closes automatically after successful authorization. #### Using GitHub Copilot Enterprise @@ -348,10 +348,22 @@ You should be able to sign-in to Supermaven by clicking on the Supermaven icon i ### Codestral {#codestral} -To use Mistral's Codestral as your provider, start by going to the Agent Panel settings view by running the {#action agent::OpenSettings} action. -Look for the Mistral item and add a Codestral API key in the corresponding text input. +<<<<<<< Updated upstream +To use Mistral's Codestral as your provider: +======= +To use Mistral's Codestral as your provider, open the Settings Editor (`Cmd+,` on macOS, `Ctrl+,` on Linux/Windows) and navigate to the Edit Predictions section. Select Codestral as your provider and enter your API key in the corresponding field. -After that, you should be able to switch your provider to it in your `settings.json` file: +> > > > > > > Stashed changes + +1. Open the Settings Editor (`Cmd+,` on macOS, `Ctrl+,` on Linux/Windows) +2. Search for "Edit Predictions" and click **Configure Providers** +3. Find the Codestral section and enter your API key from the + [Codestral dashboard](https://console.mistral.ai/codestral) + +Alternatively, click the edit prediction icon in the status bar and select +**Configure Providers** from the menu. + +After adding your API key, set Codestral as your provider in `settings.json`: ```json [settings] {