| 14 | } from '../src/open-platform'; |
| 15 | |
| 16 | function makeModelsResponse(): Response { |
| 17 | return new Response( |
| 18 | JSON.stringify({ |
| 19 | data: [ |
| 20 | { |
| 21 | id: 'kimi-k2-0712-preview', |
| 22 | context_length: 256000, |
| 23 | supports_reasoning: true, |
| 24 | supports_image_in: true, |
| 25 | supports_video_in: true, |
| 26 | display_name: 'Kimi K2 0712 Preview', |
| 27 | }, |
| 28 | { |
| 29 | id: 'kimi-k2-lite', |
| 30 | context_length: 128000, |
| 31 | supports_reasoning: false, |
| 32 | supports_image_in: false, |
| 33 | supports_video_in: false, |
| 34 | supports_tool_use: false, |
| 35 | }, |
| 36 | { |
| 37 | id: 'non-kimi-model', |
| 38 | context_length: 1000, |
| 39 | supports_reasoning: false, |
| 40 | }, |
| 41 | ], |
| 42 | }), |
| 43 | { status: 200, headers: { 'Content-Type': 'application/json' } }, |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | describe('OPEN_PLATFORMS', () => { |
| 48 | it('contains moonshot.cn and moonshot.ai', () => { |