@3-/aiapi 0.1.65 → 0.1.67
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.
- package/fmtJsonMd.js +1 -1
- package/fmtSeg.js +1 -1
- package/package.json +1 -1
package/fmtJsonMd.js
CHANGED
|
@@ -16,7 +16,7 @@ export default (title_json_li) => {
|
|
|
16
16
|
for (y of li) {
|
|
17
17
|
({题, 问, 答} = y);
|
|
18
18
|
答 = txtFmt(答).trim();
|
|
19
|
-
if (答.startsWith('1. ')) {
|
|
19
|
+
if ((答.startsWith('1. ')) || 答.endsWith(':') || 答.endsWith(':')) {
|
|
20
20
|
答 = '\n' + 答;
|
|
21
21
|
}
|
|
22
22
|
md_li.push('## ' + 题 + '\n问: ' + txtFmt(问).trimEnd() + '\n\n答: ' + 答 + '\n');
|
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
|
|
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.
|
|
1
|
+
{"name":"@3-/aiapi","version":"0.1.67","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-/rm_cn_space":"^0.1.1","@3-/sleep":"^0.0.4","@3-/txt_li":"^0.1.5","@3-/utf8":"^0.0.4","lodash-es":"^4.17.21"}}
|