continuedev/continue · error · Error

Method not implemented.

Error message

Method not implemented.

What it means

MoonshotAdapter.list() throws 'Method not implemented.' — the Moonshot adapter implements chat/completions but not model listing.

Source

Thrown at packages/openai-adapters/src/apis/Moonshot.ts:57

      }),
      headers: {
        "Content-Type": "application/json",
        Accept: "application/json",
        Authorization: `Bearer ${this.config.apiKey}`,
      },
      signal,
    });

    for await (const chunk of streamSse(resp as any)) {
      yield chatChunk({
        content: chunk.choices[0].delta.content,
        finish_reason: chunk.finish_reason,
        model: body.model,
      });
    }
  }
  list(): Promise<Model[]> {
    throw new Error("Method not implemented.");
  }
}

View on GitHub (pinned to 5522c6f44c)

Solutions

  1. Configure Moonshot model ids (e.g. moonshot-v1-8k, kimi-k2) statically in your config
  2. Catch and skip on list() failures in multi-provider discovery
  3. Fetch models directly from Moonshot's /v1/models endpoint yourself

Example fix

// before
const models = await adapter.list();
// after
const models = await adapter.list().catch(() => [{ id: 'moonshot-v1-8k' }]);
Defensive patterns

Strategy: try-catch

Validate before calling

const listable = provider !== 'moonshot';

Type guard

const supportsList = (p: string) => p !== 'moonshot';

Try / catch

const models = await api.list().catch(() => [{ id: 'moonshot-v1-8k' }, { id: 'kimi-k2' }]);

Prevention

When it happens

Trigger: Calling list() on a Moonshot adapter instance.

Common situations: Model-discovery code iterating adapters; Moonshot model ids must be hardcoded because the adapter cannot enumerate them.

Related errors


AI-assisted analysis of continuedev/continue@5522c6f44c (2026-08-27). Data as JSON: /api/errors/2d83fdb51cbb8924. Report an issue: GitHub.