@@ -6,7 +6,7 @@ import { selectCanvasSettingsSlice } from 'features/controlLayers/store/canvasSe
6
6
import { selectCanvasSlice } from 'features/controlLayers/store/selectors' ;
7
7
import { isChatGPT4oAspectRatioID , isChatGPT4oReferenceImageConfig } from 'features/controlLayers/store/types' ;
8
8
import { 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' ;
10
10
import { Graph } from 'features/nodes/util/graph/generation/Graph' ;
11
11
import {
12
12
CANVAS_OUTPUT_PREFIX ,
@@ -70,6 +70,7 @@ export const buildChatGPT4oGraph = async (state: RootState, manager: CanvasManag
70
70
// @ts -expect-error: These nodes are not available in the OSS application
71
71
type : 'chatgpt_4o_generate_image' ,
72
72
id : getPrefixedId ( CANVAS_OUTPUT_PREFIX ) ,
73
+ model : zModelIdentifierField . parse ( model ) ,
73
74
positive_prompt : positivePrompt ,
74
75
aspect_ratio : bbox . aspectRatio . id ,
75
76
reference_images,
@@ -100,6 +101,7 @@ export const buildChatGPT4oGraph = async (state: RootState, manager: CanvasManag
100
101
// @ts -expect-error: These nodes are not available in the OSS application
101
102
type : 'chatgpt_4o_edit_image' ,
102
103
id : getPrefixedId ( CANVAS_OUTPUT_PREFIX ) ,
104
+ model : zModelIdentifierField . parse ( model ) ,
103
105
positive_prompt : positivePrompt ,
104
106
aspect_ratio : bbox . aspectRatio . id ,
105
107
base_image : { image_name } ,
0 commit comments