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
- Check the appended original message for the true failure.
- Confirm the CometAPI base URL exposes a rerank endpoint and the model is rerank-capable.
- 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
- Confirm the proxy exposes /rerank for your model.
- Keep a rerank-capable fallback provider configured.
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
- CometAPI embeddings not supported: ${error}
- Failed to fetch channels: ${response.statusText}
- AWS Bedrock rerank error (${(error as any).code}): ${error.m
- Error in BedrockReranker.rerank: ${error.message}
- Error in BedrockReranker.rerank: Unknown error occurred
AI-assisted analysis of continuedev/continue@5522c6f44c (2026-08-27).
Data as JSON: /api/errors/7c9deda736013ad8.
Report an issue: GitHub.