langchain.chains.prompt_selector.is_chat_model¶

langchain.chains.prompt_selector.is_chat_model(llm: BaseLanguageModel) bool[source]¶

Check if the language model is a chat model.

Parameters

llm (BaseLanguageModel) – Language model to check.

Returns

True if the language model is a BaseChatModel model, False otherwise.

Return type

bool