mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): connect metadata to output node for ext api nodes
This commit is contained in:
@@ -133,6 +133,8 @@ export const buildChatGPT4oGraph = async (arg: GraphBuilderArg): Promise<GraphBu
|
||||
g.upsertMetadata(selectCanvasMetadata(state));
|
||||
}
|
||||
|
||||
g.setMetadataReceivingNode(gptImage);
|
||||
|
||||
return {
|
||||
g,
|
||||
positivePrompt,
|
||||
|
||||
@@ -76,11 +76,15 @@ export const buildFluxKontextGraph = (arg: GraphBuilderArg): GraphBuilderReturn
|
||||
'positive_prompt'
|
||||
);
|
||||
g.addEdgeToMetadata(positivePrompt, 'value', 'positive_prompt');
|
||||
|
||||
g.upsertMetadata({
|
||||
model: Graph.getModelMetadataField(model),
|
||||
width: originalSize.width,
|
||||
height: originalSize.height,
|
||||
});
|
||||
|
||||
g.setMetadataReceivingNode(fluxKontextImage);
|
||||
|
||||
return {
|
||||
g,
|
||||
positivePrompt,
|
||||
|
||||
@@ -67,6 +67,8 @@ export const buildImagen3Graph = (arg: GraphBuilderArg): GraphBuilderReturn => {
|
||||
model: Graph.getModelMetadataField(model),
|
||||
});
|
||||
|
||||
g.setMetadataReceivingNode(imagen3);
|
||||
|
||||
return {
|
||||
g,
|
||||
positivePrompt,
|
||||
|
||||
@@ -66,6 +66,8 @@ export const buildImagen4Graph = (arg: GraphBuilderArg): GraphBuilderReturn => {
|
||||
model: Graph.getModelMetadataField(model),
|
||||
});
|
||||
|
||||
g.setMetadataReceivingNode(imagen4);
|
||||
|
||||
return {
|
||||
g,
|
||||
positivePrompt,
|
||||
|
||||
Reference in New Issue
Block a user