Hide model fallbacks in error message (remove clutter for Pro) (#426)

This commit is contained in:
Will Chen
2025-06-17 12:48:32 -07:00
committed by GitHub
parent 5694934183
commit 18843e1a2f

View File

@@ -66,6 +66,10 @@ export function ChatErrorBox({
</ChatInfoContainer>
);
}
// This is a very long list of model fallbacks that clutters the error message.
if (error.includes("Fallbacks=")) {
error = error.split("Fallbacks=")[0];
}
return <ChatErrorContainer onDismiss={onDismiss}>{error}</ChatErrorContainer>;
}