ai21: AI21 Jamba docs (#21978)

- Updated docs to have an example to use Jamba instead of J2

---------

Co-authored-by: Asaf Gardin <asafg@ai21.com>
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Asaf Joseph Gardin
2024-05-21 22:27:46 +03:00
committed by GitHub
parent 4cf523949a
commit a042e804b4
2 changed files with 4 additions and 10 deletions

View File

@@ -27,11 +27,13 @@ Then initialize
from langchain_core.messages import HumanMessage
from langchain_ai21.chat_models import ChatAI21
chat = ChatAI21(model="j2-ultra")
chat = ChatAI21(model="jamab-instruct")
messages = [HumanMessage(content="Hello from AI21")]
chat.invoke(messages)
```
For a list of the supported models, see [this page](https://docs.ai21.com/reference/python-sdk#chat)
## LLMs
You can use AI21's generative AI models as Langchain LLMs: