ChatTogetherAI 聊天模型。有关 ChatTogetherAI 所有功能和配置的详细文档,请参阅 API 参考。
概述
集成详情
| 类 | 包 | 可序列化 | Python 支持 | 下载量 | 版本 |
|---|---|---|---|---|---|
ChatTogetherAI | @langchain/community | ✅ | ✅ |
模型特性
有关如何使用特定功能的指南,请参阅下表标题中的链接。设置
要访问ChatTogetherAI 模型,您需要创建一个 Together 账户,获取 API 密钥,并安装 @langchain/community 集成包。
凭证
前往 api.together.ai 注册 TogetherAI 并生成 API 密钥。完成后,设置TOGETHER_AI_API_KEY 环境变量:
安装
LangChain ChatTogetherAI 集成位于@langchain/community 包中:
实例化
现在我们可以实例化模型对象并生成聊天完成:调用
API 参考
有关ChatTogetherAI 所有功能和配置的详细文档,请参阅 API 参考。
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

