langchain/libs/partners/together
Bagatur d96f67b06f
standard-tests[patch]: Update chat model standard tests (#22378)
- 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>
2024-06-17 13:37:41 -07:00
..
langchain_together core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
scripts together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00
tests standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
.gitignore together: package and embedding model (#14936) 2023-12-19 18:48:32 -08:00
LICENSE together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00
Makefile together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00
poetry.lock standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
pyproject.toml standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
README.md together: add chat models, use openai base (#21337) 2024-05-06 17:47:06 -07:00

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.