Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Lisoveliy/StarCoderEx
Extension for using alternative GitHub Copilot (StarCoder API) in VSCode
https://github.com/Lisoveliy/StarCoderEx
Last synced: 5 days ago
JSON representation
Extension for using alternative GitHub Copilot (StarCoder API) in VSCode
- Host: GitHub
- URL: https://github.com/Lisoveliy/StarCoderEx
- Owner: Lisoveliy
- License: mit
- Archived: true
- Created: 2023-05-05T11:15:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T12:16:56.000Z (7 months ago)
- Last Synced: 2024-08-01T16:46:33.120Z (3 months ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=Lisoveliy.starcoderex
- Size: 770 KB
- Stars: 100
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# StarCoderEx
StarCoderExtension for AI Code generation
(PROJECT IS FROZEN, Make fork if you need new feature or fix bug)
Original AI: https://huggingface.co/bigcode/starcoder
## FeaturesAI prompt generating code for you from cursor selection.
![demo](https://user-images.githubusercontent.com/56991906/236499941-acd34143-beea-4e26-9a75-8c66950f7513.gif)Usage:
***If you use extension on first time***
1. Register on https://huggingface.co2. Generate bearer token from this page https://huggingface.co/settings/tokens
***After***
1. Select your prompt in code using cursor selection
2. Press Ctrl+Alt+P for generating prompt OR type in shell (Ctrl+Shift+P) `StarCoderEx: Init prompt with selected code`
3. (If you use extension on first time) enter bearer token from https://huggingface.co/settings/tokens (page will be opened)
4. PROFIT!
5. ***If you want to continue request select all output including original prompt and repeat steps***
## Local running
For local model you can use that application https://github.com/LucienShui/huggingface-vscode-endpoint-server, and enter URL to that server in extension settings
## Notes for prompt
Good prompt:
//POST Request on JSON to url variable
//Params: url, object
function
Good variant use Language syntax like "function" from JS
Result:![image](https://user-images.githubusercontent.com/56991906/236544392-e170c33e-11c4-489a-bf76-004c95f57526.png)
Bad prompt:
//Create JavaScript function for send POST request using fetch
Result:
![image](https://user-images.githubusercontent.com/56991906/236544491-c60991d1-3038-4177-b182-be2e8919eae8.png)
## Extension Settings
This extension contributes the following settings:
* `starcoderex.countofrequests`: Set requests count per command (Default: 4. Less count -> less answer, faster loading)
* `starcoderex.bearertoken`: Set bearer token for API https://huggingface.co
* `starcoderex.apiurl`: Set custom API Url## Release Notes
### 1.0.5
Fixed request for token if selection is empty
### 1.0.41
Republish for fix error on Visual Studio Code Store
### 1.0.4
Added the ability to change the API URL
### 1.0.31
Added error message when reference API is offline
### 1.0.22
Added cancel button
### 1.0.2
Fixed blinking code when output was adding to editorAdded message error when internet is disconnected
Added commands in command palette
### 1.0.0
Fixed sometimes removing code
### 0.9.54
Downgraded VS Code engine supported to 1.67.0
### 0.9.5
Minor FixesAdded progress
### 0.9.42
Fix reset with bearer tokenFix reset with bearer token when selection is empty
### 0.9.3
Fix reset with bearer token### 0.9.0
First beta release