From b5b050f5778cdd8028e1f7ade2d3fd60586bdd75 Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 5 Dec 2023 14:27:25 +0100 Subject: [PATCH] warning fixes --- .../plugins/copilot/suggestion-service/copilot-suggestion.ts | 4 ++-- libs/remix-ui/terminal/src/lib/terminalWelcome.tsx | 2 +- 2 files 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 9ed52afe98..4b12ba9a7c 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 + temperature: max_new_tokens || 0, + max_new_tokens: temperature || 0 } return this.service.suggest(this.context ? this.context + '\n\n' + content : content, options) } diff --git a/libs/remix-ui/terminal/src/lib/terminalWelcome.tsx b/libs/remix-ui/terminal/src/lib/terminalWelcome.tsx index 1c7821a461..24c37b400e 100644 --- a/libs/remix-ui/terminal/src/lib/terminalWelcome.tsx +++ b/libs/remix-ui/terminal/src/lib/terminalWelcome.tsx @@ -54,7 +54,7 @@ const TerminalWelcomeMessage = ({packageJson, storage}) => { ethers.js {' '} -
  • +
  • gpt <your question here> {' '}