@smarter.sh/ui-chat 0.1.2 → 0.1.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smarter.sh/ui-chat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "chatbot React.js component for the https://smarter.sh no-code, plugin based AI platform",
|
|
5
5
|
"homepage": "https://smarter.sh",
|
|
6
6
|
"main": "dist/smarter-chat-library.umd.js",
|
|
@@ -186,6 +186,7 @@ export async function fetchPrompt(config, messages, cookies) {
|
|
|
186
186
|
const init = requestInitFactory(headers, body);
|
|
187
187
|
const responseJson = await getJsonResponse(url, init, cookies);
|
|
188
188
|
if (responseJson && responseJson.body) {
|
|
189
|
+
console.log("fetchPrompt(): parsing responseJson.body ");
|
|
189
190
|
const responseBody = await JSON.parse(responseJson.body);
|
|
190
191
|
return responseBody;
|
|
191
192
|
}
|