File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/packages/frontend/jupyter/insert-cell Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,7 @@ export function AIGenerateCodeCell({
364364
365365 function doQuery ( prevCodeContents : string ) {
366366 cancel . current = false ;
367+ setError ( "" ) ;
367368 setQuerying ( true ) ;
368369
369370 if ( showAICellGen == null ) return ;
@@ -571,7 +572,12 @@ export function AIGenerateCodeCell({
571572 >
572573 < Icon name = "arrow-left" /> Discard
573574 </ Button >
574- < Button onClick = { insert } type = "primary" disabled = { querying } >
575+ < Button
576+ size = "large"
577+ onClick = { insert }
578+ type = "primary"
579+ disabled = { querying }
580+ >
575581 < Icon name = "plus" /> Insert { capitalize ( cellStr ) }
576582 </ Button >
577583 </ Space >
@@ -688,7 +694,10 @@ export function AIGenerateCodeCell({
688694 < LLMSelector
689695 project_id = { project_id }
690696 model = { model }
691- setModel = { setModel }
697+ setModel = { ( model ) => {
698+ setError ( "" ) ;
699+ setModel ( model ) ;
700+ } }
692701 />
693702 < Button
694703 onClick = { ( ) => setShowAICellGen ( null ) }
You can’t perform that action at this time.
0 commit comments