From 61a07e29fa63c6161743673d2fb1c08ff5e24698 Mon Sep 17 00:00:00 2001 From: fpagny Date: Tue, 29 Jul 2025 14:57:25 +0200 Subject: [PATCH 1/3] feat(genapi): update zed tutorial with devstral small model --- .../adding-ai-to-zed-ide.mdx | 43 ++++++++++--------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx b/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx index 7b3b8beb66..878f629893 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx @@ -23,30 +23,30 @@ Zed is an IDE (Integrated Development Environment) including AI coding assistanc 1. Edit Zed settings located in `settings.json`, and add the following content to it: ```json { - "language_models": { - "openai": { - "api_url": "https://api.scaleway.ai/v1", - "available_models": [ - { - "name": "qwen2.5-coder-32b-instruct", - "display_name": "Qwen 2.5 Coder 32B", - "max_tokens": 128000 - } - ], - "version": "1" - } - }, - "assistant": { + "language_models": { + "openai": { + "api_url": "https://api.scaleway.ai/v1", + "available_models": [ + { + "name": "devstral-small-2505", + "display_name": "Devstral Small - Scaleway", + "max_tokens": 128000 + } + ], + "version": "1" + } + }, + "agent": { + "default_profile": "write", "default_model": { - "provider": "openai", - "model": "qwen2.5-coder-32b-instruct" - }, - "version": "2" - } + "provider": "openai", + "model": "devstral-small-2505" + } + } } ``` - This configuration will add a `qwen2.5-coder-32b-instruct` Scaleway hosted model available with the Zed `openai` provider, and use it as default model. + This configuration will add a `devstral-small-2505` Scaleway hosted model available with the Zed `openai` provider, and use it as default model. 2. Open AI Assistant configuration by either using the command palette and typing `assistant: show configuration` or clicking on the bottom right **Assistant Panel** button and then **Assistant menu** in top right and finally **Configure**. @@ -55,4 +55,5 @@ Zed is an IDE (Integrated Development Environment) including AI coding assistanc Your key will be deleted if you restart Zed. To store it permanently, you can set up your Scaleway secret key as `OPENAI_API_KEY` environment variable and restart Zed. -4. Your setup is complete. If you open a new chat and select `Qwen 2.5 Coder 32B` model, you can send text and retrieve model answers. Additionally, you can use [Inline Assist](https://zed.dev/docs/assistant/inline-assistant#:~:text=You%20can%20use%20ctrl%2Denter,even%20within%20the%20terminal%20panel.) feature when editing your code. +4. Your setup is complete. If you open a new chat and select `Devstral Small - Scaleway` model, you can send text and see the model using local tools to perform actions such as file reading or editing. You can review changes before they are applied and also add custom remote tools using [Custom MCP Servers](https://zed.dev/docs/ai/mcp). +Additionally, you can use [Inline Assist](https://zed.dev/docs/assistant/inline-assistant#:~:text=You%20can%20use%20ctrl%2Denter,even%20within%20the%20terminal%20panel.) feature when editing your code. From bbfa0256c3c2a801124a383be32c5ead3fd53ddf Mon Sep 17 00:00:00 2001 From: fpagny Date: Wed, 30 Jul 2025 09:51:49 +0200 Subject: [PATCH 2/3] Update pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../generative-apis/reference-content/adding-ai-to-zed-ide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx b/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx index 878f629893..78474e7463 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx @@ -55,5 +55,5 @@ Zed is an IDE (Integrated Development Environment) including AI coding assistanc Your key will be deleted if you restart Zed. To store it permanently, you can set up your Scaleway secret key as `OPENAI_API_KEY` environment variable and restart Zed. -4. Your setup is complete. If you open a new chat and select `Devstral Small - Scaleway` model, you can send text and see the model using local tools to perform actions such as file reading or editing. You can review changes before they are applied and also add custom remote tools using [Custom MCP Servers](https://zed.dev/docs/ai/mcp). +4. Your setup is complete. If you open a new chat and select the `Devstral Small - Scaleway` model, you can send text and see the model using local tools to perform actions such as file reading or editing. You can review changes before they are applied and also add custom remote tools using [Custom MCP Servers](https://zed.dev/docs/ai/mcp). Additionally, you can use [Inline Assist](https://zed.dev/docs/assistant/inline-assistant#:~:text=You%20can%20use%20ctrl%2Denter,even%20within%20the%20terminal%20panel.) feature when editing your code. From eb170de05c493520968f10241e0aacbf5686f41a Mon Sep 17 00:00:00 2001 From: fpagny Date: Wed, 30 Jul 2025 09:51:57 +0200 Subject: [PATCH 3/3] Update pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../generative-apis/reference-content/adding-ai-to-zed-ide.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx b/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx index 78474e7463..8e452f7adc 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx @@ -56,4 +56,4 @@ Zed is an IDE (Integrated Development Environment) including AI coding assistanc 4. Your setup is complete. If you open a new chat and select the `Devstral Small - Scaleway` model, you can send text and see the model using local tools to perform actions such as file reading or editing. You can review changes before they are applied and also add custom remote tools using [Custom MCP Servers](https://zed.dev/docs/ai/mcp). -Additionally, you can use [Inline Assist](https://zed.dev/docs/assistant/inline-assistant#:~:text=You%20can%20use%20ctrl%2Denter,even%20within%20the%20terminal%20panel.) feature when editing your code. +Additionally, you can use the [Inline Assist](https://zed.dev/docs/ai/inline-assistant) feature when editing your code.