Skip to content

Commit eb2fbff

Browse files
authored
Merge pull request #16 from ilyas829/update
Update
2 parents 731857a + b811b45 commit eb2fbff

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

projects/code-gen automation/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,44 @@ python code_generator.py "Two Sum" python --debug-connect --log-level DEBUG
4949
- Endpoint: `https://models.github.ai/inference`
5050
- Model: `openai/gpt-4o-mini`
5151

52+
## How others can use this tool
53+
1) Fork this repository on GitHub
54+
55+
2) Clone your fork
56+
```bash
57+
git clone https://github.com/<your-username>/Python-Basics-to-Advanced.git
58+
cd Python-Basics-to-Advanced/Python-Basics-to-Advanced/projects/code-gen automation
59+
```
60+
61+
3) Create a virtual environment and install dependencies
62+
```bash
63+
python -m venv .venv
64+
source .venv/bin/activate # Windows PowerShell: .\.venv\Scripts\Activate.ps1
65+
pip install -r requirements.txt
66+
```
67+
68+
4) Add your token to `secret.txt`
69+
```text
70+
<YOUR_GITHUB_TOKEN_HERE>
71+
```
72+
- Single line, no quotes, no variable name
73+
74+
5) Run the generator
75+
```bash
76+
python code_generator.py "Two Sum" python
77+
```
78+
79+
6) Optional: verbose logs and diagnostics
80+
```bash
81+
python code_generator.py "Two Sum" python --log-level DEBUG
82+
python code_generator.py "Two Sum" python --debug-connect --log-level DEBUG
83+
```
84+
85+
Notes for contributors
86+
- Do not commit real tokens. `secret.txt` is git‑ignored.
87+
- Open a PR from your fork’s branch to propose improvements.
88+
- If you change dependencies, update `requirements.txt` accordingly.
89+
5290
## Troubleshooting
5391
- 401 Unauthorized in diagnostics: token missing/invalid or lacks Models permissions
5492
- 429 Too Many Requests: rate limit; wait and retry

0 commit comments

Comments
 (0)