{"record":{"id":"2d83fdb51cbb8924","repo":"continuedev/continue","slug":"method-not-implemented-2d83fd","errorCode":null,"errorMessage":"Method not implemented.","messagePattern":"Method not implemented\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/openai-adapters/src/apis/Moonshot.ts","lineNumber":57,"sourceCode":"      }),\n      headers: {\n        \"Content-Type\": \"application/json\",\n        Accept: \"application/json\",\n        Authorization: `Bearer ${this.config.apiKey}`,\n      },\n      signal,\n    });\n\n    for await (const chunk of streamSse(resp as any)) {\n      yield chatChunk({\n        content: chunk.choices[0].delta.content,\n        finish_reason: chunk.finish_reason,\n        model: body.model,\n      });\n    }\n  }\n  list(): Promise<Model[]> {\n    throw new Error(\"Method not implemented.\");\n  }\n}\n","sourceCodeStart":39,"sourceCodeEnd":60,"githubUrl":"https://github.com/continuedev/continue/blob/5522c6f44ca0ac3528b37244818fbfa39b5af470/packages/openai-adapters/src/apis/Moonshot.ts#L39-L60","documentation":"MoonshotAdapter.list() throws 'Method not implemented.' — the Moonshot adapter implements chat/completions but not model listing.","triggerScenarios":"Calling list() on a Moonshot adapter instance.","commonSituations":"Model-discovery code iterating adapters; Moonshot model ids must be hardcoded because the adapter cannot enumerate them.","solutions":["Configure Moonshot model ids (e.g. moonshot-v1-8k, kimi-k2) statically in your config","Catch and skip on list() failures in multi-provider discovery","Fetch models directly from Moonshot's /v1/models endpoint yourself"],"exampleFix":"// before\nconst models = await adapter.list();\n// after\nconst models = await adapter.list().catch(() => [{ id: 'moonshot-v1-8k' }]);","handlingStrategy":"try-catch","validationCode":"const listable = provider !== 'moonshot';","typeGuard":"const supportsList = (p: string) => p !== 'moonshot';","tryCatchPattern":"const models = await api.list().catch(() => [{ id: 'moonshot-v1-8k' }, { id: 'kimi-k2' }]);","preventionTips":["Configure Moonshot model ids statically"],"tags":["moonshot","not-implemented","model-listing"],"backgroundTag":"method-not-implemented","analyzedSha":"5522c6f44ca0ac3528b37244818fbfa39b5af470","analyzedAt":"2026-08-27T11:28:54.683Z","schemaVersion":2},"datasetVersion":"2026-08-27T13:17:12.746Z"}