You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to interact with powerful language models specialized in code using Scaleway's Generative APIs service.
3
+
title: How to query code models with Scaleway's Generative APIs - Integrate with VS Code and Continue
4
+
description: Learn how to interact with powerful code models using Scaleway's Generative APIs service. Integrate with VS Code and Continue for enhanced coding experience.
5
5
content:
6
-
h1: How to query code models
7
-
paragraph: Learn how to interact with powerful language models specialized in code using Scaleway's Generative APIs service.
h1: How to Query Code Models with Scaleway's Generative APIs
7
+
paragraph: Scaleway's Generative APIs service allows users to interact with powerful code models hosted on the platform. These code models are specialized in understanding code, generating code, and fixing code. With Scaleway's Generative APIs, you can integrate these code models with popular IDEs like VS Code and Continue.
Scaleway's Generative APIs service allows users to interact with powerful code models hosted on the platform.
14
+
Code models are AI-powered tools that can understand, generate, and fix code. With Scaleway's Generative APIs, you can access these code models and integrate them with your favorite IDEs.
15
15
16
-
Code models are inherently [language models](/generative-apis/how-to/query-language-models/) specialized in **understanding code**, **generating code** and **fixing code**.
16
+
### Install Continue in your IDE
17
+
[Continue](https://www.continue.dev/) is an open-source code assistant that connects AI models to your IDE. To get Continue, simply hit `install` in your IDE's marketplace:
17
18
18
-
As such, they will be available through the same interfaces as language models:
19
-
- The Scaleway [console](https://console.scaleway.com) provides complete [playground](/generative-apis/how-to/query-language-models/#accessing-the-playground), aiming to test models, adapt parameters, and observe how these changes affect the output in real-time.
20
-
- Via the [Chat API](/generative-apis/how-to/query-language-models/#querying-language-models-via-api)
19
+
*[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
For more information on how to query language models, read [our dedicated documentation](/generative-apis/how-to/query-language-models/).
22
+
## Integrating with VS Code and Continue
23
+
To get started with code models, you'll need to integrate Scaleway's Generative APIs with your IDE. Here's a step-by-step guide to integrating Continue with VS Code:
23
24
24
-
Code models are also ideal AI assistants when **added to IDEs** (integrated development environments).
25
+
1. Install the Continue extension from the VS Code marketplace or by running the command `code --install-extension continue.continue` in your terminal.
26
+
2. Create a `config.json` file in the `.continue` directory with your preferred models and API keys.
27
+
3. Open the Command Palette in VS Code by pressing `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac) and type "Continue" to access the extension's features.
25
28
26
-
<Macroid="requirements" />
29
+
### Using Continue with VS Code
30
+
Continue can be used with VS Code to automate tasks, generate code, and enhance your coding experience. Here are some examples of how to use Continue with VS Code:
27
31
28
-
- A Scaleway account logged into the [console](https://console.scaleway.com)
29
-
-[Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
30
-
- A valid [API key](/iam/how-to/create-api-keys/) for API authentication
31
-
- An IDE such as Visual Studio Code or JetBrains
32
-
33
-
## Install Continue in your IDE
34
-
35
-
[Continue](https://www.continue.dev/) is an [open-source code assistant](https://github.com/continuedev/continue) to connect AI models to your IDE.
36
-
37
-
To get Continue, simply hit `install` in your IDE's marketplace:
38
-
-[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
## Configure Scaleway as an API provider in Continue
42
-
43
-
Continue's `config.json` file will set models and providers allowed for chat, autocompletion etc.
44
-
Here is an example configuration with Scaleway's OpenAI-compatible provider:
32
+
***Code generation**: Use the "Continue: Generate Code" command to generate boilerplate code, functions, or entire classes.
33
+
***Code completion**: Use the "Continue: Complete Code" command to complete partially written code.
34
+
***Code refactoring**: Use the "Continue: Refactor Code" command to refactor code and improve its readability and maintainability.
45
35
36
+
### Configure Scaleway as an API Provider in Continue
37
+
Continue's `config.json` file will set models and providers allowed for chat, autocompletion, etc. Here is an example configuration with Scaleway's OpenAI-compatible provider:
46
38
```json
47
39
"models": [
48
40
{
@@ -53,10 +45,8 @@ Here is an example configuration with Scaleway's OpenAI-compatible provider:
53
45
}
54
46
]
55
47
```
56
-
57
48
<Messagetype="tip">
58
-
The config.json file is typically stored as `~/.continue/config.json` on Linux/macOS systems, and `%USERPROFILE%\.continue\config.json` on Windows.
49
+
The config.json file is typically stored as `~/.continue/config.json` on Linux/macOS systems, and `%USERPROFILE%\.continue\config.json` on Windows.
59
50
</Message>
60
51
61
52
Read more about how to set up your `config.json` on the [official Continue documentation](https://docs.continue.dev/reference).
title: Adding AI to VS Code using Continue and Generative APIs
4
+
description: Learn how to integrate AI-powered code models with VS Code using Continue and Scaleway's Generative APIs.
5
+
content:
6
+
h1: Adding AI to VS Code using Continue and Generative APIs
7
+
paragraph: Take your coding experience to the next level by integrating AI-powered code models with VS Code. With Continue and Scaleway's Generative APIs, you can access powerful code models that can understand, generate, and fix code.
AI-powered coding is revolutionizing the way we develop software. With the help of machine learning models, developers can automate repetitive tasks, generate code, and even fix bugs. In this tutorial, we'll show you how to integrate AI-powered code models with VS Code using Continue and Scaleway's Generative APIs.
15
+
16
+
<Macroid="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 [Visual Studio Code](https://code.visualstudio.com/) on your local machine
22
+
* Installed Continue in your VS Code marketplace
23
+
24
+
## Install Continue in VS Code
25
+
If you haven't already, install Continue in your VS Code marketplace:
26
+
27
+
*[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
28
+
29
+
## Configure Scaleway as an API Provider in Continue
30
+
Continue's `config.json` file will set models and providers allowed for chat, autocompletion, etc. Here is an example configuration with Scaleway's OpenAI-compatible provider:
31
+
```json
32
+
"models": [
33
+
{
34
+
"model": "qwen2.5-coder-32b-instruct",
35
+
"title": "Qwen2.5-coder",
36
+
"provider": "scaleway",
37
+
"apiKey": "###SCW SECRET KEY###"
38
+
}
39
+
]
40
+
```
41
+
<Messagetype="tip">
42
+
The config.json file is typically stored as `~/.continue/config.json` on Linux/macOS systems, and `%USERPROFILE%\.continue\config.json` on Windows.
43
+
</Message>
44
+
45
+
Read more about how to set up your `config.json` on the [official Continue documentation](https://docs.continue.dev/reference).
46
+
47
+
## Use AI-powered code models in VS Code
48
+
With Continue and Scaleway's Generative APIs configured, you can now access AI-powered code models in VS Code. Here are some examples of what you can do:
49
+
50
+
* Generate code: Use the code models to generate boilerplate code, functions, or even entire classes.
51
+
* Fix bugs: Let the code models help you fix bugs and errors in your code.
52
+
* Automate tasks: Use the code models to automate repetitive tasks, such as code formatting or refactoring.
53
+
54
+
## Conclusion
55
+
In this tutorial, we showed you how to integrate AI-powered code models with VS Code using Continue and Scaleway's Generative APIs. With this powerful combination, you can take your coding experience to the next level and automate many tasks. Try it out today and see the difference for yourself!
title: Integrating Generative APIs with popular tools
4
+
description: Learn how to add Generative APIs to different tools and platforms, including VS Code, IntelliJ, and more.
5
+
content:
6
+
h1: Integrating Generative APIs with popular tools
7
+
paragraph: Scaleway's Generative APIs can be integrated with a variety of tools and platforms to enhance your development workflow. In this page, we'll provide an overview of the different methods to add Generative APIs to popular tools.
Generative APIs can be used to automate tasks, generate code, and enhance your overall development experience. By integrating Generative APIs with popular tools, you can streamline your workflow and improve productivity.
15
+
16
+
## Integrating with VS Code
17
+
To integrate Generative APIs with [VS Code](https://code.visualstudio.com/), you can use the Continue extension. Here's a step-by-step guide:
18
+
19
+
* Install the Continue extension from the VS Code marketplace
20
+
* Configure the `config.json` file to include your Scaleway API key and preferred models
21
+
* Use the Continue extension to access Generative API features, such as code generation and completion
22
+
23
+
## Integrating with IntelliJ
24
+
To integrate Generative APIs with [IntelliJ](https://www.jetbrains.com/idea/), you can use the Langchain plugin. Here's a step-by-step guide:
25
+
26
+
* Install the Langchain plugin from the IntelliJ marketplace
27
+
* Configure the plugin to include your Scaleway API key and preferred models
28
+
* Use the Langchain plugin to access Generative API features, such as code generation and completion
29
+
30
+
## Integrating with other tools
31
+
32
+
Generative APIs can also be integrated with other tools, such as:
33
+
34
+
*[GitHub Copilot](https://github.com/features/copilot): A code completion tool that uses Generative APIs to suggest code
35
+
*[GitPod](https://www.gitpod.io/): A cloud-based development environment that supports Generative API integration
36
+
*[Jupyter Notebook](https://jupyter.org/): A web-based interactive computing environment that can be used with Generative APIs
37
+
38
+
## API documentation
39
+
40
+
For more information on the Generative API and its endpoints, please refer to our [API documentation](/generative-apis/api-cli/using-generative-apis/).
41
+
42
+
## Community resources
43
+
44
+
Join our community to learn more about Generative API integration and share your own experiences:
45
+
46
+
*[Scaleway Community Forum](https://community.scaleway.com/)
0 commit comments