Open History to see the last commit
1import { test, expect } from './fixtures'
2
3test('text adapters report the input modalities of their model at run time', async ({
4 request,
5}) => {
6 const response = await request.get('/api/adapter-input-modalities')
7
8 expect(response.ok()).toBe(true)
9 await expect(response.json()).resolves.toEqual({
10 openai: ['text', 'image', 'document'],
11 openaiAudio: ['text', 'audio'],
12 anthropic: ['text', 'image', 'document'],
13 gemini: ['text', 'image', 'audio', 'video'],
14 bedrock: ['text', 'image'],
15 bedrockConverse: ['text', 'image', 'document'],
16 })
17})