I am trying to run main.py. getting the following error. It will be great if you help to solve the following issue.
(base) (Azure_openAI) l006531@C02CQ3NLMD6N azure-openai-custom-chatgpt % python main.py
Prompt: When the coronation took place?
Entering new StuffDocumentsChain chain...
Entering new LLMChain chain...
Prompt after formatting:
Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.
Charles removed his robe of state and was seated on the Coronation Chair.[91][92] He then was anointed with holy oil by the Archbishop of Canterbury, using the ampulla and a medieval spoon, the latter the oldest part of the coronation regalia. The anointing emphasised the spiritual role of the sovereign. It was a private part of the service; as in 1953 it was not televised, and Charles was concealed by a screen. During this the choir sang the anthem Zadok the Priest.[93]
Investment and crowning
========================================== New Doc ==========================================
The coronation elicited both celebrations and protests in the United Kingdom and the other Commonwealth realms. Celebrations in the United Kingdom included street parties, volunteering, special commemorative church services, and a concert at Windsor Castle on 7 May. The ceremony was watched by a peak television audience of 20.4 million in the United Kingdom. Surveys carried out in April 2023 suggested that the British public was ambivalent towards the event and its funding; the events in London and Windsor
========================================== New Doc ==========================================
Service and procession
Order of service for the coronation
The organisation of the coronation was the responsibility of the earl marshal, Edward Fitzalan-Howard.[8] A committee of privy counsellors arranged the event.[9][7] On 11 October 2022, the date of the coronation was announced as 6 May 2023, a choice made to ensure sufficient time to mourn the death of Queen Elizabeth II before holding the ceremony.[10][7]
========================================== New Doc ==========================================
Enthronement and homage
Charles moved to the throne (originally made for George VI in 1937) and the Archbishop of Canterbury and William, Prince of Wales, offered him their fealty.[89][79] The Archbishop of Canterbury then invited the people of the United Kingdom and the other Commonwealth realms to swear allegiance to the King, the first time this has occurred.[79][95]
Coronation of the Queen
Queen Mary's Crown (here depicted in its original form) was used to crown Queen Camilla
Question: When the coronation took place?
Helpful Answer:
Traceback (most recent call last):
File "/Users/l006531/Azure_openAI/azure-openai-custom-chatgpt/main.py", line 31, in
completion = run_conversational_chain(prompt, chat_history, retriever)
File "/Users/l006531/Azure_openAI/azure-openai-custom-chatgpt/chain_utils.py", line 53, in run_conversational_chain
response = support_qa.run({"question": question, "chat_history": history})
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 236, in run
return self(args[0], callbacks=callbacks)[self.output_keys[0]]
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 140, in call
raise e
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 134, in call
self._call(inputs, run_manager=run_manager)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/conversational_retrieval/base.py", line 110, in _call
answer = self.combine_docs_chain.run(
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 239, in run
return self(kwargs, callbacks=callbacks)[self.output_keys[0]]
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 140, in call
raise e
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 134, in call
self._call(inputs, run_manager=run_manager)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/combine_documents/base.py", line 84, in _call
output, extra_return_dict = self.combine_docs(
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/combine_documents/stuff.py", line 87, in combine_docs
return self.llm_chain.predict(callbacks=callbacks, **inputs), {}
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/llm.py", line 213, in predict
return self(kwargs, callbacks=callbacks)[self.output_key]
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 140, in call
raise e
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/base.py", line 134, in call
self._call(inputs, run_manager=run_manager)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/llm.py", line 69, in _call
response = self.generate([inputs], run_manager=run_manager)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chains/llm.py", line 79, in generate
return self.llm.generate_prompt(
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chat_models/base.py", line 143, in generate_prompt
return self.generate(prompt_messages, stop=stop, callbacks=callbacks)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chat_models/base.py", line 91, in generate
raise e
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chat_models/base.py", line 83, in generate
results = [
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chat_models/base.py", line 84, in
self._generate(m, stop=stop, run_manager=run_manager)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 296, in _generate
response = self.completion_with_retry(messages=message_dicts, **params)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 257, in completion_with_retry
return _completion_with_retry(**kwargs)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/tenacity/init.py", line 289, in wrapped_f
return self(f, *args, **kw)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/tenacity/init.py", line 379, in call
do = self.iter(retry_state=retry_state)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/tenacity/init.py", line 314, in iter
return fut.result()
File "/Users/l006531/.pyenv/versions/3.10.6/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/Users/l006531/.pyenv/versions/3.10.6/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/tenacity/init.py", line 382, in call
result = fn(*args, **kwargs)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 255, in _completion_with_retry
return self.client.create(**kwargs)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/openai/api_resources/chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/openai/api_requestor.py", line 298, in request
resp, got_stream = self._interpret_response(result, stream)
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/openai/api_requestor.py", line 700, in _interpret_response
self._interpret_response_line(
File "/Users/l006531/chatgpt5/lib/python3.10/site-packages/openai/api_requestor.py", line 763, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.
(base) (Azure_openAI) l006531@C02CQ3NLMD6N azure-openai-custom-chatgpt %