Remove usages of the websocketconnected variable

This commit is contained in:
sabaimran
2024-08-01 13:14:23 +05:30
parent bfeb64b48f
commit 9a43622cef
5 changed files with 1 additions and 4 deletions

View File

@@ -194,6 +194,7 @@ export default function Chat() {
async function chat() {
localStorage.removeItem("message");
if (!queryToProcess || !conversationId) return;
let chatAPI = `/api/chat?q=${encodeURIComponent(queryToProcess)}&conversation_id=${conversationId}&stream=true&client=web`;
if (locationData) {
chatAPI += `&region=${locationData.region}&country=${locationData.country}&city=${locationData.city}&timezone=${locationData.timezone}`;