continuedev/continue · error · Error

Relace provider does not support model listing.

Error message

Relace provider does not support model listing.

What it means

Relace's adapter does not implement model listing; list() always throws 'Relace provider does not support model listing.' Model ids must be known/configured statically.

Source

Thrown at packages/openai-adapters/src/apis/Relace.ts:176

  ): AsyncGenerator<Completion> {
    throw new Error("Relace provider does not support streaming completion.");
  }
  fimStream(
    body: FimCreateParamsStreaming,
    signal: AbortSignal,
  ): AsyncGenerator<ChatCompletionChunk> {
    throw new Error(
      "Relace provider does not support streaming FIM completion.",
    );
  }
  embed(body: EmbeddingCreateParams): Promise<CreateEmbeddingResponse> {
    throw new Error("Relace provider does not support embeddings.");
  }
  rerank(body: RerankCreateParams): Promise<CreateRerankResponse> {
    throw new Error("Relace provider does not support reranking.");
  }
  list(): Promise<Model[]> {
    throw new Error("Relace provider does not support model listing.");
  }
}

View on GitHub (pinned to 5522c6f44c)

Solutions

  1. Catch and skip Relace when aggregating model lists
  2. Configure Relace model ids statically (e.g. relace-v1) in your config
  3. Filter non-listable providers out of discovery

Example fix

// before
const models = await adapter.list();
// after
const models = await adapter.list().catch(() => []);
Defensive patterns

Strategy: try-catch

Validate before calling

const listable = provider !== 'relace';

Type guard

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

Try / catch

const models = await api.list().catch(() => []);

Prevention

When it happens

Trigger: Calling list() on a Relace adapter, typically during model discovery across providers.

Common situations: Model-picker UIs or /models aggregation endpoints that call list() on every adapter; the Relace call throws and breaks enumeration unless caught.

Understand the failure class

Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.

Related errors


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