Elffuss BraidHub

kikocis/continue public

c55965a9627b · 1.0 KiBRawPermalink
1import { TabAutocompleteOptions } from "../index.js";
2
3export const DEFAULT_AUTOCOMPLETE_OPTS: TabAutocompleteOptions = {
4 disable: false,
5 maxPromptTokens: 1024,
6 prefixPercentage: 0.3,
7 maxSuffixPercentage: 0.2,
8 debounceDelay: 350,
9 multilineCompletions: "auto",
10 // @deprecated TO BE REMOVED
11 slidingWindowPrefixPercentage: 0.75,
12 // @deprecated TO BE REMOVED
13 slidingWindowSize: 500,
14 useCache: true,
15 onlyMyCode: true,
16 useRecentlyEdited: true,
17 disableInFiles: undefined,
18 useImports: true,
19 transform: true,
20 showWhateverWeHaveAtXMs: 300,
21 experimental_includeClipboard: true,
22 experimental_includeRecentlyVisitedRanges: true,
23 experimental_includeRecentlyEditedRanges: true,
24 experimental_includeDiff: true,
25};
26
27export const COUNT_COMPLETION_REJECTED_AFTER = 10_000;
28export const DO_NOT_COUNT_REJECTED_BEFORE = 250;
29
30export const RETRIEVAL_PARAMS = {
31 rerankThreshold: 0.3,
32 nFinal: 20,
33 nRetrieve: 50,
34 bm25Threshold: -2.5,
35 nResultsToExpandWithEmbeddings: 5,
36 nEmbeddingsExpandTo: 5,
37};