Skip to content

Commit 018143b

Browse files
authored
🗨️ fix: Show ModelSpec Greeting (danny-avila#6770)
1 parent 4afab52 commit 018143b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/src/components/Chat/Landing.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function Landing({ centerFormOnLanding }: { centerFormOnLanding:
5252
});
5353

5454
const name = entity?.name ?? '';
55-
const description = entity?.description ?? '';
55+
const description = (entity?.description || conversation?.greeting) ?? '';
5656

5757
const getGreeting = useCallback(() => {
5858
if (typeof startupConfig?.interface?.customWelcome === 'string') {
@@ -186,8 +186,8 @@ export default function Landing({ centerFormOnLanding }: { centerFormOnLanding:
186186
/>
187187
)}
188188
</div>
189-
{(isAgent || isAssistant) && description && (
190-
<div className="animate-fadeIn mt-2 max-w-md text-center text-sm font-normal text-text-primary">
189+
{description && (
190+
<div className="animate-fadeIn mt-4 max-w-md text-center text-sm font-normal text-text-primary">
191191
{description}
192192
</div>
193193
)}

0 commit comments

Comments
 (0)