AI21LLM
This service is deprecated.
See this page for the updated ChatAI21 object. :::
This example goes over how to use LangChain to interact with AI21
Jurassic models. To use the Jamba model, use the ChatAI21 object instead.
See a full list of AI21 models and tools on LangChain.
Installation
!pip install -qU langchain-ai21
Environment Setup
We'll need to get a AI21 API key and set the AI21_API_KEY
environment variable:
import os
from getpass import getpass
if "AI21_API_KEY" not in os.environ:
os.environ["AI21_API_KEY"] = getpass()