[docs]defcreate_chat_adapter(model:str)->ChatAdapter:"""Create a chat adapter based on the model. Args: model: The model to create the chat adapter for. Returns: The chat adapter. """if"j2"inmodel:returnJ2ChatAdapter()if"jamba"inmodel:returnJambaChatCompletionsAdapter()raiseValueError(f"Model {model} not supported.")