Elffuss BraidHub

kikocis/continue public

7aa6d9f92b99 · 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 modelTimeout: 150,
10 multilineCompletions: "auto",
11 // @deprecated TO BE REMOVED
12 slidingWindowPrefixPercentage: 0.75,
13 // @deprecated TO BE REMOVED
14 slidingWindowSize: 500,
15 useCache: true,
16 onlyMyCode: true,
17 useRecentlyEdited: true,
18 disableInFiles: undefined,
19 useImports: true,
20 transform: true,
21 showWhateverWeHaveAtXMs: 300,
22 experimental_includeClipboard: true,
23 experimental_includeRecentlyVisitedRanges: true,
24 experimental_includeRecentlyEditedRanges: true,
25 experimental_includeDiff: true,
26};
27
28export const COUNT_COMPLETION_REJECTED_AFTER = 10_000;
29export const DO_NOT_COUNT_REJECTED_BEFORE = 250;
30
31export const RETRIEVAL_PARAMS = {
32 rerankThreshold: 0.3,
33 nFinal: 20,
34 nRetrieve: 50,
35 bm25Threshold: -2.5,
36 nResultsToExpandWithEmbeddings: 5,
37 nEmbeddingsExpandTo: 5,
38};