forked from openvinotoolkit/openvino_contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenVINO Code (openvinotoolkit#721)
- Freeze Huggingface dependencies, downgrade to fix model outputs - Add experimental support for code completion streaming - Add DEVELOPER.md - Update settings descriptions
- Loading branch information
Showing
15 changed files
with
236 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# OpenVINO Code - VSCode extension for AI code completion with OpenVINO™ | ||
|
||
VSCode extension for helping developers writing code with AI code assistant. OpenVINO Code is working with Large Language Model for Code (Code LLM) deployed on local or remote server. | ||
|
||
## Installing Extension | ||
|
||
VSCode extension can be installed from built `*.vsix` file: | ||
|
||
1. Open `Extensions` side bar in VSCode. | ||
2. Click on the menu icon (three dots menu icon aka "meatballs" icon) in the top right corner of Extensions side panel. | ||
3. Select "Instal from VSIX..." option and select extension file. | ||
|
||
For instructions on how to build extension `vsix` file please refer to the [Build Extension](#build-extension) section. | ||
|
||
## Extension Configuration | ||
|
||
To work with extension you should configure endpoint to server with Code LLM where requests will be sent: | ||
|
||
1. Open extension settings. | ||
2. Fill `Server URL` parameter with server endpoint URL. | ||
|
||
For instructions on how to start server locally please refer to the [server README.md](./server/README.md). | ||
|
||
Also in extension settings you can configure special tokens. | ||
|
||
## Working with Extension | ||
|
||
TDB | ||
|
||
1. Create a new python file | ||
2. Try typing `def main():` | ||
3. Press shortcut buttons (TBD) for code completion | ||
|
||
### Checking output | ||
|
||
You can see input to and output from the code generation API: | ||
|
||
1. Open VSCode `OUTPUT` panel | ||
2. Select extension output source from the dropdown menu | ||
|
||
## Developing | ||
|
||
> **Prerequisite:** You should have `Node.js` installed (v16 and above). | ||
#### Install dependencies | ||
|
||
To install dependencies run the following command from the project root directory: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
#### Run Extension from Source & Debugging | ||
|
||
Open `Run and Debug` side bar in VSCode and click `Launch Extension` (or press `F5`). | ||
|
||
#### Build Extension | ||
|
||
To build extension and generate `*.vsix` file for further installation in VSCode, run the following command: | ||
|
||
``` | ||
npm run vsce:package | ||
``` | ||
|
||
#### Linting | ||
|
||
To perform linting with `ESLint`, execute the following command: | ||
|
||
``` | ||
npm run lint | ||
``` | ||
|
||
#### Testing | ||
|
||
TBD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.