diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx index 43a782f61..9f6da8a09 100644 --- a/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx +++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/debug-item.tsx @@ -112,7 +112,7 @@ const DebugItem: FC = ({
{ - mode === 'chat' && currentProvider && currentModel && currentModel.status === ModelStatusEnum.active && ( + (mode === 'chat' || mode === 'agent-chat') && currentProvider && currentModel && currentModel.status === ModelStatusEnum.active && ( ) } diff --git a/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx b/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx index 27348ecd5..892d0cfe8 100644 --- a/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx +++ b/web/app/components/app/configuration/debug/debug-with-multiple-model/index.tsx @@ -27,6 +27,7 @@ const DebugWithMultipleModel = () => { checkCanSend, } = useDebugWithMultipleModelContext() const { eventEmitter } = useEventEmitterContextContext() + const isChatMode = mode === 'chat' || mode === 'agent-chat' const handleSend = useCallback((message: string, files?: VisionFile[]) => { if (checkCanSend && !checkCanSend()) @@ -97,7 +98,7 @@ const DebugWithMultipleModel = () => { className={` grow mb-3 relative px-6 overflow-auto `} - style={{ height: mode === 'chat' ? 'calc(100% - 60px)' : '100%' }} + style={{ height: isChatMode ? 'calc(100% - 60px)' : '100%' }} > { multipleModelConfigs.map((modelConfig, index) => ( @@ -121,7 +122,7 @@ const DebugWithMultipleModel = () => { }
{ - mode === 'chat' && ( + isChatMode && (