From df233fcbdf18407cb5edba7dfc56fef0132d0fb0 Mon Sep 17 00:00:00 2001 From: fpagny Date: Mon, 17 Mar 2025 19:07:48 +0100 Subject: [PATCH 1/6] Update integrating-generative-apis-with-popular-tools.mdx Add quickstart for Zed AI configuration with Generative APIs. --- .../integrating-generative-apis-with-popular-tools.mdx | 2 +- 1 file changed, 1 insertion(+), 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 4a2c9d69a7..f5393a8e89 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 | | [Open Web UI](#open-webui) | User interface for chatbot applications | Creating web chatbot interfaces, RAG agents | Low | From e9362d7e6e5a69938c1c065f92f16269c31ac8c0 Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Tue, 18 Mar 2025 09:57:30 +0100 Subject: [PATCH 2/6] feat(genapi): add zed ai --- menu/navigation.json | 4 ++ .../adding-ai-to-zed-ide.mdx | 60 +++++++++++++++++++ ...ing-generative-apis-with-popular-tools.mdx | 44 +------------- 3 files changed, 67 insertions(+), 41 deletions(-) create mode 100644 pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx diff --git a/menu/navigation.json b/menu/navigation.json index a107c97853..dd7f81c637 100644 --- a/menu/navigation.json +++ b/menu/navigation.json @@ -1020,6 +1020,10 @@ "label": "Adding AI to IntelliJ IDEA using Continue", "slug": "adding-ai-to-intellij-using-continue" }, + { + "label": "Adding AI to the Zed IDE", + "slug": "adding-ai-to-zed-ide" + }, { "label": "Integrating Generative APIs with popular AI tools", "slug": "integrating-generative-apis-with-popular-tools" 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 new file mode 100644 index 0000000000..84ecaa27f1 --- /dev/null +++ b/pages/generative-apis/reference-content/adding-ai-to-zed-ide.mdx @@ -0,0 +1,60 @@ +--- +meta: + title: Adding AI to the Zed IDE using Generative APIs + description: Learn how to integrate AI-powered code models into Zed using Scaleway's Generative APIs. +content: + h1: Adding AI to to the Zed IDE using Generative APIs + 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. +tags: generative-apis ai machine-learning language-models code-assistance vs-code continue +validation_date: 2025-03-18 +posted_date: 2025-03-18 +--- + +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. + + Your 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. 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. 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 f5393a8e89..22279161ca 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 @@ -183,48 +183,10 @@ Continue Dev is a library that provides AI-powered coding assistance. Scaleway's 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, set up your Scaleway secret key as `OPENAI_API_KEY` environment variable and restart Zed. + + Refer to our dedicated documentation for [connecting Zed to Generative APIs](/generative-apis/reference-content/adding-ai-to-zed-ide/) + -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 From fc04ed0cd9d85bbdc96c107e3c021297d188dbbf Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Wed, 19 Mar 2025 11:17:08 +0100 Subject: [PATCH 3/6] Apply suggestions from code review Co-authored-by: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> --- .../reference-content/adding-ai-to-zed-ide.mdx | 8 ++++---- .../integrating-generative-apis-with-popular-tools.mdx | 4 ++-- 2 files changed, 6 insertions(+), 6 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 84ecaa27f1..33fb241a9a 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 @@ -10,7 +10,7 @@ validation_date: 2025-03-18 posted_date: 2025-03-18 --- -Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs supports Zed AI code completion and more. +Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs support Zed AI code completion and more. @@ -52,9 +52,9 @@ Zed is an IDE (Integrated Development Environment) including AI coding assistanc 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. +3. Scroll down to the OpenAI configuration, and paste your Scaleway secret key as API Key credentials. - Your 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. + 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 answer. 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. +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. 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 22279161ca..dc4596cc02 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 | | [Open Web UI](#open-webui) | User interface for chatbot applications | Creating web chatbot interfaces, RAG agents | Low | @@ -181,7 +181,7 @@ Continue Dev is a library that provides AI-powered coding assistance. Scaleway's ## 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. +Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs support Zed AI code completion and more. Refer to our dedicated documentation for [connecting Zed to Generative APIs](/generative-apis/reference-content/adding-ai-to-zed-ide/) From 834c05b8b7abae1cef0717d20f4f416e4693ced1 Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Wed, 19 Mar 2025 11:18:25 +0100 Subject: [PATCH 4/6] fix(genapi): fix dates --- .../adding-ai-to-intellij-using-continue.mdx | 5 +++-- .../adding-ai-to-vscode-using-continue.mdx | 5 +++-- .../reference-content/adding-ai-to-zed-ide.mdx | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index cfe9a9dc66..bc8ea012ff 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -6,8 +6,9 @@ content: h1: Adding AI to IntelliJ IDEA using Continue and Generative APIs 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. tags: generative-apis ai machine-learning language-models code-assistance intellij-idea continue -validation_date: 2025-02-14 -posted_date: 2025-02-14 +dates: + validation_date: 2025-02-14 + posted_date: 2025-02-14 --- AI-driven coding is revolutionizing software development by automating repetitive tasks, generating code snippets, improving code quality, and identifying potential bugs. diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index 095b10ae65..c2e5da0541 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -6,8 +6,9 @@ content: h1: Adding AI to VS Code using Continue and Generative APIs 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. tags: generative-apis ai machine-learning language-models code-assistance vs-code continue -validation_date: 2025-02-14 -posted_date: 2025-02-14 +dates: + validation_date: 2025-02-14 + posted_date: 2025-02-14 --- 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. 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 33fb241a9a..e295957233 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 @@ -6,13 +6,13 @@ content: h1: Adding AI to to the Zed IDE using Generative APIs 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. tags: generative-apis ai machine-learning language-models code-assistance vs-code continue -validation_date: 2025-03-18 -posted_date: 2025-03-18 +dates: + validation_date: 2025-03-18 + posted_date: 2025-03-18 --- Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs support Zed AI code completion and more. - - A Scaleway account logged into the [console](https://console.scaleway.com) From a43dbacb6fc89910207951acbb6b10fa88d86543 Mon Sep 17 00:00:00 2001 From: Rowena Jones <36301604+RoRoJ@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:13:19 +0100 Subject: [PATCH 5/6] Apply suggestions from code review --- .../adding-ai-to-intellij-using-continue.mdx | 4 ++-- .../reference-content/adding-ai-to-vscode-using-continue.mdx | 4 ++-- .../reference-content/adding-ai-to-zed-ide.mdx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx index bc8ea012ff..63b6ae1096 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-intellij-using-continue.mdx @@ -7,8 +7,8 @@ content: 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. tags: generative-apis ai machine-learning language-models code-assistance intellij-idea continue dates: - validation_date: 2025-02-14 - posted_date: 2025-02-14 + validation: 2025-02-14 + posted: 2025-02-14 --- AI-driven coding is revolutionizing software development by automating repetitive tasks, generating code snippets, improving code quality, and identifying potential bugs. diff --git a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx index c2e5da0541..60e3f2dc6d 100644 --- a/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx +++ b/pages/generative-apis/reference-content/adding-ai-to-vscode-using-continue.mdx @@ -7,8 +7,8 @@ content: 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. tags: generative-apis ai machine-learning language-models code-assistance vs-code continue dates: - validation_date: 2025-02-14 - posted_date: 2025-02-14 + validation: 2025-02-14 + posted: 2025-02-14 --- 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. 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 e295957233..ee5b51e387 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 @@ -7,8 +7,8 @@ content: 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. tags: generative-apis ai machine-learning language-models code-assistance vs-code continue dates: - validation_date: 2025-03-18 - posted_date: 2025-03-18 + validation: 2025-03-18 + posted: 2025-03-18 --- Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs support Zed AI code completion and more. From e9972d46b886cc2ac789a9ce4a84a9ad0636e0d8 Mon Sep 17 00:00:00 2001 From: Rowena Date: Thu, 20 Mar 2025 09:17:42 +0100 Subject: [PATCH 6/6] fix(conflicts): fix zed file conflicts --- .../integrating-generative-apis-with-popular-tools.mdx | 10 +--------- 1 file changed, 1 insertion(+), 9 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 dc4596cc02..d9574abb06 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 @@ -25,7 +25,6 @@ The following table compares AI tools and libraries supported by Scaleway's Gene | [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 | -| [Open Web UI](#open-webui) | User interface for chatbot applications | Creating web chatbot interfaces, RAG agents | Low | | [cURL/Python](#custom-http-integrations) | Direct HTTP API calls for custom integrations | Custom applications, data processing | High | @@ -196,13 +195,6 @@ Chatbox AI is a powerful AI client and smart assistant, compatible with Scaleway Refer to our dedicated documentation for [installing and configuring Chatbox AI with Generative APIs](/tutorials/configure-chatboxai-with-generative-apis/) -## Open WebUI - -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. - - Follow our guide on [installing and configuring Open WebUI with Generative APIs](/tutorials/deploy-openwebui-with-generative-apis/) to get started. - - ## Custom HTTP integrations You can interact with Scaleway's Generative APIs directly using any HTTP client. @@ -246,4 +238,4 @@ print(response.json()["choices"][0]["message"]["content"]) ``` Make sure to replace `` with your actual API key. - + \ No newline at end of file