langchain.chains.prompt_selector.is_llm¶

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

Check if the language model is a LLM.

Parameters

llm (BaseLanguageModel) – Language model to check.

Returns

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

Return type

bool