Skip to content

Commit 5a1d8a9

Browse files
crStivAniket-Engg
authored andcommitted
Update remix-ui-terminal.tsx
1 parent 62a4c29 commit 5a1d8a9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
235235
try {
236236
if (script.trim().startsWith('git')) {
237237
// await this.call('git', 'execute', script) code might be used in the future
238-
// TODO: rm gpt or redirect gpt to sol-pgt
239-
} else if (script.trim().startsWith('gpt')) {
240-
call('terminal', 'log',{ type: 'warn', value: `> ${script}` })
241-
await call('remixAI', 'solidity_answer', script) // No streaming supported in terminal
242-
_paq.push(['trackEvent', 'ai', 'remixAI', 'askFromTerminal'])
243-
} else if (script.trim().startsWith('sol-gpt')) {
238+
} else if (script.trim().startsWith('gpt') || script.trim().startsWith('sol-gpt')) {
244239
call('terminal', 'log',{ type: 'warn', value: `> ${script}` })
245240
await call('remixAI', 'solidity_answer', script) // No streaming supported in terminal
246241
_paq.push(['trackEvent', 'ai', 'remixAI', 'askFromTerminal'])

0 commit comments

Comments
 (0)