continuedev/continue · error · Error

Relace provider does not support reranking.

Error message

Relace provider does not support reranking.

What it means

Relace's adapter does not implement reranking; rerank() always throws 'Relace provider does not support reranking.'

Source

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

  completionStream(
    body: CompletionCreateParamsStreaming,
    signal: AbortSignal,
  ): 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. Use a rerank-capable provider (Jina, Cohere) for rerank() calls
  2. Correct the provider config so rerank models resolve elsewhere
  3. Wrap rerank calls in provider-capability checks
Defensive patterns

Strategy: validation

Validate before calling

if (provider === 'relace') throw new Error('Relace cannot rerank');

Type guard

const supportsRerank = (p: string) => !['relace'].includes(p);

Try / catch

try { return await api.rerank(body); } catch (e) { if (e.message.includes('does not support reranking')) return await jina.rerank(body); throw e; }

Prevention

When it happens

Trigger: Calling rerank() on a Relace adapter with RerankCreateParams.

Common situations: RAG pipelines that call rerank() on whatever provider is configured; provider routing misconfiguration sending rerank traffic to Relace.

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/aec238a3180c60ac. Report an issue: GitHub.