🗨️ fix: Show ModelSpec Greeting (#6770)

This commit is contained in:
Marco Beretta 2025-04-07 21:57:49 +02:00 committed by GitHub
parent 4afab52fc5
commit 018143b5cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@ export default function Landing({ centerFormOnLanding }: { centerFormOnLanding:
}); });
const name = entity?.name ?? ''; const name = entity?.name ?? '';
const description = entity?.description ?? ''; const description = (entity?.description || conversation?.greeting) ?? '';
const getGreeting = useCallback(() => { const getGreeting = useCallback(() => {
if (typeof startupConfig?.interface?.customWelcome === 'string') { if (typeof startupConfig?.interface?.customWelcome === 'string') {
@ -186,8 +186,8 @@ export default function Landing({ centerFormOnLanding }: { centerFormOnLanding:
/> />
)} )}
</div> </div>
{(isAgent || isAssistant) && description && ( {description && (
<div className="animate-fadeIn mt-2 max-w-md text-center text-sm font-normal text-text-primary"> <div className="animate-fadeIn mt-4 max-w-md text-center text-sm font-normal text-text-primary">
{description} {description}
</div> </div>
)} )}