mitra-interactions-sdk 1.0.60-beta.38 → 1.0.60-beta.39
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1011,11 +1011,11 @@ function getGatewayOrigin() {
|
|
|
1011
1011
|
return new URL(config.baseURL).origin;
|
|
1012
1012
|
}
|
|
1013
1013
|
function getTaskHttpBase() {
|
|
1014
|
-
const
|
|
1015
|
-
if (!
|
|
1016
|
-
throw new Error("Agent Chat:
|
|
1014
|
+
const config = getConfig();
|
|
1015
|
+
if (!config.baseURL) {
|
|
1016
|
+
throw new Error("Agent Chat: baseURL n\xE3o configurada. Configure via configureSdkMitra({ baseURL }).");
|
|
1017
1017
|
}
|
|
1018
|
-
return `${
|
|
1018
|
+
return `${config.baseURL.replace(/\/+$/, "")}/agentAiShortcut/tasks`;
|
|
1019
1019
|
}
|
|
1020
1020
|
function getTaskWsUrl(taskId) {
|
|
1021
1021
|
const token = getRawToken();
|