continuedev/continue · error · Error
CometAPI embeddings not supported: ${error}
Error message
CometAPI embeddings not supported: ${error} What it means
CometAPI.embed wraps any failure from the base OpenAI-compatible embed call and rethrows as 'CometAPI embeddings not supported: ...'. The informative part is the appended original message; the prefix is misleading because the base call may fail for ordinary reasons (auth, model, network).
Source
Thrown at packages/openai-adapters/src/apis/CometAPI.ts:118
/**
* Fill-in-the-middle completion support
*/
fimStream(
body: FimCreateParamsStreaming,
signal: AbortSignal,
): AsyncGenerator<ChatCompletionChunk> {
return super.fimStream(body, signal);
}
/**
* 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
- Read the appended original error to identify the real cause.
- Verify the model ID supports embeddings on CometAPI and the API key is valid.
- If embeddings aren't supported, switch to a dedicated embedding provider.
Defensive patterns
Strategy: try-catch
Try / catch
try { await comet.embed(body); } catch (e) { if (String(e).includes('not supported')) return dedicatedEmbedProvider.embed(body); throw e; } Prevention
- Verify embedding model availability on aggregator proxies before rollout.
- Prefer dedicated embedding providers over proxies.
When it happens
Trigger: Calling embed() on the CometAPI provider when the upstream embedding request fails — wrong embedding model name, missing API key, or endpoint not exposing /embeddings.
Common situations: Using CometAPI (a proxy aggregator) with a model that has no embeddings endpoint; expired/invalid COMETAPI key; assuming every proxied model supports embeddings.
Related errors
- CometAPI reranking not supported: ${error}
- Failed to fetch messages: ${response.statusText}
- No workspace directories found
- await resp.text()
- Invalid CometAPI base URL: ${options.apiBase}. Expected http
AI-assisted analysis of continuedev/continue@5522c6f44c (2026-08-27).
Data as JSON: /api/errors/9e1a32108e8006eb.
Report an issue: GitHub.