Hide model fallbacks in error message (remove clutter for Pro) (#426)
This commit is contained in:
@@ -66,6 +66,10 @@ export function ChatErrorBox({
|
|||||||
</ChatInfoContainer>
|
</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>;
|
return <ChatErrorContainer onDismiss={onDismiss}>{error}</ChatErrorContainer>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user