s/online_context/onlineContext chat API response field for consistency

This will align the name of the online context field returned by
current chat message and chat history
This commit is contained in:
Debanjum Singh Solanky
2024-07-23 19:50:43 +05:30
parent 0277d16daf
commit eb4e12d3c5
4 changed files with 5 additions and 5 deletions

View File

@@ -515,7 +515,7 @@ function processMessageChunk(rawChunk) {
isVoice: false,
}
} else if (chunk.type === "references") {
chatMessageState.references = {"notes": chunk.data.context, "online": chunk.data.online_results};
chatMessageState.references = {"notes": chunk.data.context, "online": chunk.data.onlineContext};
} else if (chunk.type === 'message') {
const chunkData = chunk.data;
if (typeof chunkData === 'object' && chunkData !== null) {