From 8b5507ee4509d77ae98adfae23b61db0da2f3add Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 6 Dec 2023 15:27:51 +0100 Subject: [PATCH] fix settings ordering --- .../copilot/suggestion-service/copilot-suggestion.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/copilot/suggestion-service/copilot-suggestion.ts b/apps/remix-ide/src/app/plugins/copilot/suggestion-service/copilot-suggestion.ts index 4b12ba9a7c..f58b76888d 100644 --- a/apps/remix-ide/src/app/plugins/copilot/suggestion-service/copilot-suggestion.ts +++ b/apps/remix-ide/src/app/plugins/copilot/suggestion-service/copilot-suggestion.ts @@ -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) } @@ -76,4 +76,4 @@ export class CopilotSuggestion extends Plugin { async uninstall() { this.service.terminate() } -} \ No newline at end of file +}