Skip to content

Commit b79cbaf

Browse files
authored
Revert "feat(genai): add content for Continue Dev documentation for GenAPIs (…" (#4465)
This reverts commit 0f66bb5.
1 parent 4ea58e5 commit b79cbaf

5 files changed

+31
-577
lines changed

menu/navigation.json

-12
Original file line numberDiff line numberDiff line change
@@ -956,18 +956,6 @@
956956
{
957957
"label": "Data privacy",
958958
"slug": "data-privacy"
959-
},
960-
{
961-
"label": "Adding AI to VS Code using Continue",
962-
"slug": "adding-ai-to-vscode-using-continue"
963-
},
964-
{
965-
"label": "Adding AI to IntelliJ IDEA using Continue",
966-
"slug": "adding-ai-to-intellij-using-continue"
967-
},
968-
{
969-
"label": "Integrating Generative APIs with popular AI tools",
970-
"slug": "integrating-generative-apis-with-popular-tools"
971959
}
972960
],
973961
"label": "Additional Content",
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
meta:
3-
title: How to query code models with Scaleway's Generative APIs
4-
description: Learn how to interact with powerful code models using Scaleway's Generative APIs service. Integrate with VS Code and IntelliJ for enhanced coding experience.
3+
title: How to query code models
4+
description: Learn how to interact with powerful language models specialized in code using Scaleway's Generative APIs service.
55
content:
6-
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 IntelliJ.
8-
tags: generative-apis ai-data language-models code-models chat-completions-api scaleway-continue vs-code intellij
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.
8+
tags: generative-apis ai-data language-models code-models chat-completions-api
99
dates:
10-
validation: 2025-02-14
10+
validation: 2024-12-09
1111
posted: 2024-12-09
1212
---
1313

@@ -28,100 +28,35 @@ Code models are also ideal AI assistants when **added to IDEs** (integrated deve
2828
- A Scaleway account logged into the [console](https://console.scaleway.com)
2929
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
3030
- A valid [API key](/iam/how-to/create-api-keys/) for API authentication
31-
- Python 3.7+ installed on your system
3231
- An IDE such as Visual Studio Code or JetBrains
3332

34-
### Querying code models with Scaleway's Generative APIs
35-
36-
1. Set up the OpenAI Python SDK:
37-
- Install the SDK by running:
38-
```bash
39-
pip install openai
40-
```
41-
- Configure the SDK with your API key and Scaleway's API base URL:
42-
```python
43-
from openai import OpenAI
44-
45-
client = OpenAI(
46-
base_url="https://api.scaleway.ai/v1",
47-
api_key="###SCW_SECRET_KEY###"
48-
)
49-
```
50-
Replace `"###SCW_SECRET_KEY###"` with your actual API secret key.
51-
52-
2. Make an API request:
53-
- To generate code or receive assistance, send a request to the chat completion endpoint:
54-
```python
55-
completion = client.chat.completions.create(
56-
model="qwen2.5-coder-32b-instruct",
57-
messages=[{"role": "user", "content": "Write a Python function to sort a list using quicksort."}],
58-
temperature=0.7,
59-
max_tokens=150
60-
)
61-
62-
print(completion.choices[0].message.content)
63-
```
64-
This will generate a Python function implementing the quicksort algorithm.
65-
66-
67-
## Integrating Continue in VS Code and JetBrains IntelliJ
68-
69-
[Continue](https://www.continue.dev/) is an open-source code assistant that connects AI models to your IDE. It is available for Visual Studio Code (VS Code) and JetBrains IntelliJ:
70-
71-
* [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
72-
* [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/22707-continue)
73-
74-
### Installation of Continue
75-
76-
#### For Visual Studio Code
77-
78-
1. Open VS Code and navigate to the **Extensions** view (`Ctrl+Shift+X`).
79-
2. Type `Continue` in the search bar and click **Install**.
80-
3. The **Continue** icon should appear on the sidebar.
81-
82-
#### For JetBrains IntelliJ
83-
84-
1. Open your JetBrains IDE and go to **Settings** (`Ctrl+Alt+S`).
85-
2. Select **Plugins** and search for `Continue` in the marketplace.
86-
3. Click **Install**. The `Continue` icon should appear on the toolbar.
87-
88-
### Configuration of Continue
89-
90-
1. Locate the configuration file. The `config.json` file is typically found at:
91-
- `~/.continue/config.json` on Linux/macOS
92-
- `%USERPROFILE%\.continue\config.json` on Windows
93-
94-
2. Configure Continue to use Scaleway's API:
95-
- Add the following configuration:
96-
```json
97-
{
98-
"models": [
99-
{
100-
"model": "qwen2.5-coder-32b-instruct",
101-
"title": "Qwen2.5-coder",
102-
"provider": "scaleway",
103-
"apiKey": "###SCW_SECRET_KEY###"
104-
}
105-
]
106-
}
107-
```
108-
<Message type="tip">
109-
Read more about how to set up your `config.json` on the [official Continue documentation](https://docs.continue.dev/reference).
110-
</Message>
111-
3. Restart your IDE after you have modified and saved the configuration file.
112-
4. 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.
33+
## Install Continue in your IDE
11334

114-
<Message type="tip">
115-
Refer to our dedicated documentation for detailed information on how to integrate Continue in your favourite IDE.
116-
- [Integrating Continue Dev with Visual Studio Code](/generative-apis/reference-content/adding-ai-to-vscode-using-continue/)
117-
- [Integrating Continue Dev with IntelliJ IDEA](/generative-apis/reference-content/adding-ai-to-intellij-using-continue/)
118-
</Message>
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)
39+
- [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/22707-continue)
40+
41+
## Configure Scaleway as an API provider in Continue
11942

120-
### Using Continue with your IDE
121-
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:
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:
12245

123-
* Code generation: Use the `Continue: Generate Code` command to generate boilerplate code, functions, or entire classes.
124-
* Code completion: Use the `Continue: Complete Code` command to complete partially written code.
125-
* Code refactoring: Use the `Continue: Refactor Code` command to refactor code and improve its readability and maintainability.
46+
```json
47+
"models": [
48+
{
49+
"model": "qwen2.5-coder-32b-instruct",
50+
"title": "Qwen2.5-coder",
51+
"provider": "scaleway",
52+
"apiKey": "###SCW SECRET KEY###"
53+
}
54+
]
55+
```
56+
57+
<Message type="tip">
58+
The config.json file is typically stored as `~/.continue/config.json` on Linux/macOS systems, and `%USERPROFILE%\.continue\config.json` on Windows.
59+
</Message>
12660

61+
Read more about how to set up your `config.json` on the [official Continue documentation](https://docs.continue.dev/reference).
12762

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

-120
This file was deleted.

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

-106
This file was deleted.

0 commit comments

Comments
 (0)