fix settings ordering

pull/5370/head
yann300 1 year ago
parent 5eaa80f9a0
commit 8b5507ee45
  1. 6
      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()
}
}
}

Loading…
Cancel
Save