Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenLM LLM multi-provider #4993

Merged
merged 7 commits into from
May 23, 2023
Merged

Add OpenLM LLM multi-provider #4993

merged 7 commits into from
May 23, 2023

Conversation

r2d4
Copy link
Contributor

@r2d4 r2d4 commented May 19, 2023

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.

@dev2049
Copy link
Contributor

dev2049 commented May 19, 2023

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

@dev2049 dev2049 added the needs documentation PR needs to be updated with documentation label May 19, 2023
@@ -90,7 +90,7 @@ pandas = {version = "^2.0.1", optional = true}
telethon = {version = "^1.28.5", optional = true}
zep-python = {version="^0.25", optional=true}
chardet = {version="^5.1.0", optional=true}

openlm = {version = "^0.0.5", optional = true}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this isn't added to one of the extras it'll be installed automatically. could we either delete or add to "all" (line 186)

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
Copy link
Contributor Author

r2d4 commented May 22, 2023

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!

@dev2049 dev2049 merged commit de6a401 into langchain-ai:master May 23, 2023
13 checks passed
@danielchalef danielchalef mentioned this pull request Jun 5, 2023
This was referenced Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs documentation PR needs to be updated with documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants