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

  1. Read the appended original error to identify the real cause.
  2. Verify the model ID supports embeddings on CometAPI and the API key is valid.
  3. 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

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


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