AuthenticationError:
Traceback:
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\app.py", line 104, in
main()
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\app.py", line 96, in main
vectorstore = get_vectorstore(text_chunks)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\app.py", line 36, in get_vectorstore
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\vectorstores\faiss.py", line 425, in from_texts
embeddings = embedding.embed_documents(texts)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 297, in embed_documents
return self._get_len_safe_embeddings(texts, engine=self.deployment)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 233, in _get_len_safe_embeddings
response = embed_with_retry(
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 64, in embed_with_retry
return _embed_with_retry(kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity__init.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity__init.py", line 379, in call
do = self.iter(retry_state=retry_state)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity\init__.py", line 314, in iter
return fut.result()
File "C:\Users\Shalya\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 439, in result
return self.get_result()
File "C:\Users\Shalya\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 391, in get_result
raise self._exception
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity\init.py", line 382, in call__
result = fn(*args, kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 62, in _embed_with_retry
return embeddings.client.create(*kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_resources\embedding.py", line 33, in create
response = super().create(args, **kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_resources\abstract\engine_apiresource.py", line 153, in create
response, , api_key = requestor.request(
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_requestor.py", line 230, in request
resp, got_stream = self._interpret_response(result, stream)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_requestor.py", line 624, in _interpret_response
self._interpret_response_line(
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_requestor.py", line 687, in _interpret_response_line
AuthenticationError:
Traceback:
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\app.py", line 104, in
main()
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\app.py", line 96, in main
vectorstore = get_vectorstore(text_chunks)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\app.py", line 36, in get_vectorstore
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\vectorstores\faiss.py", line 425, in from_texts
embeddings = embedding.embed_documents(texts)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 297, in embed_documents
return self._get_len_safe_embeddings(texts, engine=self.deployment)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 233, in _get_len_safe_embeddings
response = embed_with_retry(
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 64, in embed_with_retry
return _embed_with_retry(kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity__init.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity__init.py", line 379, in call
do = self.iter(retry_state=retry_state)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity\init__.py", line 314, in iter
return fut.result()
File "C:\Users\Shalya\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 439, in result
return self.get_result()
File "C:\Users\Shalya\AppData\Local\Programs\Python\Python39\lib\concurrent\futures_base.py", line 391, in get_result
raise self._exception
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\tenacity\init.py", line 382, in call__
result = fn(*args, kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\langchain\embeddings\openai.py", line 62, in _embed_with_retry
return embeddings.client.create(*kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_resources\embedding.py", line 33, in create
response = super().create(args, **kwargs)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_resources\abstract\engine_apiresource.py", line 153, in create
response, , api_key = requestor.request(
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_requestor.py", line 230, in request
resp, got_stream = self._interpret_response(result, stream)
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_requestor.py", line 624, in _interpret_response
self._interpret_response_line(
File "D:\AI_Projects\multiple-pdfs_GPT\ask-multiple-pdfs-main3\ask-multiple-pdfs-main\env\lib\site-packages\openai\api_requestor.py", line 687, in _interpret_response_line