@cloud411716/fancy-webnovel 4.30.43 → 4.30.44
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/package.json
CHANGED
|
@@ -1867,7 +1867,7 @@ export async function runGenerationWithPlan(ctx, invocation, session, taskList,
|
|
|
1867
1867
|
batchId,
|
|
1868
1868
|
batchNo,
|
|
1869
1869
|
keep: Math.min(next.requestCount, Math.max(0, item.target - item.generated)),
|
|
1870
|
-
poolSize: Math.max(30, Math.min(Number(nameStage.poolSize) || 80, Math.max(30, Math.min(next.requestCount, Math.max(0, item.target - item.generated)) *
|
|
1870
|
+
poolSize: Math.max(30, Math.min(Number(nameStage.poolSize) || 80, Math.max(30, Math.min(next.requestCount, Math.max(0, item.target - item.generated)) * 8))),
|
|
1871
1871
|
anchorNames: item.generated === 0 ? (Array.isArray(nameStage.anchorNames) ? nameStage.anchorNames : []) : [],
|
|
1872
1872
|
});
|
|
1873
1873
|
if (!nameOut.ok) {
|
|
@@ -153,7 +153,9 @@ function buildNamePrompt({
|
|
|
153
153
|
lines.push('2. **主体 + 动作**:`工牌借脸`、`檐灰点眼`');
|
|
154
154
|
lines.push('3. **条件 + 后果**:`灯灭名断`');
|
|
155
155
|
lines.push('');
|
|
156
|
+
lines.push('4 字名优先 **2+2**:前两字是物象,后两字是结果/状态或强动作。');
|
|
156
157
|
lines.push('避免:**物象 + 动词 + 隐含对象**的三截压缩,例如 `灯烬点名`、`旧牌借脸`——读者要先补主语/宾语才知道发生了什么。');
|
|
158
|
+
lines.push('先在心里写一句普通句子,再压成 4 字;压完如果还要补主语或宾语,换一个名字。');
|
|
157
159
|
lines.push('名字单看就要有“这怎么可能/代价是什么”的张力;不读 note 也能在一眼里猜出能力方向。');
|
|
158
160
|
lines.push('读一遍要顺。不要为了凑四字把词压成不自然的缩写:`旧工牌` 不要压成 `旧牌`,`点眼` 不要写成 `点主`。');
|
|
159
161
|
lines.push('');
|
|
@@ -276,10 +278,14 @@ export async function runNameStage({
|
|
|
276
278
|
return { ok: false, error: 'name-stage 需要 generatorA / generatorB / judge 三条模型路由。' };
|
|
277
279
|
}
|
|
278
280
|
|
|
281
|
+
const nameWorldBlock = String(worldBlock || '')
|
|
282
|
+
.split(/\r?\n/)
|
|
283
|
+
.filter((line) => !line.includes('命名逻辑'))
|
|
284
|
+
.join('\n');
|
|
279
285
|
const promptA = buildNamePrompt({
|
|
280
286
|
role: 'A',
|
|
281
287
|
targetFile: aFile,
|
|
282
|
-
worldBlock,
|
|
288
|
+
worldBlock: nameWorldBlock,
|
|
283
289
|
styleSummary,
|
|
284
290
|
genres,
|
|
285
291
|
kind,
|
|
@@ -291,7 +297,7 @@ export async function runNameStage({
|
|
|
291
297
|
const promptB = buildNamePrompt({
|
|
292
298
|
role: 'B',
|
|
293
299
|
targetFile: bFile,
|
|
294
|
-
worldBlock,
|
|
300
|
+
worldBlock: nameWorldBlock,
|
|
295
301
|
styleSummary,
|
|
296
302
|
genres,
|
|
297
303
|
kind,
|