langchain icon indicating copy to clipboard operation
langchain copied to clipboard

LLMFacade and ChatModelFacade

Open JacobFV opened this issue 1 year ago • 1 comments

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

JacobFV avatar May 07 '23 04:05 JacobFV

https://twitter.com/JacobFValdez

JacobFV avatar May 07 '23 06:05 JacobFV

See linked PR for explaination why this is being closed

JacobFV avatar May 16 '23 01:05 JacobFV