mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 14:31:55 +00:00
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:
committed by
GitHub
parent
4cf523949a
commit
a042e804b4
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user