Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisoveliy committed Jul 12, 2023
1 parent 088e4dd commit 553f6a3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ Usage:
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 */
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)
Expand All @@ -57,6 +62,8 @@ This extension contributes the following settings:

## 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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Extension for using alternative GitHub Copilot (StarCoder API) in VSCode",
"repository": "https://github.com/Lisoveliy/starcoderex",
"icon": "logo.png",
"version": "1.0.41",
"version": "1.0.5",
"publisher": "Lisoveliy",
"engines": {
"vscode": "^1.67.0"
Expand Down
1 change: 1 addition & 0 deletions src/commands/scansel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default async function (){
let text = editor.document.getText(selection);
if(text === ""){
vscode.window.showWarningMessage("Empty selection");
return;
}
console.log("Prompt: ", text);
let result: string | null;
Expand Down
1 change: 0 additions & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default async (input: string): Promise<string | null> =>{
return null;
}else {
vscode.window.showWarningMessage("Service turned off right now. Try later!");
updatetoken();
}
}
let output = ((await response.json()) as ResponseModel[])[0].generated_text;
Expand Down

0 comments on commit 553f6a3

Please sign in to comment.