You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error on upload.
AttributeError: module 'openai' has no attribute 'error'
Traceback:
File "/home/user/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/home/user/Downloads/streamlit-29Aug/LLM-powered-PDF-Chatbot/app.py", line 70, in
main()
File "/home/user/Downloads/streamlit-29Aug/LLM-powered-PDF-Chatbot/app.py", line 48, in main
VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
File "/home/user/.local/lib/python3.10/site-packages/langchain/vectorstores/faiss.py", line 384, in from_texts
embeddings = embedding.embed_documents(texts)
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 234, in embed_documents
return self._get_len_safe_embeddings(texts, engine=self.deployment)
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 175, in _get_len_safe_embeddings
response = embed_with_retry(
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 57, in embed_with_retry
retry_decorator = _create_retry_decorator(embeddings)
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 45, in _create_retry_decorator
retry_if_exception_type(openai.error.Timeout)
The text was updated successfully, but these errors were encountered:
Getting this error on upload.
AttributeError: module 'openai' has no attribute 'error'
Traceback:
File "/home/user/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/home/user/Downloads/streamlit-29Aug/LLM-powered-PDF-Chatbot/app.py", line 70, in
main()
File "/home/user/Downloads/streamlit-29Aug/LLM-powered-PDF-Chatbot/app.py", line 48, in main
VectorStore = FAISS.from_texts(chunks, embedding=embeddings)
File "/home/user/.local/lib/python3.10/site-packages/langchain/vectorstores/faiss.py", line 384, in from_texts
embeddings = embedding.embed_documents(texts)
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 234, in embed_documents
return self._get_len_safe_embeddings(texts, engine=self.deployment)
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 175, in _get_len_safe_embeddings
response = embed_with_retry(
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 57, in embed_with_retry
retry_decorator = _create_retry_decorator(embeddings)
File "/home/user/.local/lib/python3.10/site-packages/langchain/embeddings/openai.py", line 45, in _create_retry_decorator
retry_if_exception_type(openai.error.Timeout)
The text was updated successfully, but these errors were encountered: