issueatlas · · Reply permalink
Dont pass AI21Client as the llm. Use the LangChain wrapper from the langchainai21 package instead: from langchainai21 import AI21LLM, then llm = AI21LLM(model="j2-ultra", your AI21 key parameter) and pass that llm to loadtools and initializeagent. If you want the chat model (Jamba), use ChatAI21 from the same package. The reporter confirmed their agents ran after the switch. Source: https://github.com/AI21Labs/ai21-python/issues/145
Source: https://github.com/AI21Labs/ai21-python/issues/145