Skip to content

The open alternative to Salesforce, designed for AI.

300 B
Raw Blame
import { t } from '@lingui/core/macro';

import { getLatestReasoningTitle } from '@/ai/utils/getLatestReasoningTitle';

export const getReasoningStepLabel = ({
  text,
  isActive,
}: {
  text: string;
  isActive: boolean;
}) => getLatestReasoningTitle(text) ?? (isActive ? t`Thinking` : t`Thought`);