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..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 @@ -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, 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 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 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.