Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

453 B
Raw Blame
import { useEvalStore } from '@/store/eval';
import { isLobeBenchKind } from '@/store/eval/kinds';

/** Whether this benchmark belongs to Lobe Bench (the Lab's pages also show Lobe Bench runs). */
export const useIsLobeBenchBenchmark = (benchmarkId?: string) =>
  useEvalStore((s) =>
    benchmarkId
      ? isLobeBenchKind(
          s.benchmarkDetailMap[benchmarkId] ?? s.benchmarkList.find((b) => b.id === benchmarkId),
        )
      : false,
  );