langchain icon indicating copy to clipboard operation
langchain copied to clipboard

Add OpenLM LLM multi-provider

Open r2d4 opened this issue 2 years ago • 1 comments

OpenLM is a zero-dependency OpenAI-compatible LLM provider that can call different inference endpoints directly via HTTP. It implements the OpenAI Completion class so that it can be used as a drop-in replacement for the OpenAI API. This changeset utilizes BaseOpenAI for minimal added code.

r2d4 avatar May 19 '23 17:05 r2d4

thanks @r2d4! could we add a simple example notebook (a la docs/modules/models/llms/integrations/openai.ipynb)

dev2049 avatar May 19 '23 22:05 dev2049

Thanks for the feedback @dev2049

  • Added documentation in the form of a notebook
  • Added the dependency to extras so it isn't downloaded automatically

Let me know if there are any other changes!

r2d4 avatar May 22 '23 20:05 r2d4