@3-/aiapi 0.1.23 → 0.1.25

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 (2) hide show
  1. package/factCheck.js +4 -4
  2. package/package.json +1 -1
package/factCheck.js CHANGED
@@ -9,10 +9,10 @@ import utf8e from '@3-/utf8/utf8e.js';
9
9
 
10
10
  // @3-/read
11
11
  // @3-/write
12
- SHOW_KIND = ['严重失实', '略有出入'];
12
+ SHOW_KIND = ['严重失实', '不正确'];
13
13
 
14
- PREFIX = `对下文问答对做事实核查,只输出与事实不符的观点。
15
- 必须搜索到明确的反面事实才算失实,模棱两可算无法核实。
14
+ PREFIX = `对下文问答中提及的事实做核查(不核查观点)。
15
+ 必须搜索到明确的反面事实才算失实,数据微小差异为基本一致,找不到信息当无法核实。
16
16
  输出文本必须是简体中文,格式如下:
17
17
  - id:
18
18
  标题: 要简短,几个词即可
@@ -114,7 +114,7 @@ txtLi = (txt) => {
114
114
  t = {id};
115
115
  }
116
116
  } else if (t) {
117
- trim = i.trimStart().replace('- ', '');
117
+ trim = i.replace('- ', '').trimStart();
118
118
  for (tag of all_tag) {
119
119
  all_tag.delete(tag);
120
120
  if (trim.startsWith(tag + ':')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3-/aiapi",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://atomgit.com/i18n/lib.git"