An integration package connecting Together AI's API with LangChain. Provides chat models and embeddings. Current version 0.4.0, requires Python >=3.10, <4.0. Release cadence is irregular; latest releases include security patches and MCP server features.
pip install langchain-togetherNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: instantiate ChatTogether with API key and model, then invoke.
Change imports to the new package: from langchain_together import ChatTogether
Use the new model naming convention as documented by Together AI.
Set the correct environment variable or pass directly via 'together_api_key' parameter.
Check LangChain documentation for supported models and pass extra kwargs if needed.
Install with 'pip install langchain-together' and import as 'from langchain_together import ChatTogether'.
Use the correct parameter name: ChatTogether(model='mistralai/Mixtral-8x7B-Instruct-v0.1') or ChatTogether(model_kwargs={'model': '...'}) – check the latest API.Set the TOGETHER_API_KEY environment variable or pass the key via the 'together_api_key' parameter.
Upgrade to latest version: pip install --upgrade langchain-together