diff --git a/src/components/chat/ChatUI.tsx b/src/components/chat/ChatUI.tsx
index cac6448..d9cb649 100644
--- a/src/components/chat/ChatUI.tsx
+++ b/src/components/chat/ChatUI.tsx
@@ -39,7 +39,7 @@ export default function ChatUI({
stop: [''],
repeatPenalty: 1.1,
seed: 0,
- stream: false,
+ stream: true,
keepAlive: '5m',
});
@@ -108,7 +108,8 @@ export default function ChatUI({
if (!res.ok) {
let message = 'Request failed';
- if (res.status === 500) message = 'Server error (likely model too large or OOM)';
+ if (res.status === 500)
+ message = 'Server error (likely model too large or OOM)';
else if (res.status === 401) message = 'Unauthorized';
else message = data?.message ?? data?.error ?? message;
throw new Error(message);
@@ -179,55 +180,60 @@ export default function ChatUI({
/>
- {/* Messages */}
+ {/* Messages + centered input when empty */}
+ {messages.length === 0 ? ( + /* ── Empty state: input centered within the chat column only ── */ +
Start a conversation…
- )} + setInput(e.target.value)} + onKeyDown={(e) => + e.key === 'Enter' && !loading && sendMessage() + } + disabled={loading} + className="w-full max-w-2xl p-3 rounded-xl bg-black/20 border border-muted outline-none disabled:opacity-50" + placeholder="Message..." + /> +