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

----> 1 from langchain_openai import AzureChatOpenAI #753

Open
UBGplus opened this issue Sep 16, 2024 · 1 comment
Open

----> 1 from langchain_openai import AzureChatOpenAI #753

UBGplus opened this issue Sep 16, 2024 · 1 comment
Assignees
Labels
status: needs info Issues that require more information from the reporter to proceed.

Comments

@UBGplus
Copy link

UBGplus commented Sep 16, 2024

I am continuously getting below error

RuntimeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from langchain_openai import AzureChatOpenAI
2
3 llm = AzureChatOpenAI(
4 azure_deployment="gpt-35-turbo", # or your deployment
5 api_version="2024-02-01", # or your api version

19 frames
/usr/local/lib/python3.10/dist-packages/pydantic/v1/validators.py in find_validators(type_, config)
763 yield make_arbitrary_type_validator(type_)
764 else:
--> 765 raise RuntimeError(f'no validator found for {type_}, see arbitrary_types_allowed in Config')

RuntimeError: no validator found for <class 'langchain_core.callbacks.base.BaseCallbackHandler'>, see arbitrary_types_allowed in Config

@Pouyanpi
Copy link
Collaborator

Hi @UBGplus, it seems to be related to langchain, how does it arise within NeMo Guardrails?

@Pouyanpi Pouyanpi self-assigned this Sep 17, 2024
@Pouyanpi Pouyanpi added the status: needs info Issues that require more information from the reporter to proceed. label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs info Issues that require more information from the reporter to proceed.
Projects
None yet
Development

No branches or pull requests

2 participants