fix: omit reasoning tag when set to none (#1091)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-02-21 16:11:14 -08:00
committed by GitHub
parent e695c414c1
commit bbd4bd00e8
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ interface AgentInfoBarProps {
function formatReasoningLabel(
effort: ModelReasoningEffort | null | undefined,
): string | null {
if (effort === "none") return "no";
if (effort === "none") return null;
if (effort === "xhigh") return "max";
if (effort === "minimal") return "minimal";
if (effort === "low") return "low";

View File

@@ -54,7 +54,7 @@ function truncateEnd(value: string, maxChars: number): string {
function getReasoningEffortTag(
effort: ModelReasoningEffort | null | undefined,
): string | null {
if (effort === "none") return "no";
if (effort === "none") return null;
if (effort === "xhigh") return "max";
if (effort === "minimal") return "minimal";
if (effort === "low") return "low";