EmbeddingModel.cohere constructor

EmbeddingModel.cohere(
  1. String apiKey,
  2. String modelId, {
  3. String? baseUrl,
})

Create a Cohere embedding model (e.g. embed-english-v3.0).

Implementation

factory EmbeddingModel.cohere(String apiKey, String modelId,
        {String? baseUrl}) =>
    EmbeddingModel._(construct2(apiKey, modelId, baseUrl,
        _ffi.cohereEmbeddingNew, _ffi.cohereEmbeddingNewWithBase));