docs: deliver 1.25.6 model capacity display and independent source releases

This commit is contained in:
Agent Workbench Dev
2026-11-06 09:48:28 +08:00
parent 3494ae7ab2
commit cee6e03247
7 changed files with 161 additions and 4 deletions
+6 -2
View File
@@ -42,9 +42,13 @@ try {
const file = path.join(root, 'open-budget-390.png'); await page.screenshot({ path: file, fullPage: true }); screenshots.push(file);
await dialog.getByRole('button', { name: '模型连接', exact: true }).click();
const center = await (await fetch(url + '/api/model-center', { headers: { 'X-Workbench-Token': boot.token, Connection: 'close' } })).json();
const connection = center.connections.find(value => value.id !== 'legacy-default' && value.enabled);
const connection = center.connections.find(value => value.id === center.selected.id && value.id !== 'legacy-default' && value.enabled)
?? center.connections.find(value => value.id !== 'legacy-default' && value.enabled);
if (connection) {
const card = dialog.locator('.mc-connection').filter({ has: page.getByRole('heading', { name: connection.name, exact: true }) });
const cards = dialog.locator('.mc-connections > .mc-connection');
await expect(cards).toHaveCount(center.connections.length);
const card = cards.nth(center.connections.findIndex(value => value.id === connection.id));
await expect(card.getByRole('heading', { name: connection.name, exact: true })).toBeVisible();
await card.getByRole('button', { name: '编辑', exact: true }).click();
const editor = dialog.getByRole('form', { name: '编辑模型连接', exact: true });
await expect(editor.getByLabel('上下文上限', { exact: true })).toHaveCount(0);