test(llm): retain unsupported-image coverage after catalog upgrade

This commit is contained in:
Tianyi Cui committed 2026-09-29 13:13:41 +08:00
1 parent 6ed596f71b
commit 082404a7b6
1 file changed
+5 -2
+5 -2
View File
@@ -911,12 +911,15 @@ describe('provider profile lifecycle', () => {
await expect(drain({
provider: 'deepseek',
model: 'deepseek-flash',
model: 'deepseek-v4-pro',
messages: [createUserMessage({
content: [{ type: 'image', attachment: IMAGE_REF }],
source: { kind: 'model', provider: 'deepseek-official', model: 'deepseek-v4-flash' },
})],
})).rejects.toMatchObject({ code: 'UNSUPPORTED_CONTENT' })
})).rejects.toMatchObject({
code: 'UNSUPPORTED_CONTENT',
message: 'pi-ai model "deepseek-v4-pro" does not support image input',
})
await expect(drain({
provider: 'openai',
model: 'gpt-4.1',