fix: omit reasoning tag when set to none (#1091)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user