mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 12:24:46 +08:00
feat: expand by default in demo mode
This commit is contained in:
@@ -35,6 +35,7 @@ import { cn } from "@/lib/utils";
|
|||||||
|
|
||||||
import { useArtifacts } from "../artifacts";
|
import { useArtifacts } from "../artifacts";
|
||||||
import { FlipDisplay } from "../flip-display";
|
import { FlipDisplay } from "../flip-display";
|
||||||
|
import { env } from "@/env";
|
||||||
|
|
||||||
export function MessageGroup({
|
export function MessageGroup({
|
||||||
className,
|
className,
|
||||||
@@ -46,8 +47,12 @@ export function MessageGroup({
|
|||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
}) {
|
}) {
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const [showAbove, setShowAbove] = useState(false);
|
const [showAbove, setShowAbove] = useState(
|
||||||
const [showLastThinking, setShowLastThinking] = useState(false);
|
env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true",
|
||||||
|
);
|
||||||
|
const [showLastThinking, setShowLastThinking] = useState(
|
||||||
|
env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true",
|
||||||
|
);
|
||||||
const steps = useMemo(() => convertToSteps(messages), [messages]);
|
const steps = useMemo(() => convertToSteps(messages), [messages]);
|
||||||
const lastToolCallStep = useMemo(() => {
|
const lastToolCallStep = useMemo(() => {
|
||||||
const filteredSteps = steps.filter((step) => step.type === "toolCall");
|
const filteredSteps = steps.filter((step) => step.type === "toolCall");
|
||||||
|
|||||||
Reference in New Issue
Block a user