Skip to main content

Git LLM Troubleshoot

PyPI version License: MIT Downloads LinkedIn

Git LLM Troubleshoot is a package designed to help users troubleshoot and resolve common Git mistakes. Users can describe their Git-related issues in plain text, and the package will use llmatch-messages to provide structured, step-by-step solutions. The system guides users through fixing errors, understanding Git commands, and recovering from accidental changes, ensuring they can confidently manage their version control workflows.

Features

  • Plain Text Input: Describe your Git-related issues in plain text.
  • Structured Solutions: Receive step-by-step solutions tailored to your specific problem.
  • Flexible LLM Integration: Use the default ChatLLM7 from langchain_llm7 or integrate with other LLMs like OpenAI, Anthropic, or Google.

Installation

You can install the package using pip:

pip install git_llm_troubleshoot

Usage

Here is an example of how to use the git_llm_troubleshoot function:

from git_llm_troubleshoot import git_llm_troubleshoot

# Example usage with default LLM
response = git_llm_troubleshoot(user_input="I accidentally deleted my branch.")
print(response)

Input Parameters

  • user_input (str): The user input text to process.
  • llm (Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default ChatLLM7 will be used.
  • api_key (Optional[str]): The API key for LLM7. If not provided, the LLM7_API_KEY environment variable will be used.

Custom LLM Integration

You can use other LLMs by passing your own LLM instance to the git_llm_troubleshoot function.

Using OpenAI

from langchain_openai import ChatOpenAI
from git_llm_troubleshoot import git_llm_troubleshoot

llm = ChatOpenAI()
response = git_llm_troubleshoot(user_input="I accidentally deleted my branch.", llm=llm)
print(response)

Using Anthropic

from langchain_anthropic import ChatAnthropic
from git_llm_troubleshoot import git_llm_troubleshoot

llm = ChatAnthropic()
response = git_llm_troubleshoot(user_input="I accidentally deleted my branch.", llm=llm)
print(response)

Using Google

from langchain_google_genai import ChatGoogleGenerativeAI
from git_llm_troubleshoot import git_llm_troubleshoot

llm = ChatGoogleGenerativeAI()
response = git_llm_troubleshoot(user_input="I accidentally deleted my branch.", llm=llm)
print(response)

LLM7 API Key and Rate Limits

By default, the package uses ChatLLM7 from langchain_llm7 with its default free tier rate limits, which are generally sufficient for most use cases. If you require higher rate limits for ChatLLM7, you can obtain a free API key by registering at https://token.llm7.io/. You can then provide this API key either by setting the LLM7_API_KEY environment variable or by passing it directly to the git_llm_troubleshoot function using the api_key parameter.

Contributing

Please report any issues or feature requests on the GitHub issues page: https://github.com/chigwell/git-llm-troubleshoot/issues.

Author

License

This project is licensed under the MIT License.

Metadata

Release files for git-llm-troubleshoot 2025.12.21171944

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-llm-troubleshoot 2025.12.21171944
File Size Uploaded
git_llm_troubleshoot-2025.12.21171944.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for git-llm-troubleshoot 2025.12.21171944
File Interpreter ABI Platform
git_llm_troubleshoot-2025.12.21171944-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / git_llm_troubleshoot-2025.12.21171944.tar.gz

Download URL git_llm_troubleshoot-2025.12.21171944.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8525654473033be6fad2a8ab4df7ac3a2942079f5a6c4fa71df35b759e705ccf
BLAKE2b-256 checksum
How to use checksums
7b4f39b740f138f351ba8beffcc230fc522c018fe4a0609ba58501c126064104
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / git_llm_troubleshoot-2025.12.21171944-py3-none-any.whl

Download URL git_llm_troubleshoot-2025.12.21171944-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
effeb0ef5cd7caa5d0f8615b346c3feebe1aca9897647100663264474531dcb0
BLAKE2b-256 checksum
How to use checksums
0622672e0462646c29121d41823bdfb15ed7f9d58b40d148b384728e5b3f5125
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21171944 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page