Merge branch 'main' into nate/tool-use
This commit is contained in:
commit
50dcb5834f
3 changed files with 5 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ export const getSnippets = (
|
|||
...payload.clipboardSnippets,
|
||||
...shuffleArray(
|
||||
filterSnippetsAlreadyInCaretWindow(
|
||||
[...payload.rootPathSnippets],
|
||||
[...payload.rootPathSnippets, ...payload.importDefinitionSnippets],
|
||||
helper.prunedCaretWindow,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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