File tree 1 file changed +11
-2
lines changed
src/packages/frontend/jupyter/insert-cell
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,7 @@ export function AIGenerateCodeCell({
364
364
365
365
function doQuery ( prevCodeContents : string ) {
366
366
cancel . current = false ;
367
+ setError ( "" ) ;
367
368
setQuerying ( true ) ;
368
369
369
370
if ( showAICellGen == null ) return ;
@@ -571,7 +572,12 @@ export function AIGenerateCodeCell({
571
572
>
572
573
< Icon name = "arrow-left" /> Discard
573
574
</ Button >
574
- < Button onClick = { insert } type = "primary" disabled = { querying } >
575
+ < Button
576
+ size = "large"
577
+ onClick = { insert }
578
+ type = "primary"
579
+ disabled = { querying }
580
+ >
575
581
< Icon name = "plus" /> Insert { capitalize ( cellStr ) }
576
582
</ Button >
577
583
</ Space >
@@ -688,7 +694,10 @@ export function AIGenerateCodeCell({
688
694
< LLMSelector
689
695
project_id = { project_id }
690
696
model = { model }
691
- setModel = { setModel }
697
+ setModel = { ( model ) => {
698
+ setError ( "" ) ;
699
+ setModel ( model ) ;
700
+ } }
692
701
/>
693
702
< Button
694
703
onClick = { ( ) => setShowAICellGen ( null ) }
You can’t perform that action at this time.
0 commit comments