|
|
@ -50,8 +50,8 @@ export class CopilotSuggestion extends Plugin { |
|
|
|
const options: SuggestOptions = { |
|
|
|
const options: SuggestOptions = { |
|
|
|
do_sample: false, |
|
|
|
do_sample: false, |
|
|
|
top_k: 0, |
|
|
|
top_k: 0, |
|
|
|
temperature: max_new_tokens || 0, |
|
|
|
temperature: temperature || 0, |
|
|
|
max_new_tokens: temperature || 0 |
|
|
|
max_new_tokens: max_new_tokens || 0 |
|
|
|
} |
|
|
|
} |
|
|
|
return this.service.suggest(this.context ? this.context + '\n\n' + content : content, options) |
|
|
|
return this.service.suggest(this.context ? this.context + '\n\n' + content : content, options) |
|
|
|
} |
|
|
|
} |
|
|
@ -76,4 +76,4 @@ export class CopilotSuggestion extends Plugin { |
|
|
|
async uninstall() { |
|
|
|
async uninstall() { |
|
|
|
this.service.terminate() |
|
|
|
this.service.terminate() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|