Skip to content

Commit

Permalink
fix settings ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Dec 6, 2023
1 parent c4f482a commit b5ca83c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class CopilotSuggestion extends Plugin {
const options: SuggestOptions = {
do_sample: false,
top_k: 0,
temperature: max_new_tokens || 0,
max_new_tokens: temperature || 0
temperature: temperature || 0,
max_new_tokens: max_new_tokens || 0
}
return this.service.suggest(this.context ? this.context + '\n\n' + content : content, options)
}
Expand All @@ -76,4 +76,4 @@ export class CopilotSuggestion extends Plugin {
async uninstall() {
this.service.terminate()
}
}
}

0 comments on commit b5ca83c

Please sign in to comment.