From a4c643bb2010677d91e03d955cd1fba36a6aa4b2 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 20 Feb 2024 21:15:48 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20add=20full=20example=20to=20tab-?= =?UTF-8?q?autocomplete=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/walkthroughs/tab-autocomplete.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/docs/walkthroughs/tab-autocomplete.md b/docs/docs/walkthroughs/tab-autocomplete.md index c6fd9ba5b..6579a21a1 100644 --- a/docs/docs/walkthroughs/tab-autocomplete.md +++ b/docs/docs/walkthroughs/tab-autocomplete.md @@ -16,7 +16,7 @@ Once it has been downloaded, you should begin to see completions in VS Code. All of the configuration options available for chat models are available to use for tab-autocomplete. For example, if you wanted to use a remote Ollama instance you would edit your `config.json` like this: -```json +```json title=~/.continue/config.json { "tabAutocompleteModel": { "title": "Tab Autocomplete Model", @@ -50,6 +50,24 @@ This object allows you to customize the behavior of tab-autocomplete. The availa - `prefixPercentage`: The percentage of the input that should be dedicated to the prefix. (Number) - `template`: An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables. (String) +### Full example + +```json title=~/.continue/config.json +{ + "tabAutocompleteModel": { + "title": "Tab Autocomplete Model", + "provider": "ollama", + "model": "deepseek-coder:1.3b-base", + "apiBase": "https://" + }, + "tabAutocompleteOptions": { + "useCopyBuffer": false, + "maxPromptTokens": 400, + "prefixPercentage": 0.5 + } +} +``` + ## Troubleshooting ### I'm not seeing any completions