diff --git a/web/app/components/app/chat/answer/index.tsx b/web/app/components/app/chat/answer/index.tsx index 124f32b9138d6e..561c9d3b9e8013 100644 --- a/web/app/components/app/chat/answer/index.tsx +++ b/web/app/components/app/chat/answer/index.tsx @@ -248,8 +248,8 @@ const Answer: FC = ({ ) } -
-
+
+
{(isResponding && (isAgentMode ? (!content && (agent_thoughts || []).filter(item => !!item.thought || !!item.tool).length === 0) : !content)) @@ -311,7 +311,7 @@ const Answer: FC = ({ ) }
-
+
{!item.isOpeningStatement && ( = ({ /> )} {((isShowPromptLog && !isResponding) || (!item.isOpeningStatement && isShowTextToSpeech)) && ( -
+
{isShowPromptLog && !isResponding && ( )} diff --git a/web/app/components/app/chat/log/index.tsx b/web/app/components/app/chat/log/index.tsx index 1c32c62fdcbfb7..34b8440addc1a9 100644 --- a/web/app/components/app/chat/log/index.tsx +++ b/web/app/components/app/chat/log/index.tsx @@ -16,7 +16,7 @@ const Log: FC = ({ return (
{ e.stopPropagation() e.nativeEvent.stopImmediatePropagation() @@ -27,8 +27,8 @@ const Log: FC = ({ setShowPromptLogModal(true) }} > - -
{runID ? t('appLog.viewLog') : t('appLog.promptLog')}
+ +
{runID ? t('appLog.viewLog') : t('appLog.promptLog')}
) } diff --git a/web/app/components/base/chat/chat/answer/index.tsx b/web/app/components/base/chat/chat/answer/index.tsx index 39737df5558541..8c75a1bde6466b 100644 --- a/web/app/components/base/chat/chat/answer/index.tsx +++ b/web/app/components/base/chat/chat/answer/index.tsx @@ -69,7 +69,7 @@ const Answer: FC = ({ ) }
-
+
= ({ } return ( -
+
{!isOpeningStatement && ( = ({ )} {!isOpeningStatement && ( -
+
{showPromptLog && ( )} diff --git a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx index 79e00170faaf42..47ee1560781f58 100644 --- a/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx +++ b/web/app/components/header/account-setting/model-provider-page/model-parameter-modal/index.tsx @@ -48,6 +48,7 @@ export type ModelParameterModalProps = { onDebugWithMultipleModelChange?: () => void renderTrigger?: (v: TriggerProps) => ReactNode readonly?: boolean + isInWorkflow?: boolean } const stopParameerRule: ModelParameterRule = { default: [], @@ -83,6 +84,7 @@ const ModelParameterModal: FC = ({ onDebugWithMultipleModelChange, renderTrigger, readonly, + isInWorkflow, }) => { const { t } = useTranslation() const { hasSettedApiKey } = useProviderContext() @@ -198,6 +200,7 @@ const ModelParameterModal: FC = ({ : ( = ({ disabled, @@ -32,6 +35,7 @@ const Trigger: FC = ({ modelId, hasDeprecated, modelDisabled, + isInWorkflow, }) => { const { t } = useTranslation() const language = useLanguage() @@ -39,10 +43,12 @@ const Trigger: FC = ({ return (
{ currentProvider && ( @@ -68,9 +74,9 @@ const Trigger: FC = ({ className='mr-1.5 text-gray-900' modelItem={currentModel} showMode - modeClassName='!text-[#444CE7] !border-[#A4BCFD]' + modeClassName={cn(!isInWorkflow ? '!text-[#444CE7] !border-[#A4BCFD]' : '!text-gray-500 !border-black/8')} showFeatures - featuresClassName='!text-[#444CE7] !border-[#A4BCFD]' + featuresClassName={cn(!isInWorkflow ? '!text-[#444CE7] !border-[#A4BCFD]' : '!text-gray-500 !border-black/8')} /> ) } @@ -97,9 +103,10 @@ const Trigger: FC = ({ ) : ( - + ) } + {isInWorkflow && ()}
) } diff --git a/web/app/components/workflow/custom-edge.tsx b/web/app/components/workflow/custom-edge.tsx index b6a0313f0718f2..083eacbce99c6e 100644 --- a/web/app/components/workflow/custom-edge.tsx +++ b/web/app/components/workflow/custom-edge.tsx @@ -83,7 +83,7 @@ const CustomEdge = ({
'hover:scale-150 transition-all'} />
diff --git a/web/app/components/workflow/nodes/_base/components/node-handle.tsx b/web/app/components/workflow/nodes/_base/components/node-handle.tsx index 978f944441e560..f8d68916609623 100644 --- a/web/app/components/workflow/nodes/_base/components/node-handle.tsx +++ b/web/app/components/workflow/nodes/_base/components/node-handle.tsx @@ -69,6 +69,7 @@ export const NodeTargetHandle = memo(({ className={` !w-4 !h-4 !bg-transparent !rounded-none !outline-none !border-none z-[1] after:absolute after:w-0.5 after:h-2 after:left-1.5 after:top-1 after:bg-primary-500 + hover:scale-150 transition-all ${!connected && 'after:opacity-0'} ${data.type === BlockEnum.Start && 'opacity-0'} ${handleClassName} @@ -88,6 +89,7 @@ export const NodeTargetHandle = memo(({ hidden absolute left-0 top-0 pointer-events-none ${nodeSelectorClassName} group-hover:flex + group-hover:scale-150 ${open && '!flex'} `} availableBlocksTypes={availablePrevNodes} @@ -149,6 +151,7 @@ export const NodeSourceHandle = memo(({ className={` !w-4 !h-4 !bg-transparent !rounded-none !outline-none !border-none z-[1] after:absolute after:w-0.5 after:h-2 after:right-1.5 after:top-1 after:bg-primary-500 + hover:scale-150 transition-all ${!connected && 'after:opacity-0'} ${handleClassName} `} @@ -163,7 +166,7 @@ export const NodeSourceHandle = memo(({ onSelect={handleSelect} asChild triggerClassName={open => ` - hidden absolute top-0 left-0 pointer-events-none + hidden absolute top-0 left-0 pointer-events-none ${nodeSelectorClassName} group-hover:flex ${open && '!flex'} diff --git a/web/app/components/workflow/nodes/llm/panel.tsx b/web/app/components/workflow/nodes/llm/panel.tsx index ee280ac05d936f..161d64b682c5ba 100644 --- a/web/app/components/workflow/nodes/llm/panel.tsx +++ b/web/app/components/workflow/nodes/llm/panel.tsx @@ -119,6 +119,7 @@ const Panel: FC> = ({ >