langchain
langchain copied to clipboard
LLMFacade and ChatModelFacade
Feature request
Provide facades for wrapping any BaseChatModel
into an LLM
interface and wrapping any BaseLanguageModel
into a BaseChatModel
interface.
Motivation
This dramatically simplifies the process of supporting both chat models and language models in the same chain
Your contribution
I have implemented the following facade classes:
-
ChatModelFacade
-
LLMFacade
Details in the PR
https://twitter.com/JacobFValdez
See linked PR for explaination why this is being closed