fix(ui): use generic VAE models for Qwen-Image

Changed QwenImageVAEModelFieldInputComponent to use generic VAE models
instead of looking for Qwen-specific VAE models, since Qwen-Image uses
standard VAE models.

Also updated backend to use UIType.VAEModel instead of UIType.QwenImageVAEModel
for better compatibility.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
psychedelicious
2025-09-09 19:01:23 +10:00
parent cd23d5c9a8
commit 5c55805879

View File

@@ -3,7 +3,7 @@ import { ModelFieldCombobox } from 'features/nodes/components/flow/nodes/Invocat
import { fieldVaeModelValueChanged } from 'features/nodes/store/nodesSlice';
import type { QwenImageVAEModelFieldInputInstance, QwenImageVAEModelFieldInputTemplate } from 'features/nodes/types/field';
import { memo, useCallback } from 'react';
import { useQwenImageVAEModels } from 'services/api/hooks/modelsByType';
import { useVAEModels } from 'services/api/hooks/modelsByType';
import type { VAEModelConfig } from 'services/api/types';
import type { FieldComponentProps } from './types';
@@ -13,7 +13,7 @@ type Props = FieldComponentProps<QwenImageVAEModelFieldInputInstance, QwenImageV
const QwenImageVAEModelFieldInputComponent = (props: Props) => {
const { nodeId, field } = props;
const dispatch = useAppDispatch();
const [modelConfigs, { isLoading }] = useQwenImageVAEModels();
const [modelConfigs, { isLoading }] = useVAEModels();
const onChange = useCallback(
(value: VAEModelConfig | null) => {
if (!value) {