Fix Seedance runtime model handling

This commit is contained in:
2026-07-07 09:38:08 +08:00
parent 3b6781d695
commit 13f44a4bbc
4 changed files with 153 additions and 19 deletions

View File

@@ -2748,9 +2748,7 @@ function PlayableVideo({
autoPlay={autoPlay}
playsInline
preload="metadata"
style={
aspectRatio ? ({ aspectRatio } as CSSProperties) : undefined
}
style={aspectRatio ? ({ aspectRatio } as CSSProperties) : undefined}
onLoadedMetadata={(event) => {
const video = event.currentTarget;
if (video.videoWidth > 0 && video.videoHeight > 0) {
@@ -9331,14 +9329,30 @@ function OpenTuGenerationPage({
kind === 'image' ? settings.imageModel : settings.videoModel;
const selectableModels = useSelectableModels(kind);
const [selectedModel, setSelectedModel] = useState(
isConfiguredSettingsValue(initialModel) ? initialModel : undefined
() =>
resolveSelectableModelFallback(
selectableModels,
isConfiguredSettingsValue(initialModel) ? initialModel : null,
createModelRef(
activeRoute?.profileId || null,
activeRoute?.modelId || initialModel || null
)
)?.modelId
);
const [selectedModelRef, setSelectedModelRef] = useState<ModelRef | null>(
() =>
createModelRef(
() => {
const initialModelRef = createModelRef(
activeRoute?.profileId || null,
activeRoute?.modelId || initialModel || null
)
);
return (
resolveSelectableModelFallback(
selectableModels,
isConfiguredSettingsValue(initialModel) ? initialModel : null,
initialModelRef
)?.modelRef || initialModelRef
);
}
);
const [hasUserSelectedModel, setHasUserSelectedModel] = useState(false);
useEffect(() => {
@@ -10370,7 +10384,9 @@ function FunClipEditingPage({
pendingHandoffNoticeRef.current !== detail.createdAt
) {
pendingHandoffNoticeRef.current = detail.createdAt || Date.now();
MessagePlugin.info('已打开口播精修,正在等待这个数字人视频同步到素材列表。');
MessagePlugin.info(
'已打开口播精修,正在等待这个数字人视频同步到素材列表。'
);
}
return false;
}

View File

@@ -2227,6 +2227,7 @@ body
.tg-avatar-page--compose
.tg-task-row--aigcpanel.tg-task-row--with-media {
position: relative !important;
container-type: inline-size !important;
grid-template-columns: 32px minmax(0, 1fr) auto !important;
gap: 10px 14px !important;
padding: 18px 20px !important;