Compare commits

...

2 Commits

Author SHA1 Message Date
e0fb68d659 Upgraded to retoor/code. 2025-12-13 14:14:46 +01:00
6fc4ab020c Upgraded to retoor/code. 2025-12-13 14:12:22 +01:00
2 changed files with 13 additions and 4 deletions

View File

@ -13,10 +13,10 @@
## Version 0.10.0 - 2025-12-13 ## Version 0.10.0 - 2025-12-13
update model to "openai/gpt-4.1-nano" and API url Adds a docstring with usage instructions to rgithook.py, improving developer guidance on its functionality.
**Changes:** 1 files, 2 lines **Changes:** 1 files, 9 lines
**Languages:** Python (2 lines) **Languages:** Python (9 lines)
## Version 0.9.0 - 2025-11-16 ## Version 0.9.0 - 2025-11-16

View File

@ -1,7 +1,16 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
"""
How to have a hapii life:
1. Execute this on a generic place, where you don't delete it:
`wget https://retoor.molodetz.nl/retoor/gists/raw/branch/main/rgithook.py`
2. Navigate to a repository
`python3 [the path of your rgithook.py file]`
3. All done, never write a commit message again, it'll be always accurate."""
API_URL = "https://static.molodetz.nl/rp.cgi/api/v1/chat/completions" API_URL = "https://static.molodetz.nl/rp.cgi/api/v1/chat/completions"
MODEL = "retoor/fast" MODEL = "retoor/code"
TEMPERATURE = 0.1 TEMPERATURE = 0.1
MAX_TOKENS = None MAX_TOKENS = None
HOOK_PATH_PRECOMMIT = ".git/hooks/pre-commit" HOOK_PATH_PRECOMMIT = ".git/hooks/pre-commit"