A custom LLM-based git merge driver.
Project description
llmmerge
A custom LLM-based Git merge driver.
Usage as a Git Merge Driver
After installing the package, run the script: tools/add_git_global_options.sh to add the custom git merge driver as the secondary option for unresolved conflicts to the current installation of git.
You will also need to acquire a chatGPT API-key, and create the following environment variable in the shell running the git-merge command:
export OPENAI_API_KEY="ChatGPT-API-KEY"
ToDo Features
-
For large input files, you can pre-process the input prompt so that the size of the prompt is lesser by using a language parser and sending only the required context -- using git diff line numbers to identify the context. You can then stitch together the merged function and the rest of the common file to get the merged file.
-
Make a series of merge drivers with a series of increasingly complex/resource-intensive LLMs. To be used when the previous LLM fails to resolve conflict, satisfactorily.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llmmerge-0.2.1.tar.gz.
File metadata
- Download URL: llmmerge-0.2.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68c975acf091641165769c8f6e18e1e09c94f449bc902914a9b83ffb5919d9ff
|
|
| MD5 |
7f79f901c3c504a1c8d4996496c8e30d
|
|
| BLAKE2b-256 |
9fb6d54194f2197a3dd9a064bc854df808dcf9ea52396521804527cf2e59becb
|
File details
Details for the file llmmerge-0.2.1-py3-none-any.whl.
File metadata
- Download URL: llmmerge-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a106edf45ed5a5b651acf8d70b7c38967401fbcfd2d15b4cda0ba33fdd54c96
|
|
| MD5 |
e4b793e3fabdc47abee02d69961591a3
|
|
| BLAKE2b-256 |
68e16d63aaa2d3b2094c817012f8f0d269f5deccca874e03e08b4a9d47dbe26e
|