@3-/aiapi 0.1.53 → 0.1.55

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.
Files changed (3) hide show
  1. package/fmtJson.js +1 -0
  2. package/fmtSeg.js +1 -1
  3. package/package.json +1 -1
package/fmtJson.js CHANGED
@@ -10,6 +10,7 @@ export default async(chat, txt) => {
10
10
  }
11
11
  pli = (await partition(chat, txt));
12
12
  return Promise.all(pli.map(async([title, li]) => {
13
+ console.log('\n---\n→ ' + title + '\n' + li.join('\n') + '\n---\n');
13
14
  return [title, (await fmtSeg(chat, li.join('\n')))];
14
15
  }));
15
16
  };
package/fmtSeg.js CHANGED
@@ -4,7 +4,7 @@ import TOPIC_SCHEMA from './TOPIC_SCHEMA.js';
4
4
  import retry from '@3-/retry';
5
5
 
6
6
  export default retry(async(chat, txt) => {
7
- return (await chat(`将以下语音对话转为JSON数组,要确保所有问答都被包含,不要遗漏:\n` + txt, TOPIC_SCHEMA, "你是专业资深的秘书", {
7
+ return (await chat(`将以下语音对话转为JSON数组,确保所有对话内容都必须被覆盖,不可遗漏:\n` + txt, TOPIC_SCHEMA, "你是专业资深的秘书", {
8
8
  generationConfig: {
9
9
  temperature: 0
10
10
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@3-/aiapi","version":"0.1.53","repository":{"type":"git","url":"git+https://atomgit.com/i18n/lib.git"},"homepage":"https://atomgit.com/i18n/lib/tree/dev/aiapi","author":"i18n.site@gmail.com","license":"MulanPSL-2.0","exports":{".":"./lib.js","./*":"./*"},"files":["./*"],"devDependencies":{"@3-/read":"^0.1.4"},"scripts":{},"type":"module","dependencies":{"@3-/retry":"^0.0.2","@3-/sleep":"^0.0.4","@3-/txt_li":"^0.1.5","@3-/utf8":"^0.0.4","lodash-es":"^4.17.21"}}
1
+ {"name":"@3-/aiapi","version":"0.1.55","repository":{"type":"git","url":"git+https://atomgit.com/i18n/lib.git"},"homepage":"https://atomgit.com/i18n/lib/tree/dev/aiapi","author":"i18n.site@gmail.com","license":"MulanPSL-2.0","exports":{".":"./lib.js","./*":"./*"},"files":["./*"],"devDependencies":{"@3-/read":"^0.1.4"},"scripts":{},"type":"module","dependencies":{"@3-/retry":"^0.0.2","@3-/sleep":"^0.0.4","@3-/txt_li":"^0.1.5","@3-/utf8":"^0.0.4","lodash-es":"^4.17.21"}}