update
This commit is contained in:
parent
725315ed32
commit
0a9c22268d
|
|
@ -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 ''
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue