Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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**.

Expand All @@ -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.
</Message>

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 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 the [Inline Assist](https://zed.dev/docs/ai/inline-assistant) feature when editing your code.