From 63db58a9ff9e9f72fba426a0e89e3d654a68d178 Mon Sep 17 00:00:00 2001 From: fpagny Date: Mon, 17 Mar 2025 19:07:48 +0100 Subject: [PATCH 1/3] Update integrating-generative-apis-with-popular-tools.mdx Add quickstart for Zed AI configuration with Generative APIs. --- ...ing-generative-apis-with-popular-tools.mdx | 50 ++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx b/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx index da67cda297..35d5032d11 100644 --- a/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx +++ b/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx @@ -22,7 +22,8 @@ The following table compares AI tools and libraries supported by Scaleway's Gene | [OpenAI client](#openai-client-libraries) | Popular AI library for natural language processing | Text generation, language translation, text summarization | Low | | [LangChain](#langchain-rag-and-llm-applications) | Library for building AI applications leveraging RAG | Inference, embeddings, document indexing and retrieval | Medium | | [LlamaIndex](#llamaindex-advanced-rag-applications) | Library for building advanced AI RAG applications | Knowledge graph building, document retrieval, data indexing | Medium | -| [Continue Dev](#continue-dev-ai-coding-assistance) | Library for AI-powered coding assistance | Code completion, code review | Low | +| [Continue Dev](#continue-dev-ai-coding-assistance) | IDE Extension for AI-powered coding assistance | Code completion, code review | Low | +| [Zed AI](#zed-ai-coding-assistance) | IDE including AI-powered coding assistance | Code completion, code review | Low | | [Chatbox AI](#chatbox-ai) | Desktop client for generative APIs, available on Windows, Mac, Linux | AI copilot for documents, images, or code| Low | | [cURL/Python](#custom-http-integrations) | Direct HTTP API calls for custom integrations | Custom applications, data processing | High | @@ -177,6 +178,53 @@ Continue Dev is a library that provides AI-powered coding assistance. Scaleway's - [Integrating Continue Dev with IntelliJ IDEA](/generative-apis/reference-content/adding-ai-to-intellij-using-continue/) +## Zed AI (coding assistance) + +Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs supports Zed AI code completion and more. + + + +- A Scaleway account logged into the [console](https://console.scaleway.com) +- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization +- A valid [API key](/iam/how-to/create-api-keys/) for API authentication +- Installed [Zed](https://zed.dev/) on your local machine + +### Configure custom endpoints and models + +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": { + "default_model": { + "provider": "openai", + "model": "qwen2.5-coder-32b-instruct" + }, + "version": "2" + } +} +``` + +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. + +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**. + +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, alternatively, you can also setup 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 answer. Additionnaly, 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. + ## Chatbox AI Chatbox AI is a powerful AI client and smart assistant, compatible with Scaleway's Generative APIs service. It is available across multiple platforms, including Windows, macOS, Android, iOS, Web, and Linux. From b6033af5b5b95e7cfa78d8b73f55bb2b5afdec82 Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Tue, 18 Mar 2025 09:34:02 +0100 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../integrating-generative-apis-with-popular-tools.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx b/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx index 35d5032d11..3f87614996 100644 --- a/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx +++ b/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx @@ -22,7 +22,7 @@ The following table compares AI tools and libraries supported by Scaleway's Gene | [OpenAI client](#openai-client-libraries) | Popular AI library for natural language processing | Text generation, language translation, text summarization | Low | | [LangChain](#langchain-rag-and-llm-applications) | Library for building AI applications leveraging RAG | Inference, embeddings, document indexing and retrieval | Medium | | [LlamaIndex](#llamaindex-advanced-rag-applications) | Library for building advanced AI RAG applications | Knowledge graph building, document retrieval, data indexing | Medium | -| [Continue Dev](#continue-dev-ai-coding-assistance) | IDE Extension for AI-powered coding assistance | Code completion, code review | Low | +| [Continue Dev](#continue-dev-ai-coding-assistance) | IDE extension for AI-powered coding assistance | Code completion, code review | Low | | [Zed AI](#zed-ai-coding-assistance) | IDE including AI-powered coding assistance | Code completion, code review | Low | | [Chatbox AI](#chatbox-ai) | Desktop client for generative APIs, available on Windows, Mac, Linux | AI copilot for documents, images, or code| Low | | [cURL/Python](#custom-http-integrations) | Direct HTTP API calls for custom integrations | Custom applications, data processing | High | @@ -223,7 +223,7 @@ This configuration will add a `qwen2.5-coder-32b-instruct` Scaleway hosted model 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, alternatively, you can also setup 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 answer. Additionnaly, 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. +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 answer. Additionnaly, 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. ## Chatbox AI From ed89527cdc1266f1da479c0282191c93eaaf879d Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Tue, 18 Mar 2025 10:03:19 +0100 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../integrating-generative-apis-with-popular-tools.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx b/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx index 3f87614996..e4d6ca1415 100644 --- a/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx +++ b/pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx @@ -221,9 +221,9 @@ This configuration will add a `qwen2.5-coder-32b-instruct` Scaleway hosted 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**. -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, alternatively, you can also setup your Scaleway Secret Key as `OPENAI_API_KEY` environment variable and restart Zed. +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. -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 answer. Additionnaly, 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. +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. ## Chatbox AI