fix(knowledge): 统一向量化费用归属说明

This commit is contained in:
2026-09-15 10:00:06 +08:00
parent 5ed21835ae
commit c466039adb
7 changed files with 23 additions and 10 deletions

View File

@@ -100,9 +100,13 @@ test('personal cloud Agent creation, draft save and leave protection in Electron
await page.getByRole('button', { name: '高级设置', exact: true }).click();
await page.getByRole('button', { name: '知识', exact: true }).click();
await page.getByText('管理我的知识文档', { exact: true }).click();
const knowledgeDescription = page.getByText(/上传到知识库的文档可供/);
await expect(knowledgeDescription).toContainText('embedding 向量化由平台承担,不计入用户用量、词元点数或智能体费用上限');
await expect(knowledgeDescription).toContainText('知识处理如触发对话模型调用,仍按原模型实际用量计费');
await page.getByRole('button', { name: '新建知识库', exact: true }).click();
await expect(page.getByLabel('向量模型', { exact: true })).toBeDisabled();
await page.getByText('管理员配置说明', { exact: true }).click();
await expect(page.getByText(/Embedding 只在 Yuxi 配置/)).toBeVisible();
await expect(page.getByText(/Yuxi 后台/)).toContainText('智能体管理 → 模型供应商');
await expect(page.getByText(/Yuxi 后台/)).toContainText('服务地址和 API Key');
await expect(page.getByText(/Works Square 运营后台|one-api/)).toHaveCount(0);