ai greets first with full context

This commit is contained in:
2026-04-16 00:49:58 -06:00
parent 03abba0679
commit 4ca57c92f1
4 changed files with 65 additions and 15 deletions

View File

@@ -246,7 +246,7 @@ function AiChatPage() {
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({ message: "Hello! I'd like to chat with the AI assistant." }),
body: JSON.stringify({}),
});
if (res.ok) {
const conv = await res.json();
@@ -406,7 +406,7 @@ function AiChatPage() {
"Content-Type": "application/json",
Authorization: `Bearer ${token}`,
},
body: JSON.stringify({ message: "Hello! I'd like to chat with the AI assistant." }),
body: JSON.stringify({}),
});
if (!res.ok) {
const data = await res.json().catch(() => null);
@@ -583,7 +583,7 @@ function AiChatPage() {
Chat with a Real Person
</button>
)}
{isEscalated && !isClosed && (
{!isClosed && (
<button style={s.closeConvBtn} onClick={handleCloseConversation} title="Close this conversation">
Close Chat
</button>