getNewMessageLine function blocks the user message from being processed and sent to the AI model
|
if ( |
|
messageLine.previousSibling && |
|
messageLine.previousSibling.textContent === "You sent" |
|
) |
But the message line being retrieved is used to send to the AI model:
|
const receivedMessage = messageLine.childNodes[1]?.textContent; |
|
if (receivedMessage && typeof receivedMessage === "string") { |
|
handleNewTextMessage(receivedMessage); |
|
} |
This means the AI model will never receive the message and send a response. This is confirmed when debugging myself, as the user's message line is never retrieved. I feel like I am missing something here...
getNewMessageLinefunction blocks the user message from being processed and sent to the AI modelmeta-glasses-api/src/app/content/conversion-screen-view.tsx
Lines 87 to 90 in c02ce8e
But the message line being retrieved is used to send to the AI model:
meta-glasses-api/src/app/content/conversion-screen-view.tsx
Lines 192 to 195 in c02ce8e
This means the AI model will never receive the message and send a response. This is confirmed when debugging myself, as the user's message line is never retrieved. I feel like I am missing something here...