https://github.com/exios66/openai-agents
https://github.com/exios66/openai-agents
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/exios66/openai-agents
- Owner: Exios66
- Created: 2025-03-12T19:59:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-12T20:16:13.000Z (over 1 year ago)
- Last Synced: 2025-06-03T01:39:23.175Z (about 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenAI API Project
This project uses the OpenAI API to generate content.
## Setup
1. Install the required packages:
```
pip install openai python-dotenv
```
2. Create a `.env` file in the root directory with your OpenAI API key:
```
OPENAI_API_KEY=
```
3. To load the environment variables, update your code to use python-dotenv:
```python
from dotenv import load_dotenv
load_dotenv() # This loads the variables from .env
```
## Security
- Never commit your API keys to version control
- The `.env` file is included in `.gitignore` to prevent accidental commits
- Always use environment variables for sensitive information