MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeModelsResponse

Function makeModelsResponse

packages/oauth/test/open-platform.test.ts:16–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14} from '../src/open-platform';
15
16function 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
47describe('OPEN_PLATFORMS', () => {
48 it('contains moonshot.cn and moonshot.ai', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected