feat(utility): improve code structure and readability

This commit is contained in:
KaySar12 2025-05-23 16:41:44 +07:00
parent b122696cab
commit 2acea5d639

View File

@ -30,7 +30,9 @@ def get_git_diff(project_path, summary=True):
def gen_commit(project_path):
"""Generate commit message using OpenInterpreter based on git diff output."""
agent = OpenInterpreter()
agent.llm.model = "gpt-4o"
agent.offline = True
agent.llm.model = "ollama/codestral"
agent.llm.api_base = "http://10.0.0.183:9090"
agent.auto_run = True
agent.verbose = False
agent.llm.temperature = 0.3