@hivegpt/hiveai-angular 0.0.429 → 0.0.430

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.
@@ -1291,7 +1291,7 @@
1291
1291
  */
1292
1292
  DailyVoiceClientService.prototype.connect = function (roomUrl, token) {
1293
1293
  return __awaiter(this, void 0, void 0, function () {
1294
- var stream, audioTrack, callObject, participants, err_1;
1294
+ var stream, audioTrack, callObject, joinOptions, participants, err_1;
1295
1295
  return __generator(this, function (_c) {
1296
1296
  switch (_c.label) {
1297
1297
  case 0:
@@ -1318,10 +1318,12 @@
1318
1318
  });
1319
1319
  this.callObject = callObject;
1320
1320
  this.setupEventHandlers(callObject);
1321
- // Join room; Daily handles playback of remote (bot) audio automatically
1322
- return [4 /*yield*/, callObject.join({ url: roomUrl, token: token })];
1321
+ joinOptions = { url: roomUrl };
1322
+ if (typeof token === 'string' && token.trim() !== '') {
1323
+ joinOptions.token = token;
1324
+ }
1325
+ return [4 /*yield*/, callObject.join(joinOptions)];
1323
1326
  case 4:
1324
- // Join room; Daily handles playback of remote (bot) audio automatically
1325
1327
  _c.sent();
1326
1328
  participants = callObject.participants();
1327
1329
  if (participants === null || participants === void 0 ? void 0 : participants.local) {
@@ -1528,7 +1530,7 @@
1528
1530
  this.callStateSubject.next('connecting');
1529
1531
  this.statusTextSubject.next('Connecting...');
1530
1532
  baseUrl = apiUrl.replace(/\/$/, '');
1531
- postUrl = baseUrl + "/ai/ask-voice";
1533
+ postUrl = "https://48c6-2405-201-5c02-991e-d91c-8adf-399c-abdc.ngrok-free.app/ai/ask-voice";
1532
1534
  headers = {
1533
1535
  'Content-Type': 'application/json',
1534
1536
  Authorization: "Bearer " + token,