Skip to content

The agent engineering platform.

fix(llms): update default AI21 model to j2, as j1 being deprecated (#2108)

Michael Gokhman5f34dffedcac
diff --git a/langchain/llms/ai21.py b/langchain/llms/ai21.py
index 169718e26d..1f7736c788 100644
--- a/langchain/llms/ai21.py
+++ b/langchain/llms/ai21.py
@@ -29,10 +29,10 @@ class AI21(LLM, BaseModel):
.. code-block:: python
from langchain.llms import AI21
- ai21 = AI21(model="j1-jumbo")
+ ai21 = AI21(model="j2-jumbo-instruct")
"""
- model: str = "j1-jumbo"
+ model: str = "j2-jumbo-instruct"
"""Model name to use."""
temperature: float = 0.7