update
This commit is contained in:
parent
725315ed32
commit
0a9c22268d
|
|
@ -925,16 +925,16 @@ export default class LineConnection {
|
||||||
role: 'user',
|
role: 'user',
|
||||||
content: `${promptRecord.content}
|
content: `${promptRecord.content}
|
||||||
|
|
||||||
Return ONLY a valid JSON array of strings.
|
Return ONLY a valid JSON array of strings.
|
||||||
Here is the log:
|
Here is the log:
|
||||||
${log}`,
|
${log}`,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
console.log(`${promptRecord.content}
|
console.log(`${promptRecord.content}
|
||||||
|
|
||||||
Return ONLY a valid JSON array of strings.
|
Return ONLY a valid JSON array of strings.
|
||||||
Here is the log:
|
Here is the log:
|
||||||
${log}`)
|
${log}`)
|
||||||
const remoteUrl = process.env.ERP_URL_AUTH || 'https://stage.nswteam.net'
|
const remoteUrl = process.env.ERP_URL_AUTH || 'https://stage.nswteam.net'
|
||||||
const remoteResp = await axios.post(
|
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 : ''
|
return remoteResp.data?.Status === 'OK' ? remoteResp.data?.data : ''
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.log('[ERROR] Detect log from AI', error)
|
console.log('[ERROR] Detect log from AI', error)
|
||||||
}
|
}
|
||||||
return ''
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue