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

duplicate validator function #441

Open
Almenon opened this issue Feb 4, 2023 · 1 comment
Open

duplicate validator function #441

Almenon opened this issue Feb 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Almenon
Copy link
Owner

Almenon commented Feb 4, 2023

Describe the bug

pydantic.errors.ConfigError: duplicate validator function "langchain.prompts.base.BasePromptTemplate.validate_variable_names"; if this is intended, set `allow_reuse=True`

To Reproduce
Steps to reproduce the behavior:

  1. from langchain.llms import OpenAI
  2. Run once
  3. Run again

Expected behavior
No error

Screenshots
If applicable, add screenshots to help explain your problem.

Other Information (please complete the following information):

  • OS: [e.g. Windows10]
  • Python Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Almenon Almenon added the bug Something isn't working label Feb 4, 2023
@Almenon
Copy link
Owner Author

Almenon commented Feb 4, 2023

Fix and workaround described in #439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant