ReqLLM.Providers.AmazonBedrock.Cohere (ReqLLM v1.12.0)

View Source

Cohere model family support for AWS Bedrock.

Currently supports Cohere embedding models (cohere.embed-v4) on AWS Bedrock.

Supported Models

  • cohere.embed-v4:0 - Cohere Embed v4 with support for text and image embeddings

Input Modes

Cohere Embed v4 supports three input modes:

  1. Text-only - Pass strings directly via the text parameter
  2. Image-only - Pass base64-encoded images via :images provider option
  3. Mixed (interleaved) - Pass content parts via :inputs provider option

Summary

Functions

Formats text, images, or mixed content into Cohere embedding request format for Bedrock.

Parses Cohere embedding response into OpenAI-compatible format.

Functions

embedding_request_schema()

embedding_response_schema()

format_embedding_request(model_id, text, opts)

Formats text, images, or mixed content into Cohere embedding request format for Bedrock.

parse_embedding_response(response)

Parses Cohere embedding response into OpenAI-compatible format.