feat(server): update model list (#15375)

This commit is contained in:
DarkSky
2026-07-30 13:58:07 +08:00
committed by GitHub
parent 00576e1e78
commit a1defa8a3b
24 changed files with 253 additions and 364 deletions

View File

@@ -17,7 +17,7 @@ test.describe('AIAction/WriteAnPoemAboutThis', () => {
'AFFiNE is a workspace with fully merged docs'
);
const { answer, responses } = await writePoem();
await expect(answer).toHaveText(/AFFiNE/);
await expect(answer.locator('text-renderer')).toContainText(/\S/);
expect(responses).toEqual(new Set(['insert-below', 'replace-selection']));
});
@@ -35,7 +35,7 @@ test.describe('AIAction/WriteAnPoemAboutThis', () => {
}
);
const { answer, responses } = await writePoem();
await expect(answer).toHaveText(/AFFiNE/);
await expect(answer.locator('text-renderer')).toContainText(/\S/);
expect(responses).toEqual(new Set(['insert-below']));
});
@@ -53,7 +53,7 @@ test.describe('AIAction/WriteAnPoemAboutThis', () => {
}
);
const { answer, responses } = await writePoem();
await expect(answer).toHaveText(/AFFiNE/);
await expect(answer.locator('text-renderer')).toContainText(/\S/);
expect(responses).toEqual(new Set(['insert-below']));
});