improv: update suffix and prefix percentages, clean up code
This commit is contained in:
parent
73b8496ef8
commit
63e63f54cd
2 changed files with 4 additions and 3 deletions
|
|
@ -10,7 +10,6 @@ import {
|
|||
getTemplateForModel,
|
||||
} from "./AutocompleteTemplate";
|
||||
import { getStopTokens } from "./getStopTokens";
|
||||
import { AutocompleteCodeSnippet } from "../snippets/types";
|
||||
import { SnippetPayload } from "../snippets";
|
||||
import { formatSnippets } from "./formatting";
|
||||
import { getSnippets } from "./filtering";
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@ export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = {
|
|||
disable: false,
|
||||
useFileSuffix: true,
|
||||
maxPromptTokens: 1024,
|
||||
prefixPercentage: 0.85,
|
||||
maxSuffixPercentage: 0.25,
|
||||
prefixPercentage: 0.3,
|
||||
maxSuffixPercentage: 0.2,
|
||||
debounceDelay: 350,
|
||||
multilineCompletions: "auto",
|
||||
// @deprecated TO BE REMOVED
|
||||
slidingWindowPrefixPercentage: 0.75,
|
||||
// @deprecated TO BE REMOVED
|
||||
slidingWindowSize: 500,
|
||||
useCache: true,
|
||||
onlyMyCode: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue