ai greets first with full context
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user