|
|
|
@ -163,7 +163,6 @@ interface ComposerEditorProps { |
|
|
|
nodes: WorkflowNode[]; |
|
|
|
edges: WorkflowEdge[]; |
|
|
|
isCurrentNodeRunning: boolean; |
|
|
|
embedded: boolean; |
|
|
|
isHidden: boolean; |
|
|
|
onRun: (context: ComposerContext, prompt: string, config: ComposerConfig) => Promise<void>; |
|
|
|
onCancelRunning: () => void; |
|
|
|
@ -335,7 +334,6 @@ export function GenerationComposer({ targetNodeId, embedded = false, isHidden = |
|
|
|
} |
|
|
|
}, [ |
|
|
|
addNode, |
|
|
|
applyNodeSize, |
|
|
|
buildTargetPosition, |
|
|
|
convertNodeType, |
|
|
|
fetchModelDetail, |
|
|
|
@ -380,7 +378,6 @@ export function GenerationComposer({ targetNodeId, embedded = false, isHidden = |
|
|
|
nodes={nodes} |
|
|
|
edges={edges} |
|
|
|
isCurrentNodeRunning={isCurrentNodeRunning} |
|
|
|
embedded={embedded} |
|
|
|
isHidden={isHidden} |
|
|
|
onRun={runComposer} |
|
|
|
onCancelRunning={cancelRunning} |
|
|
|
@ -400,7 +397,6 @@ function ComposerEditor({ |
|
|
|
nodes, |
|
|
|
edges, |
|
|
|
isCurrentNodeRunning, |
|
|
|
embedded, |
|
|
|
isHidden, |
|
|
|
onRun, |
|
|
|
onCancelRunning, |
|
|
|
@ -410,7 +406,6 @@ function ComposerEditor({ |
|
|
|
onPersistConfig, |
|
|
|
onHiddenPersisted, |
|
|
|
}: ComposerEditorProps) { |
|
|
|
void embedded; |
|
|
|
const { t } = useI18n(); |
|
|
|
const previewImageSuffix = useAppConfigStore((state) => state.previewImageSuffix); |
|
|
|
const videoPosterQuality = useAppConfigStore((state) => state.videoPosterQuality); |
|
|
|
@ -802,7 +797,7 @@ function ComposerEditor({ |
|
|
|
const modelPointCostLabel = dynamicEstimatedPointAmount !== null |
|
|
|
? t("composer.pointCost", { count: formatPointAmount(dynamicEstimatedPointAmount) }) |
|
|
|
: null; |
|
|
|
const submitButtonLabel = isCurrentNodeRunning ? "Cancel task" : t("composer.generate"); |
|
|
|
const submitButtonLabel = isCurrentNodeRunning ? t("composer.cancelTaskOk") : t("composer.generate"); |
|
|
|
const priceLabel = modelPointCostLabel ?? (isPriceLoading ? "..." : null); |
|
|
|
|
|
|
|
const hasComposerMediaHeader = |
|
|
|
@ -1113,7 +1108,7 @@ function ComposerEditor({ |
|
|
|
<div |
|
|
|
className="flex h-9 items-center gap-1 text-xs font-medium text-[var(--text-muted)]" |
|
|
|
aria-live="polite" |
|
|
|
title={modelPointCostLabel ?? "Loading points"} |
|
|
|
title={modelPointCostLabel ?? t("composer.loadingPoints")} |
|
|
|
> |
|
|
|
<svg className="h-3 w-3 shrink-0" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"> |
|
|
|
<path d="M13 2 4 14h6l-1 8 10-13h-6l0-7Z" /> |
|
|
|
|