Skip to main content

Cohere

Cohere

Properties used to connect to Cohere.

cohere

  • Type: {
         model?: string,
         temperature?: number,
         prompt_truncation?: "AUTO" | "OFF",
         connectors?: {id: string}[],
         documents?: {title: string; snippet: string}[]
    }
  • Default: {model: "command-a-03-2025"}

Connect to Cohere's chat API.
model is the name of the Cohere model to be used by the API.
temperature is the degree of the response randomness.
prompt_truncation dictates how the prompt will be constructed. Default is "OFF" which uses all resources. "AUTO" drops some chat history and documents to construct a prompt that fits within the model's context length limit.
connectors is an array of objects that define custom connectors.
documents is an array of objects that define relevant documents which the model can use to enrich its reply. See Document Mode for more info.

Example

<deep-chat
directConnection='{
"cohere": {
"key": "placeholder key",
"temperature": 0.7
}
}'
></deep-chat>
info

Use stream to stream the AI responses.