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 ChatModelWithLLMIface to use chat models #33

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

Dedalo314
Copy link
Contributor

This class wraps langchain's chat models so that they expose the same interface as LLMs. Particularly useful to run OpenAI latest chat models as if they had completions interfaces.

What does this PR do?

Adds a class to expose langchain's chat models with the BaseLLM interface.

Before submitting

  • Did you make sure title is self-explanatory and the description concisely explains the PR?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you test your PR locally with pytest command?
  • Did you run pre-commit hooks with pre-commit run -a command?

Did you have fun?

Make sure you had fun coding 🙃

This class wraps langchain's chat models so that they expose the same
interface as LLMs. Particularly useful to run OpenAI latest chat models
as if they had completions interfaces.
@Dedalo314 Dedalo314 merged commit a1e5039 into main Dec 28, 2023
4 checks passed
@Dedalo314 Dedalo314 deleted the daedalus/chat_model_compat branch December 28, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant