feat: combine dedicated and web search providers
This commit is contained in:
@@ -59,7 +59,13 @@ test('filterChatSkills shows generate-page when publish is allowed', () => {
|
||||
});
|
||||
|
||||
test('buildChatSkillPrompt includes skill name for platform skills', () => {
|
||||
assert.match(buildChatSkillPrompt('web', 'web'), /请使用 web 技能/);
|
||||
const webPrompt = buildChatSkillPrompt('web', 'web');
|
||||
assert.match(webPrompt, /请使用 web 技能/);
|
||||
assert.match(webPrompt, /tkmind_search/);
|
||||
assert.match(webPrompt, /web_search/);
|
||||
const enhancedPrompt = buildChatSkillPrompt('search-enhanced', 'search-enhanced');
|
||||
assert.match(enhancedPrompt, /tkmind_search/);
|
||||
assert.match(enhancedPrompt, /web_search/);
|
||||
assert.match(buildChatSkillPrompt('service-integration-smoke'), /标准联调流程/);
|
||||
assert.match(buildChatSkillPrompt('product-campaign-page'), /商品宣传 \/ 活动页/);
|
||||
assert.match(buildChatSkillPrompt('image-generation'), /asset\.htmlSrc/);
|
||||
|
||||
Reference in New Issue
Block a user