Compare commits
2 Commits
a4cad80f16
...
e0fb68d659
| Author | SHA1 | Date | |
|---|---|---|---|
| e0fb68d659 | |||
| 6fc4ab020c |
@ -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
|
||||||
|
|
||||||
|
|||||||
11
rgithook.py
11
rgithook.py
@ -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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user