continuedev/continue · error · Error

CometAPI reranking not supported: ${error}

Error message

CometAPI reranking not supported: ${error}

What it means

CometAPI.rerank wraps any failure of the base rerank call with a 'reranking not supported' prefix. The actual cause (auth, missing /rerank endpoint on the proxied base URL, bad model) is in the appended message.

Source

Thrown at packages/openai-adapters/src/apis/CometAPI.ts:129

  /**
   * Embeddings support (if available through CometAPI)
   */
  async embed(body: EmbeddingCreateParams): Promise<CreateEmbeddingResponse> {
    try {
      return await super.embed(body);
    } catch (error) {
      throw new Error(`CometAPI embeddings not supported: ${error}`);
    }
  }

  /**
   * Reranking support (if available through CometAPI)
   */
  async rerank(body: RerankCreateParams): Promise<CreateRerankResponse> {
    try {
      return await super.rerank(body);
    } catch (error) {
      throw new Error(`CometAPI reranking not supported: ${error}`);
    }
  }
}

View on GitHub (pinned to 5522c6f44c)

Solutions

  1. Check the appended original message for the true failure.
  2. Confirm the CometAPI base URL exposes a rerank endpoint and the model is rerank-capable.
  3. Route reranking to a provider with native rerank support (Cohere, Jina, Bedrock).
Defensive patterns

Strategy: fallback

Try / catch

try { await comet.rerank(body); } catch (e) { if (String(e).includes('reranking not supported')) return cohere.rerank(body); throw e; }

Prevention

When it happens

Trigger: Calling rerank() on the CometAPI provider when the upstream /rerank request fails — e.g. the underlying OpenAI-compatible base URL has no rerank route.

Common situations: Aggregator proxies that only expose chat/embeddings; pointing the adapter at a base URL lacking Jina/Cohere-style /rerank endpoints.

Related errors


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