|
|
@ -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, |
|
|
|
temperature: max_new_tokens || 0, |
|
|
|
max_new_tokens |
|
|
|
max_new_tokens: temperature || 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) |
|
|
|
} |
|
|
|
} |
|
|
|