hwchase17 / chat-your-data

MIT License
901 stars 266 forks source link

ERROR:root:ChatVectorDBChain does not support async #14

Open xsirio opened 1 year ago

xsirio commented 1 year ago

INFO: ('127.0.0.1', 49680) - "WebSocket /chat" [accepted] ../base.py:207: UserWarning: ChatVectorDBChain is deprecated - please use from langchain.chains import ConversationalRetrievalChain warnings.warn( INFO: connection open ERROR:root:ChatVectorDBChain does not support async

dportabella commented 1 year ago

I run python3 app.py, I go to the web browser http://127.0.0.1:7860, I type the OpenAI Key, and this appears in the console:

/opt/homebrew/lib/python3.11/site-packages/langchain/chains/conversational_retrieval/base.py:233: UserWarning: `ChatVectorDBChain` is deprecated - please use `from langchain.chains import ConversationalRetrievalChain`
  warnings.warn(
...
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for ChatVectorDBChain
qa_prompt
  extra fields not permitted (type=value_error.extra)

Trying to type a question, it fails with: Please paste your OpenAI key to use