# Cohere Chat (https://docs.fuser.studio/docs/nodes/llm/cohere-chat)

_Provided by [Cohere](https://cohere.com) — [Learn More](https://cohere.com)._

## Inputs [#inputs]

- **Prompt** (`textarea`) — The message prompt to send to the model.

- **Model** (`dropdown`) — The Cohere model to use for chat completion.

   Optional: `true` • Default: `command-r-08-2024` • Accepts: `command-a`, `command-r7b`, `command-r`, `command-r-plus`

- **System Prompt** (`textarea`) — A system prompt that sets the behavior and context for the conversation.

   Optional: `true`

- **Attachment** (`string`) _(accepts multiple)_ — Attachments to include with the prompt (images, text, etc.).

   Optional: `true`

- **Last Message Only** (`toggle`) — If enabled, only the last message will be sent to the model instead of the full conversation history.

   Optional: `true` • Default: `false`

- **Temperature** (`number`) — Controls randomness in the output. Higher values make the output more random, lower values make it more deterministic.

   Optional: `true` • Minimum: `-1` • Maximum: `1`

- **Seed** (`seed`) — A seed value for reproducible outputs. Use the same seed to get consistent results.

   Optional: `true` • Default: `6827`

- **Top P** (`number`) — Nucleus sampling parameter. Controls diversity via nucleus sampling.

   Optional: `true`

- **Top K** (`number`) — Limits the number of highest probability tokens to consider.

   Optional: `true`

- **Max Tokens** (`number`) — Maximum number of tokens to generate in the response.

   Optional: `true`

- **Stop Sequences** (`string`) _(accepts multiple)_ — Sequences that will cause the model to stop generating further tokens.

   Optional: `true`

- **Presence Penalty** (`number`) — Penalizes tokens based on whether they appear in the text so far.

   Optional: `true` • Minimum: `-2` • Maximum: `2`

- **Frequency Penalty** (`number`) — Penalizes tokens based on their frequency in the text so far.

   Optional: `true` • Minimum: `-2` • Maximum: `2`

## Outputs [#outputs]

- **Last Response** (`textarea`) — The last response from the model.