Skip to content

Commit 23db3c7

Browse files
bene2k1fpagnyRoRoJ
authored
fix(genapi): zed (#4655)
* Update integrating-generative-apis-with-popular-tools.mdx Add quickstart for Zed AI configuration with Generative APIs. * feat(genapi): add zed ai * Apply suggestions from code review Co-authored-by: Rowena Jones <[email protected]> * fix(genapi): fix dates * Apply suggestions from code review * fix(conflicts): fix zed file conflicts --------- Co-authored-by: fpagny <[email protected]> Co-authored-by: Rowena Jones <[email protected]> Co-authored-by: Rowena <[email protected]>
1 parent 5dcf0be commit 23db3c7

File tree

5 files changed

+75
-56
lines changed

5 files changed

+75
-56
lines changed

menu/navigation.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,10 @@
10201020
"label": "Adding AI to IntelliJ IDEA using Continue",
10211021
"slug": "adding-ai-to-intellij-using-continue"
10221022
},
1023+
{
1024+
"label": "Adding AI to the Zed IDE",
1025+
"slug": "adding-ai-to-zed-ide"
1026+
},
10231027
{
10241028
"label": "Integrating Generative APIs with popular AI tools",
10251029
"slug": "integrating-generative-apis-with-popular-tools"

pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ content:
66
h1: Adding AI to IntelliJ IDEA using Continue and Generative APIs
77
paragraph: Improve your coding efficiency by integrating AI-powered code models into IntelliJ IDEA. With Continue and Scaleway's Generative APIs, you can use AI to understand, generate, and optimize code.
88
tags: generative-apis ai machine-learning language-models code-assistance intellij-idea continue
9-
validation_date: 2025-02-14
10-
posted_date: 2025-02-14
9+
dates:
10+
validation: 2025-02-14
11+
posted: 2025-02-14
1112
---
1213

1314
AI-driven coding is revolutionizing software development by automating repetitive tasks, generating code snippets, improving code quality, and identifying potential bugs.

pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ content:
66
h1: Adding AI to VS Code using Continue and Generative APIs
77
paragraph: Elevate your coding experience by integrating AI-powered code models into VS Code. With Continue and Scaleway's Generative APIs, you can leverage AI to understand, generate, and optimize code with ease.
88
tags: generative-apis ai machine-learning language-models code-assistance vs-code continue
9-
validation_date: 2025-02-14
10-
posted_date: 2025-02-14
9+
dates:
10+
validation: 2025-02-14
11+
posted: 2025-02-14
1112
---
1213

1314
AI-powered coding is transforming software development by automating repetitive tasks, generating code, improving code quality, and even detecting and fixing bugs. By integrating AI-driven tools, developers can significantly boost productivity and streamline their workflows.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
meta:
3+
title: Adding AI to the Zed IDE using Generative APIs
4+
description: Learn how to integrate AI-powered code models into Zed using Scaleway's Generative APIs.
5+
content:
6+
h1: Adding AI to to the Zed IDE using Generative APIs
7+
paragraph: Elevate your coding experience by integrating AI-powered code models into the Zed IDE. With Continue and Scaleway's Generative APIs, you can leverage AI to understand, generate, and optimize code with ease.
8+
tags: generative-apis ai machine-learning language-models code-assistance vs-code continue
9+
dates:
10+
validation: 2025-03-18
11+
posted: 2025-03-18
12+
---
13+
14+
Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs support Zed AI code completion and more.
15+
16+
<Macro id="requirements" />
17+
18+
- A Scaleway account logged into the [console](https://console.scaleway.com)
19+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
20+
- A valid [API key](/iam/how-to/create-api-keys/) for API authentication
21+
- Installed [Zed](https://zed.dev/) on your local machine
22+
23+
### Configure custom endpoints and models
24+
25+
1. Edit Zed settings located in `settings.json`, and add the following content to it:
26+
```json
27+
{
28+
"language_models": {
29+
"openai": {
30+
"api_url": "https://api.scaleway.ai/v1",
31+
"available_models": [
32+
{
33+
"name": "qwen2.5-coder-32b-instruct",
34+
"display_name": "Qwen 2.5 Coder 32B",
35+
"max_tokens": 128000
36+
}
37+
],
38+
"version": "1"
39+
}
40+
},
41+
"assistant": {
42+
"default_model": {
43+
"provider": "openai",
44+
"model": "qwen2.5-coder-32b-instruct"
45+
},
46+
"version": "2"
47+
}
48+
}
49+
```
50+
51+
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.
52+
53+
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**.
54+
55+
3. Scroll down to the OpenAI configuration, and paste your Scaleway secret key as API Key credentials.
56+
<Message type="note">
57+
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.
58+
</Message>
59+
60+
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.

pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx

Lines changed: 5 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ The following table compares AI tools and libraries supported by Scaleway's Gene
2525
| [Continue Dev](#continue-dev-ai-coding-assistance) | IDE extension for AI-powered coding assistance | Code completion, code review | Low |
2626
| [Zed AI](#zed-ai-coding-assistance) | IDE including AI-powered coding assistance | Code completion, code review | Low |
2727
| [Chatbox AI](#chatbox-ai) | Desktop client for generative APIs, available on Windows, Mac, Linux | AI copilot for documents, images, or code| Low |
28-
| [Open Web UI](#open-webui) | User interface for chatbot applications | Creating web chatbot interfaces, RAG agents | Low |
2928
| [cURL/Python](#custom-http-integrations) | Direct HTTP API calls for custom integrations | Custom applications, data processing | High |
3029

3130
<Message type="note">
@@ -181,50 +180,11 @@ Continue Dev is a library that provides AI-powered coding assistance. Scaleway's
181180

182181
## Zed AI (coding assistance)
183182

184-
Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs supports Zed AI code completion and more.
183+
Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs support Zed AI code completion and more.
185184
186-
<Macro id="requirements" />
187-
188-
- A Scaleway account logged into the [console](https://console.scaleway.com)
189-
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
190-
- A valid [API key](/iam/how-to/create-api-keys/) for API authentication
191-
- Installed [Zed](https://zed.dev/) on your local machine
192-
193-
### Configure custom endpoints and models
194-
195-
1. Edit Zed settings located in `settings.json`, and add the following content to it:
196-
```json
197-
{
198-
"language_models": {
199-
"openai": {
200-
"api_url": "https://api.scaleway.ai/v1",
201-
"available_models": [
202-
{
203-
"name": "qwen2.5-coder-32b-instruct",
204-
"display_name": "Qwen 2.5 Coder 32B",
205-
"max_tokens": 32000
206-
}
207-
],
208-
"version": "1"
209-
}
210-
},
211-
"assistant": {
212-
"default_model": {
213-
"provider": "openai",
214-
"model": "qwen2.5-coder-32b-instruct"
215-
},
216-
"version": "2"
217-
}
218-
}
219-
```
220-
221-
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.
222-
223-
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**.
224-
225-
3. Scroll down to the OpenAI Configuration, and paste your Scaleway secret key as API Key credentials. Note that this key will be deleted if you restart Zed. To store it permanently, set up your Scaleway secret key as `OPENAI_API_KEY` environment variable and restart Zed.
226-
227-
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 also 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.
185+
<Message type="tip">
186+
Refer to our dedicated documentation for [connecting Zed to Generative APIs](/generative-apis/reference-content/adding-ai-to-zed-ide/)
187+
</Message>
228188
229189
## Chatbox AI
230190
@@ -234,13 +194,6 @@ Chatbox AI is a powerful AI client and smart assistant, compatible with Scaleway
234194
Refer to our dedicated documentation for [installing and configuring Chatbox AI with Generative APIs](/tutorials/configure-chatboxai-with-generative-apis/)
235195
</Message>
236196

237-
## Open WebUI
238-
239-
Open WebUI is an open-source, self-hosted user interface designed for interacting with large language models (LLMs) through a browser. It offers an intuitive chat-based experience, similar to ChatGPT, making it simple to work with AI models locally or through API integrations. Fully compatible with Scaleway’s Generative APIs, Open WebUI enables users to deploy and manage an AI chat application with little effort.
240-
<Message type="tip">
241-
Follow our guide on [installing and configuring Open WebUI with Generative APIs](/tutorials/deploy-openwebui-with-generative-apis/) to get started.
242-
</Message>
243-
244197
## Custom HTTP integrations
245198

246199
You can interact with Scaleway's Generative APIs directly using any HTTP client.
@@ -284,4 +237,4 @@ print(response.json()["choices"][0]["message"]["content"])
284237
```
285238
<Message type="tip">
286239
Make sure to replace `<API secret key>` with your actual API key.
287-
</Message>
240+
</Message>

0 commit comments

Comments
 (0)