Class representing the AI21 language model. It extends the LLM (Large Language Model) class, providing a standard interface for interacting with the AI21 language model.
Optional
Get the default parameters for calling AI21 API.
Get the identifying parameters for this LLM.
Method to validate the environment. It checks if the AI21 API key is set. If not, it throws an error.
Static
Static method to get the default penalty data for AI21.
AI21PenaltyData
Class representing the AI21 language model. It extends the LLM (Large Language Model) class, providing a standard interface for interacting with the AI21 language model.