Thanks for your interest in contributing to the OpenAI Proxy project! Here's how you can help.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/openai-proxy.git - Create a branch for your changes:
git checkout -b your-feature-name
-
Install dependencies:
pip install -r requirements.txt -
Copy the example environment file:
cp .env-example .env -
Edit the
.envfile with your API keys and settings
- Make your changes in your branch
- Write or update tests to cover your changes
- Run the tests to make sure everything works:
pytest - Make sure your code follows the project's style guidelines
- Push your changes to your fork:
git push origin your-feature-name - Create a pull request from your fork to the main repository
- In your pull request, describe the changes and why they should be included
- Use Python type hints wherever possible
- Follow PEP 8 style guidelines
- Add docstrings to functions and classes
- Keep functions small and focused on a single task
- Add tests for any new features or bug fixes
- Ensure all tests pass before submitting your pull request
- Include both unit tests and integration tests when appropriate
If you find a bug, please create an issue with:
- A clear description of the bug
- Steps to reproduce it
- Expected vs. actual behavior
- Environment information (OS, Python version, etc.)
For feature requests, please create an issue that describes:
- The problem you're trying to solve
- Why it's important
- Your proposed solution
By contributing, you agree that your contributions will be licensed under the project's Apache License 2.0.