mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user