LangChainChatModelFactory

LangChainChatModelFactory()

Helper class that provides a standard way to create an ABC using inheritance.

Static Methods

register_factory

register_factory() -> Callable[[type[~T]], type[~T]]

Instance Methods

accepts

accepts(first_llm_config: dict[str, Any]) -> bool
Parameters:
NameDescription
first_llm_configType: dict[str, typing.Any]

create

create(first_llm_config: dict[str, Any]) ->
Parameters:
NameDescription
first_llm_configType: dict[str, typing.Any]

create_base_chat_model

create_base_chat_model(llm_config: LLMConfig | dict[str, Any]) ->
Parameters:
NameDescription
llm_configType: LLMConfig | dict[str, typing.Any]

get_api_type

get_api_type() -> str

prepare_config

prepare_config(first_llm_config: dict[str, Any]) -> dict[str, Any]
Parameters:
NameDescription
first_llm_configType: dict[str, typing.Any]