tango-app-api-audio-analytics 1.0.26 → 1.0.27

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": "tango-app-api-audio-analytics",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "audioAnalytics",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -456,9 +456,9 @@ Only return the JSON array, no other text.`;
456
456
  // ======================= CHAT STREAM API =======================
457
457
 
458
458
  const CHAT_STREAM_API = 'http://65.2.124.154:8000/api/chat/stream';
459
- const AUDIO_STREAM_API = 'http://65.2.124.154:8000/api/chat/audio';
459
+ const AUDIO_STREAM_API = 'http://65.2.124.154:8000/api/chat/audio/cohort';
460
460
  const EYE_TEST_STREAM_API = 'http://65.2.124.154:8000/api/chat/pet';
461
- // const CONVERSATION_STREAM_API = 'http://65.2.124.154:8000/api/chat/audio';
461
+ const CONVERSATION_STREAM_API = 'http://65.2.124.154:8000/api/chat/audio/transcript';
462
462
 
463
463
 
464
464
  /**
@@ -563,7 +563,7 @@ export async function aiStreamResponse( req, res ) {
563
563
  };
564
564
  /* eslint-enable camelcase */
565
565
 
566
- const response = await fetch( analyticsType === 'audio'? AUDIO_STREAM_API:analyticsType === 'transcript'? AUDIO_STREAM_API: analyticsType === 'eyetest'? EYE_TEST_STREAM_API: CHAT_STREAM_API, {
566
+ const response = await fetch( analyticsType === 'audio'? AUDIO_STREAM_API:analyticsType === 'transcript'? CONVERSATION_STREAM_API: analyticsType === 'eyetest'? EYE_TEST_STREAM_API: CHAT_STREAM_API, {
567
567
  method: 'POST',
568
568
  headers: {
569
569
  'Content-Type': 'application/json',