File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ interface UseWandProps {
111111 onGeneratedContent : ( content : string ) => void
112112 onStreamChunk ?: ( chunk : string ) => void
113113 onStreamStart ?: ( ) => void
114- onGenerationComplete ?: ( prompt : string , generatedContent : string ) => void
115114}
116115
117116export function useWand ( {
@@ -122,7 +121,6 @@ export function useWand({
122121 onGeneratedContent,
123122 onStreamChunk,
124123 onStreamStart,
125- onGenerationComplete,
126124} : UseWandProps ) {
127125 const queryClient = useQueryClient ( )
128126 const { navigateToSettings } = useSettingsNavigation ( )
@@ -285,10 +283,6 @@ export function useWand({
285283 { role : 'assistant' , content : generatedContent } ,
286284 ] )
287285 }
288-
289- if ( onGenerationComplete ) {
290- onGenerationComplete ( currentPrompt , generatedContent )
291- }
292286 }
293287
294288 logger . debug ( 'Wand generation completed' , {
@@ -334,7 +328,6 @@ export function useWand({
334328 onGeneratedContent ,
335329 onStreamChunk ,
336330 onStreamStart ,
337- onGenerationComplete ,
338331 queryClient ,
339332 contextParams ?. tableId ,
340333 contextParams ?. sandboxId ,
You can’t perform that action at this time.
0 commit comments