

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# Cohere   模型
<a name="model-parameters-cohere"></a>

本部分介绍 Cohere 模型的请求参数和响应字段。使用此信息通过[InvokeModel](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html)和 [InvokeModelWithResponseStream](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html)（流式传输）操作对Cohere模型进行推理调用。本部分还包括 Python 代码示例，展示了如何调用 Cohere 模型。要在推理操作中使用模型，您需要相关模型的模型 ID。要获取模型 ID，请参阅 [Amazon Bedrock 中支持的根基模型](models-supported.md)。有些模型还能与 [Converse API](conversation-inference.md) 配合使用。要检查特定Cohere型号是否支持某项功能，请查看[型号概览](model-cards.md)。有关更多代码示例，请参阅 [使用 Amazon Bedrock 的代码示例 AWS 软件开发工具包](service_code_examples.md)。

Amazon Bedrock 中的基础模型支持输入和输出模态，这些模态因模型而异。要查看 Cohere 模型支持的模态，请参阅 [Amazon Bedrock 中支持的根基模型](models-supported.md)。要查看 Cohere 模型支持哪些 Amazon Bedrock 功能，请参阅 [Amazon Bedrock 中支持的根基模型](models-supported.md)。要查看Cohere模型在哪些 AWS 区域可用，请参阅[Amazon Bedrock 中支持的根基模型](models-supported.md)。

使用 Cohere 模型进行推理调用时，您可以为模型创建提示。有关为 Amazon Bedrock 支持的模型创建提示的一般信息，请参阅 [提示工程概念](prompt-engineering-guidelines.md)。有关 Cohere 的特定提示信息，请参阅 [Cohere 提示工程指南](https://txt.cohere.com/how-to-train-your-pet-llm-prompt-engineering)。

**Topics**
+ [Cohere 命令   模型](model-parameters-cohere-command.md)
+ [Cohere 嵌入 and Cohere Embed v4   模型](model-parameters-embed.md)
+ [Cohere Command R and Command R\+   模型](model-parameters-cohere-command-r-plus.md)