refactor: update LLM model configuration in gen_commit.py

This commit is contained in:
KaySar12 2025-05-23 17:00:31 +07:00
parent 2acea5d639
commit a95ca2b221

View File

@ -29,10 +29,11 @@ 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.offline = True
agent.llm.model = "ollama/codestral"
agent.llm.api_base = "http://10.0.0.183:9090"
agent = OpenInterpreter()
# agent.offline = True
# agent.llm.model = "ollama/codestral"
# agent.llm.api_base = "http://10.0.0.183:9090"
agent.llm.model = "gpt-4o"
agent.auto_run = True
agent.verbose = False
agent.llm.temperature = 0.3