Skip to content

Commit

Permalink
Merge pull request janhq#2187 from janhq/0xSage-patch-4
Browse files Browse the repository at this point in the history
docs: Update 01-integrate-continue.mdx
  • Loading branch information
0xHieu01 authored Feb 28, 2024
2 parents 43ae502 + 499aa4a commit c36de31
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/docs/guides/07-integrations/01-integrate-continue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,28 @@ Edit the `config.json` file and include the following configuration.
```

- Ensure that the `provider` is `openai`.
- Ensure that the `model` is the same as the one you enabled in the Jan API Server.
- Ensure that the `model` is the ID of the running model. You can check for the respective ID in System Monitor.
- Ensure that the `apiBase` is `http://localhost:1337/v1`.
- Ensure that the `apiKey` is `EMPTY`.

### 4. Ensure the Using Model Is Activated in Jan
### 4. Double Check the Model is Running

Navigate to `Settings` > `Models`. Activate the model that you want to use in Jan by clicking the **three dots (⋮)** and **start model**.
Open up the `System Monitor` to check that your model is currently running.

If there are not active models, go to `Settings` > `My Models`. Click on the **three dots (⋮)** and **start model**.

![Active Models](assets/01-start-model.png)

### 5. Try Out the Integration of Jan and Continue in VS Code
### 5. Use Continue in VS Code

#### Asking questions about the code

- Highlight a code snippet and press `Command + Shift + M` to open the **Left Panel**.
- Highlight a code snippet and press `Command + M` to open the Continue Extension in VSCode.
- Select Jan at the bottom and ask a question about the code, for example, `Explain this code`.

![Continue Interactions](assets/01-continue-ask.png)

#### Editing the code with the help of a large language model
#### Editing the code directly

- Highlight a code snippet and press `Command + Shift + L` and input your edit request, for example, `Write comments for this code`.

Expand Down

0 comments on commit c36de31

Please sign in to comment.