To enable AI-powered features, you’ll need to generate and securely store your OpenAI API key.
- Visit the official OpenAI platform: https://platform.openai.com/account/api-keys
- Sign in or sign up for an account.
- Click Create new secret key
- Copy the generated API key (starts with
sk-...)
Inside your project root (PetConnect/), create a new file called: OpenAI.env
OPENAI_API_KEY=sk-YourGeneratedKeyHere save file
After server is running open a browser and input
to login on the website you need to put
This project requires an OpenAI API key to run certain features.
* **Important:** Never commit the `.env` file to version control. It is already included in `.gitignore`.
-
Create
.envfile in the project root directory: -
Add your API key:
- Open the
.envfile and add:
OPENAI_API_KEY=your_actual_api_key_here
- Open the
-
Run the application:
Some tests require a valid OpenAI API key. Please follow the environment setup instructions above.