✨ release tab-autocomplete in main

This commit is contained in:
Nate Sesti 2024-03-05 22:19:34 -08:00
parent e1f9ef6e78
commit 752a2dffa9
8 changed files with 21 additions and 27 deletions

View file

@ -0,0 +1,3 @@
## 0.8.15 - 2024-03-05
### Added
* Tab-autocomplete in beta

View file

@ -1,4 +0,0 @@
project: extensions/vscode
kind: Added
body: Tab-autocomplete in beta
time: 2024-03-03T19:00:39.909292-05:00

View file

@ -3,7 +3,7 @@ import { ChatMessage, CompletionOptions, ModelProvider } from "../..";
import { streamResponse } from "../stream";
// const SERVER_URL = "http://localhost:3000";
const SERVER_URL = "https://node-proxy-server-green-l6vsfbzhba-uw.a.run.app";
const SERVER_URL = "https://node-proxy-server-blue-l6vsfbzhba-uw.a.run.app";
class FreeTrial extends BaseLLM {
static providerName: ModelProvider = "free-trial";
@ -21,7 +21,7 @@ class FreeTrial extends BaseLLM {
frequency_penalty: options.frequencyPenalty,
presence_penalty: options.presencePenalty,
max_tokens: options.maxTokens,
stop: options.stop?.slice(0, 4),
stop: options.stop?.slice(0, 2),
temperature: options.temperature,
top_p: options.topP,
};

View file

@ -88,7 +88,7 @@ class Ollama extends BaseLLM {
"deepseek-33b": "deepseek-coder:33b",
"neural-chat-7b": "neural-chat:7b-v3.3",
"starcoder-1b": "starcoder:1b",
"starcoder-3b": "starcoder:3b",
"starcoder-3b": "starcoder2:3b",
"stable-code-3b": "stable-code:3b",
}[this.model] || this.model
);

View file

@ -21,7 +21,7 @@ Continue is currently in the left sidebar, but we recommend moving it to the rig
## ⚡️ Setting up tab autocomplete
1. Download [Ollama](https://ollama.ai)
2. Download starcoder:3b by running `ollama run starcoder:3b` in the terminal
2. Download starcoder2:3b by running `ollama run starcoder2:3b` in the terminal
3. That's it! You can disable autocomplete at any time by clicking the `Continue` button in the status bar (bottom right of the VS Code window)
> Learn how to customize your autocomplete experience in [our walkthrough](https://continue.dev/docs/walkthroughs/tab-autocomplete)

View file

@ -1,7 +1,7 @@
{
"name": "continue",
"icon": "media/icon.png",
"version": "0.9.80",
"version": "0.8.14",
"repository": {
"type": "git",
"url": "https://github.com/continuedev/continue"

View file

@ -116,23 +116,18 @@ export class VsCodeExtension {
const config = vscode.workspace.getConfiguration("continue");
const enabled = config.get<boolean>("enableTabAutocomplete");
// Register inline completion provider (odd versions are pre-release)
if (
parseInt(context.extension.packageJSON.version.split(".")[1]) % 2 !==
0
) {
setupStatusBar(enabled);
context.subscriptions.push(
vscode.languages.registerInlineCompletionItemProvider(
[{ pattern: "**" }],
new ContinueCompletionProvider(
this.configHandler,
this.ide,
this.tabAutocompleteModel,
),
// Register inline completion provider
setupStatusBar(enabled);
context.subscriptions.push(
vscode.languages.registerInlineCompletionItemProvider(
[{ pattern: "**" }],
new ContinueCompletionProvider(
this.configHandler,
this.ide,
this.tabAutocompleteModel,
),
);
}
),
);
// Commands
registerAllCommands(

View file

@ -5,8 +5,8 @@ import * as vscode from "vscode";
export class TabAutocompleteModel {
private _llm: ILLM | undefined;
private defaultTag: string = "starcoder:3b";
private defaultTagName: string = "Starcoder 3b";
private defaultTag: string = "starcoder2:3b";
private defaultTagName: string = "Starcoder 2 3b";
private shownOllamaWarning: boolean = false;
private shownDeepseekWarning: boolean = false;