Compare commits
No commits in common. "fbc588368e6c5b6e1963c03e40a51e64b44614ba" and "bdb615876df41717180c31640a8542b86326a9b3" have entirely different histories.
fbc588368e
...
bdb615876d
2 changed files with 4 additions and 7 deletions
|
@ -143,9 +143,6 @@ const tokenProvider = async (
|
|||
export const getAutoCompleteProvider = (extension: ExtensionState) => {
|
||||
const provider: vscode.InlineCompletionItemProvider = {
|
||||
async provideInlineCompletionItems(document, position, context, token) {
|
||||
if (!extension.configuration.inlineCompletion.enable) {
|
||||
return [];
|
||||
}
|
||||
try {
|
||||
const completions = await tokenProvider(extension, document, position, context, token);
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@ const KEY_INLINE_COMPLETION_TRIE_PRUNE_TIMEOUT = 'inlineCompletion.triePruneTime
|
|||
const DEFAULT_OLLAMA_HOST = 'http://localhost:11434';
|
||||
const DEFAULT_INLINE_COMPLETION_ENABLE = true;
|
||||
const DEFAULT_INLINE_COMPLETION_MODEL = 'deepseek-coder:6.7b';
|
||||
const DEFAULT_INLINE_COMPLETION_PREFIX_START = '<|prefix_start|>';
|
||||
const DEFAULT_INLINE_COMPLETION_PREFIX_ENDS = ['<|prefix_start|>', '<|prefix_end|>'].join();
|
||||
const DEFAULT_INLINE_COMPLETION_SUFFIX_START = '<|suffix_start|>';
|
||||
const DEFAULT_INLINE_COMPLETION_SUFFIX_END = '<|suffix_end|>';
|
||||
const DEFAULT_INLINE_COMPLETION_PREFIX_START = '<prefixStart>';
|
||||
const DEFAULT_INLINE_COMPLETION_PREFIX_ENDS = ['<prefixStart>', '</prefixStart>', '<prefixEnd>', '</prefixEnd>'].join();
|
||||
const DEFAULT_INLINE_COMPLETION_SUFFIX_START = '<suffixStart>';
|
||||
const DEFAULT_INLINE_COMPLETION_SUFFIX_END = '</suffixStart>';
|
||||
const DEFAULT_INLINE_COMPLETION_MAX_TOKENS = 50;
|
||||
const DEFAULT_INLINE_COMPLETION_GENERATION_TIMEOUT = 200;
|
||||
const DEFAULT_INLINE_COMPLETION_TRIE_PRUNE_TIMEOUT = 10000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue