tango-app-api-audio-analytics 1.0.26 → 1.0.28
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
|
@@ -253,7 +253,7 @@ export async function chatHistoryList( req, res ) {
|
|
|
253
253
|
_source: [ 'session_id', 'session_title' ], // Only fetch required fields
|
|
254
254
|
size: Number( limit ),
|
|
255
255
|
from: Number( offset ),
|
|
256
|
-
sort: [ {
|
|
256
|
+
sort: [ { _id: { order: 'desc' } } ], // Sort by creation date, most recent first
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
// Search in tango-ai-session index
|
|
@@ -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
|
-
|
|
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'?
|
|
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',
|