@wallavi/widget 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -150,7 +150,7 @@ function useChat({
|
|
|
150
150
|
try {
|
|
151
151
|
const isPrivate = Boolean(workspaceId);
|
|
152
152
|
const token = isPrivate && typeof window !== "undefined" ? await window.Clerk?.session?.getToken() : null;
|
|
153
|
-
const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/
|
|
153
|
+
const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/chat/stream`;
|
|
154
154
|
const res = await fetch(url, {
|
|
155
155
|
method: "POST",
|
|
156
156
|
headers: {
|
package/dist/index.mjs
CHANGED
|
@@ -124,7 +124,7 @@ function useChat({
|
|
|
124
124
|
try {
|
|
125
125
|
const isPrivate = Boolean(workspaceId);
|
|
126
126
|
const token = isPrivate && typeof window !== "undefined" ? await window.Clerk?.session?.getToken() : null;
|
|
127
|
-
const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/
|
|
127
|
+
const url = isPrivate ? `${API_URL}/api/threads/${threadId}/stream` : `${API_URL}/api/chat/stream`;
|
|
128
128
|
const res = await fetch(url, {
|
|
129
129
|
method: "POST",
|
|
130
130
|
headers: {
|