Merge pull request #4304 from ethereum/warnings

warning fixes
pull/4243/head
yann300 12 months ago committed by GitHub
commit 97a9bbbc04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/remix-ide/src/app/plugins/copilot/suggestion-service/copilot-suggestion.ts
  2. 2
      libs/remix-ui/terminal/src/lib/terminalWelcome.tsx

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

@ -54,7 +54,7 @@ const TerminalWelcomeMessage = ({packageJson, storage}) => {
ethers.js ethers.js
</a>{' '} </a>{' '}
</li> </li>
<li key="ethers-console"> <li key="gpt">
gpt <i>&lt;your question here&gt;</i> {' '} gpt <i>&lt;your question here&gt;</i> {' '}
</li> </li>
</ul> </ul>

Loading…
Cancel
Save