diff --git a/src/common/components/GoodTooltip.tsx b/src/common/components/GoodTooltip.tsx index fc6346ee1..2f5a18cc7 100644 --- a/src/common/components/GoodTooltip.tsx +++ b/src/common/components/GoodTooltip.tsx @@ -11,6 +11,7 @@ export const GoodTooltip = (props: { title: React.ReactNode, placement?: 'top' | 'bottom' | 'top-start', isError?: boolean, isWarning?: boolean, + arrow?: boolean, usePlain?: boolean, children: React.JSX.Element, sx?: SxProps @@ -19,6 +20,7 @@ export const GoodTooltip = (props: { title={props.title} placement={props.placement} disableInteractive + arrow={props.arrow} variant={(props.isError || props.isWarning) ? 'soft' : props.usePlain ? 'plain' : undefined} color={props.isError ? 'danger' : props.isWarning ? 'warning' : undefined} sx={{ diff --git a/src/modules/beam/gather/BeamFusionGrid.tsx b/src/modules/beam/gather/BeamFusionGrid.tsx index d75003414..bb32a3633 100644 --- a/src/modules/beam/gather/BeamFusionGrid.tsx +++ b/src/modules/beam/gather/BeamFusionGrid.tsx @@ -146,7 +146,8 @@ export function BeamFusionGrid(props: { : ( - You need two or more replies for a {currentFactory?.shortLabel?.toLocaleLowerCase() ?? ''} merge. + {/*You need two or more replies for a {currentFactory?.shortLabel?.toLocaleLowerCase() ?? ''} merge.*/} + Waiting for multiple Beams. )} diff --git a/src/modules/beam/gather/BeamGatherPane.tsx b/src/modules/beam/gather/BeamGatherPane.tsx index e5d334f2e..010d290ca 100644 --- a/src/modules/beam/gather/BeamGatherPane.tsx +++ b/src/modules/beam/gather/BeamGatherPane.tsx @@ -81,7 +81,7 @@ export function BeamGatherPane(props: { setCurrentGatherLlmId: state.setCurrentGatherLlmId, }))); const [_, gatherLlmComponent, gatherLlmIcon] = useLLMSelect( - currentGatherLlmId, setCurrentGatherLlmId, props.isMobile ? '' : 'Merge Model', true, + currentGatherLlmId, setCurrentGatherLlmId, props.isMobile ? '' : 'Merge Model', true, !props.canGather, ); // derived state @@ -116,7 +116,7 @@ export function BeamGatherPane(props: { {/* may merge or not (hasInputs) N replies.. put this in pretty messages */} - {props.canGather ? `Combine the ${props.raysReady} replies` : 'Two replies or more'} + {props.canGather ? `Combine the ${props.raysReady} replies` : /*'Fuse all replies'*/ ''} @@ -128,6 +128,7 @@ export function BeamGatherPane(props: { {FUSION_FACTORIES.map(factory => { diff --git a/src/modules/beam/gather/FusionControls.tsx b/src/modules/beam/gather/FusionControls.tsx index 62cac8ba5..3e812cef3 100644 --- a/src/modules/beam/gather/FusionControls.tsx +++ b/src/modules/beam/gather/FusionControls.tsx @@ -30,7 +30,7 @@ function FusionControls(props: { {/* LLM Icon */} {!!props.llmVendorIcon && ( - + diff --git a/src/modules/beam/scatter/BeamScatterInput.tsx b/src/modules/beam/scatter/BeamScatterInput.tsx index c80915822..8b05d9a63 100644 --- a/src/modules/beam/scatter/BeamScatterInput.tsx +++ b/src/modules/beam/scatter/BeamScatterInput.tsx @@ -8,6 +8,7 @@ import { ChatMessageMemo } from '../../../apps/chat/components/message/ChatMessa import type { DMessage } from '~/common/state/store-chats'; import { BEAM_INVERT_BACKGROUND } from '../beam.config'; +import { useModuleBeamStore } from '../store-module-beam'; const userMessageWrapperSx: SxProps = { @@ -53,6 +54,8 @@ export function BeamScatterInput(props: { // state const [showHistoryMessage, setShowHistoryMessage] = React.useState(true); + // external state + const gatherShowPrompts = useModuleBeamStore(state => state.gatherShowPrompts); // derived state @@ -66,14 +69,14 @@ export function BeamScatterInput(props: { // user message decorator const userMessageDecorator = React.useMemo(() => { - return (showHistoryMessage && otherHistoryCount >= 1) ? ( + return (showHistoryMessage && otherHistoryCount >= 1 && gatherShowPrompts) ? ( // } sx={{ my: 1 }}> setShowHistoryMessage(on => !on)}> ... {otherHistoryCount === 1 ? (isFirstMessageSystem ? '1 system message' : '1 message') : `${otherHistoryCount} messages`} before this input ... // ) : null; - }, [isFirstMessageSystem, otherHistoryCount, showHistoryMessage]); + }, [gatherShowPrompts, isFirstMessageSystem, otherHistoryCount, showHistoryMessage]); // skip rendering if no message