Native Cohere API routev3.6+

Configure a route that uses native Cohere APIs with the Cohere SDK.

Supported native Cohere APIs include:

  • /v1/rerank
  • /v2/rerank

Set llm_format: cohere to enable compatibility with these APIs. Use default values for genai_category and route_type parameters (text/generation and llm/v1/chat).

Prerequisites

  • Cohere account with API key

Environment variables

  • COHERE_API_KEY: The API key to use to connect to Cohere.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!