Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fvciprian/deepseek-r1-ext


https://github.com/fvciprian/deepseek-r1-ext

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

        

# deepseek-r1-ext

This VS Code extension provides a chat interface for the [DeepSeek-R1](https://github.com/deepseek-ai/DeepSeek-R1) model.

Currently it's using the deepseek-r1:7b which is a smaller model distilled from DeepSeek-R1 with better performance so it can be run on local hardware.

## Features

- Chat with the DeepSeek R1 model directly within VS Code.
- Stream responses from the model in real-time.
- Simple and intuitive webview interface.

## Requirements

- VS Code version 1.96.0 or higher.
- [Ollama](https://ollama.com/download/windows) to interact with the DeepSeek R1 model.

## Installation

- Download and install [Ollama](https://ollama.com/download/windows)
- Download and install [deepseek-r1-ext-0.0.1.vsix](./deepseek-r1-ext-0.0.1.vsix)

To install a .vsix file in VS Code:

Go to the Extensions view.
Click Views and More Actions...
Select Install from VSIX...
or

in your terminal, run the following commands:

```
code --install-extension deepseek-r1-ext-0.0.1.vsix
```

To make sure the model is downloaded run the following command in the terminal:

```
ollama run deepseek-r1:7b
```

## Usage

- After the extension is installed you can start it by typing this command:

![Deep Seek R1 Chat](./img/command.png)

- Ask anything

![Ask](./img/ask.png)

## Contributing

If you want to contribute to this extension or just want to use a different version of the deepseek-r1 model:

- Install Ollama api
```
npm install ollama
```
- Check full list of models [here](https://ollama.com/library/deepseek-r1)
- In extension.ts modify this line of code
```
const streamResponse = await ollama.chat({
model:'deepseek-r1:7b',
messages: [{role: 'user', content: prompt}],
stream: true
});
```
- Run and Debug extension

![Run](./img/run.png)

- Package extension

In VS Code terminal run:

```
vsce package
```

## Extension Settings

This extension does not add any VS Code settings through the `contributes.configuration` extension point.

## Known Issues

- None at the moment.

## Release Notes

### 0.0.1

- Initial release of DeepSeek R1 extension.

---

**Enjoy!**