Hi there!
First of all, thank you for this initiative!
I'm working in a project where we want to experiment with various different LLMs, and, while having most of them implemented inside library would be nice, I see that the LLM implementation is actually decoupled from the "LangChain framework", if we formalized the behaviour or a protocol it would enable users of the library to more confidently attach their own LLM implementations and maybe contribute back to the library!
I tried to provide with minimal changes that keeps all of the implementation same, just moves the @spec of ChatOpenAI.call/4 into a behaviour callback.
Hi there! First of all, thank you for this initiative!
I'm working in a project where we want to experiment with various different LLMs, and, while having most of them implemented inside library would be nice, I see that the LLM implementation is actually decoupled from the "LangChain framework", if we formalized the behaviour or a protocol it would enable users of the library to more confidently attach their own LLM implementations and maybe contribute back to the library!
I tried to provide with minimal changes that keeps all of the implementation same, just moves the
@spec
ofChatOpenAI.call/4
into a behaviour callback.