NVIDIA / NeMo-Guardrails

NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Other
4k stars 365 forks source link

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

Open UBGplus opened 1 week ago

UBGplus commented 1 week ago

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 findvalidators(type, config) 763 yield make_arbitrary_typevalidator(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 commented 1 week ago

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