Hello guys I used the below code:
response_synthesizer = get_response_synthesizer(
response_mode="tree_summarize", use_async=True
)
doc_summary_index = DocumentSummaryIndex.from_documents(
docs,
llm=model,
transformations=[splitter],
response_synthesizer=response_synthesizer,
show_progress=True,
)
But getting the below error:
Retrying llama_index.llms.openai.base.OpenAI._achat in 0.6095206818593486 seconds as it raised AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: d30f82b6
**3c2d. You can find your API key at
https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}.
Retrying llama_index.llms.openai.base.OpenAI._achat in 0.5644481896703909 seconds as it raised AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: d30f82b6
**3c2d. You can find your API key at
https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}.
Retrying llama_index.llms.openai.base.OpenAI._achat in 0.9375103431401703 se