|
|
@@ -1192,7 +1192,7 @@ module.exports = app => {
|
|
|
|
|
|
const validColSet = data.template.col_set.filter(x => { return !x.expr; });
|
|
|
const AIInspect = require('../lib/ai_inspect');
|
|
|
- const aiInspect = new AIInspect({ apiKey: 'app-BIOhBbFlNSakoRGKU91e2ksJ', baseUrl: 'http://39.108.81.93:8080/v1' });
|
|
|
+ const aiInspect = new AIInspect({ apiKey: ctx.difyInfo.apiKey.image2PosCalcDetail, baseUrl: ctx.difyInfo.baseUrl });
|
|
|
const transResult = await aiInspect.posCalcDetailRead(validColSet, data.billsName, data.keyword, data.files);
|
|
|
const rows = transResult.res.split('\n').filter(x => { return !!x; });
|
|
|
rows.shift();
|
|
|
@@ -1217,7 +1217,7 @@ module.exports = app => {
|
|
|
|
|
|
const validColSet = data.template.col_set.filter(x => { return !x.expr; });
|
|
|
const AIInspect = require('../lib/ai_inspect');
|
|
|
- const aiInspect = new AIInspect({ apiKey: 'app-FtAs299O9xFzTOVB4TlaZ73O', baseUrl: 'http://39.108.81.93:8080/v1' });
|
|
|
+ const aiInspect = new AIInspect({ apiKey: ctx.difyInfo.apiKey.image2Pos, baseUrl: ctx.difyInfo.baseUrl });
|
|
|
const transResult = await aiInspect.posCalcDetailRead(validColSet, data.billsName, data.keyword, data.files);
|
|
|
const parts = transResult.res.split('\n==++==\n').filter(x => { return !!x; });
|
|
|
const pos = [];
|