Compare commits

..

No commits in common. "e0fb68d6597c80edb75d5c0b3adb2c558227f4dd" and "a4cad80f1686b6d5b5109358c6c2a15f9e6c3a1f" have entirely different histories.

2 changed files with 4 additions and 13 deletions

View File

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

View File

@ -1,16 +1,7 @@
#!/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"
MODEL = "retoor/code"
MODEL = "retoor/fast"
TEMPERATURE = 0.1
MAX_TOKENS = None
HOOK_PATH_PRECOMMIT = ".git/hooks/pre-commit"