feat(prompt): 一件代发优先引用代发来源
This commit is contained in:
@@ -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\//);
|
||||
});
|
||||
Reference in New Issue
Block a user