Hi!
We are using LLAMA with Azure open ai, we are building the NL to SQL using the sql connect using sqlalchemy createnegine, trying to configure VectorIndex using the below code, while running the below code I am getting openai.AuthenticationError
obj_index = ObjectIndex.from_objects(
table_schema_objs,
table_node_mapping,
VectorStoreIndex,
# llm=llm
)
Error:
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: 521fdde6**4b04. You can find your API key at
https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
I am using the correct API key, version and deployment name, I have checked it.
Please suggest what is wrong with it.