mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
d96f67b06f
- Refactor standard test classes to make them easier to configure - Update openai to support stop_sequences init param - Update groq to support stop_sequences init param - Update fireworks to support max_retries init param - Update ChatModel.bind_tools to type tool_choice - Update groq to handle tool_choice="any". **this may be controversial** --------- Co-authored-by: Chester Curme <chester.curme@gmail.com> |
||
---|---|---|
.. | ||
langchain_together | ||
scripts | ||
tests | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
langchain-together
This package contains the LangChain integrations for Together AI through their APIs.
Installation and Setup
- Install the LangChain partner package
pip install -U langchain-together
- Get your Together AI api key from the Together Dashboard and set it as an environment variable (
TOGETHER_API_KEY
)
Chat Completions
This package contains the ChatTogether
class, which is the recommended way to interface with Together AI chat models.
ADD USAGE EXAMPLE HERE. Can we add this in the langchain docs?
NEED to add image endpoint + completions endpoint as well
Embeddings
See a usage example
Use togethercomputer/m2-bert-80M-8k-retrieval
as the default model for embeddings.