Repository: confident-ai/deepeval
Issue: 'Did not find openai_api_key' When using azure openai
Root cause: Configuration Error

**Describe the bug**
When trying to instantiate an AnswerRelevancyMetric the following error message occurs:

```Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter. (type=value_error)```

**To Reproduce**
Follow instructions to set azure openai: https://docs.confident-ai.com/docs/metrics-introduction#using-azure-openai
And then run this script:
```
from deepeval.metrics import AnswerRelevancyMetric

metric = AnswerRelevancyMetric()
```

**Desktop (please complete the following information):**
 - OS: Windows
 - Browser: Edge
 - Version: "^0.21.39"

**Additional context**
Full stack trace:
```
metric = AnswerRelevancyMetric()
  File "C:\ProgramData\miniconda3\envs\helper-analysis\lib\site-packages\deepeval\metrics\answer_relevancy\answer_relevancy.py", line 42, in __init__
    self.model, self.using_native_model = initialize_model(model)
  File "C:\ProgramData\miniconda3\envs\helper-analysis\lib\site-packages\deepeval\metrics\utils.py", line 81, in initialize_model
    return GPTModel(model=model), True
  File "C:\ProgramData\miniconda3\envs\helper-analysis\lib\site-packages\deepeval\models\gpt_model.py", line 52, in __init__
    super().__init__(model_name)
  File "C:\ProgramData\miniconda3\envs\helper-analysis\lib\site-packages\deepeval\models\base_model.py", line 35, in __init__
    self.model = self.load_model(*args, **kwargs)
  File "C:\ProgramData\miniconda3\envs\helper-analysis\lib\site-packages\deepeval\models\gpt_model.py", line 87, in load_model
    return ChatOpenAI(
  File "C:\ProgramData\miniconda3\envs\helper-analysis\lib\site-packages\pydantic\v1\main.py", line 341, in __init__
    raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ChatOpenAI
__root__
  Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter. (type=value_error)
```


Hey @mayalinetsky-kryon are you sure you ran the command correctly and saw something like this afterwards?
```
🙌 Congratulations! You're now using Azure OpenAI for all evals that require an LLM.
```

I ran the code and couldn't reproduce any error (it was working fine)

I did get the "Congratulations" message. 
Maybe I didn't get what "CLI" means in "Run the following command in the CLI to configure your deepeval enviornment..."
I ran the `deepeval set-azure-openai` command in Pycharm's CMD, after activating my conda environment. Does "CLI" mean something else?

@mayalinetsky It should mean the same. Typically CLI is in the terminal, tbh i dont have the exact definition of CLI. Can you check at the root of your project do you see a .deepeval file, and what it contains? You should also come join our discord and ask there for faster responses: https://discord.com/invite/a3K9c8GRGt


@penguine-ip and I talked on Discord, and the problem was that the working directory didn't contain the .deepeval file that is generated after executing the `deepeval set-azure-openai` command.
The issue was resolved after I moved the .deepeval file to the working directory, from which I ran the script.