diff --git a/BACKEND/app/services/line_connection.ts b/BACKEND/app/services/line_connection.ts index 52354a1..45106ce 100644 --- a/BACKEND/app/services/line_connection.ts +++ b/BACKEND/app/services/line_connection.ts @@ -925,16 +925,16 @@ export default class LineConnection { role: 'user', content: `${promptRecord.content} - Return ONLY a valid JSON array of strings. - Here is the log: +Return ONLY a valid JSON array of strings. +Here is the log: ${log}`, }, ], } console.log(`${promptRecord.content} - Return ONLY a valid JSON array of strings. - Here is the log: +Return ONLY a valid JSON array of strings. +Here is the log: ${log}`) const remoteUrl = process.env.ERP_URL_AUTH || 'https://stage.nswteam.net' const remoteResp = await axios.post( @@ -949,11 +949,11 @@ export default class LineConnection { }, } ) + console.log('AI detect log response', remoteResp.data) return remoteResp.data?.Status === 'OK' ? remoteResp.data?.data : '' } catch (error: any) { console.log('[ERROR] Detect log from AI', error) } - return '' } /**