feat(prompt): 一件代发优先引用代发来源

This commit is contained in:
wangliang
2026-10-23 15:15:47 +08:00
parent dfc3b497f5
commit 74d13ec181
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
'use strict';
const test = require('node:test');
const assert = require('node:assert/strict');
const { SYSTEM_PROMPT, buildSystemPrompt } = require('../src/prompts');
test('prompt: dropshipping answers prefer dropshipping source urls', () => {
assert.match(SYSTEM_PROMPT, /dropshipping\.yehwang\.com\/faq\//);
assert.match(SYSTEM_PROMPT, /Do NOT replace them with similar www\.yehwang\.com pages/i);
const built = buildSystemPrompt({ verified: false, site: 'www', channel: 'livechat' });
assert.match(built, /dropshipping\.yehwang\.com\/faq\//);
});