@@ -6,7 +6,7 @@ import { selectCanvasSettingsSlice } from 'features/controlLayers/store/canvasSe
66import { selectCanvasSlice } from 'features/controlLayers/store/selectors' ;
77import { isChatGPT4oAspectRatioID , isChatGPT4oReferenceImageConfig } from 'features/controlLayers/store/types' ;
88import { getGlobalReferenceImageWarnings } from 'features/controlLayers/store/validators' ;
9- import type { ImageField } from 'features/nodes/types/common' ;
9+ import { type ImageField , zModelIdentifierField } from 'features/nodes/types/common' ;
1010import { Graph } from 'features/nodes/util/graph/generation/Graph' ;
1111import {
1212 CANVAS_OUTPUT_PREFIX ,
@@ -70,6 +70,7 @@ export const buildChatGPT4oGraph = async (state: RootState, manager: CanvasManag
7070 // @ts -expect-error: These nodes are not available in the OSS application
7171 type : 'chatgpt_4o_generate_image' ,
7272 id : getPrefixedId ( CANVAS_OUTPUT_PREFIX ) ,
73+ model : zModelIdentifierField . parse ( model ) ,
7374 positive_prompt : positivePrompt ,
7475 aspect_ratio : bbox . aspectRatio . id ,
7576 reference_images,
@@ -100,6 +101,7 @@ export const buildChatGPT4oGraph = async (state: RootState, manager: CanvasManag
100101 // @ts -expect-error: These nodes are not available in the OSS application
101102 type : 'chatgpt_4o_edit_image' ,
102103 id : getPrefixedId ( CANVAS_OUTPUT_PREFIX ) ,
104+ model : zModelIdentifierField . parse ( model ) ,
103105 positive_prompt : positivePrompt ,
104106 aspect_ratio : bbox . aspectRatio . id ,
105107 base_image : { image_name } ,
0 commit comments