Skip to content

Provider Cohere zh

euxarist edited this page Nov 9, 2026 · 1 revision

Cohere

cohere 通过原生 Chat API v2 调用 Cohere 模型。

连接

  • 运行 /provider 选择 Cohere,或设置 CAIRN_PROVIDER=cohere。
  • API 密钥:COHERE_API_KEY,或 /auth key cohere。

模型

对话走 POST https://api.cohere.com/v2/chat;模型列表仍来自 GET /v1/models,只保留可对话且未弃用的条目。

说明

  • 系统提示是 system 角色的消息,历史就是一条 messages 列表;v1 的 preamble 和 chat_history 已不再使用。
  • 工具调用带 id,工具结果以 tool 消息返回。
  • 流式输出使用 v2 的类型化事件流。

[返回提供商列表|Providers-zh]

Clone this wiki locally