mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-01 18:57:51 +08:00
fix: agent chat multiple model debug (#3258)
This commit is contained in:
parent
74de7cf33c
commit
af9ccb7072
@ -112,7 +112,7 @@ const DebugItem: FC<DebugItemProps> = ({
|
||||
</div>
|
||||
<div style={{ height: 'calc(100% - 40px)' }}>
|
||||
{
|
||||
mode === 'chat' && currentProvider && currentModel && currentModel.status === ModelStatusEnum.active && (
|
||||
(mode === 'chat' || mode === 'agent-chat') && currentProvider && currentModel && currentModel.status === ModelStatusEnum.active && (
|
||||
<ChatItem modelAndParameter={modelAndParameter} />
|
||||
)
|
||||
}
|
||||
|
@ -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 = () => {
|
||||
}
|
||||
</div>
|
||||
{
|
||||
mode === 'chat' && (
|
||||
isChatMode && (
|
||||
<div className='shrink-0 pb-4 px-6'>
|
||||
<ChatInput
|
||||
onSend={handleSend}
|
||||
|
Loading…
Reference in New Issue
Block a user