Merge pull request #4310 from ethereum/yann300-patch-51

fix settings ordering
pull/5370/head
yann300 12 months ago committed by GitHub
commit e0af17332b
  1. 4
      apps/remix-ide/src/app/plugins/copilot/suggestion-service/copilot-suggestion.ts

@ -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)
} }

Loading…
Cancel
Save