feat(utility): improve code structure and readability
This commit is contained in:
parent
b122696cab
commit
2acea5d639
@ -30,7 +30,9 @@ def get_git_diff(project_path, summary=True):
|
|||||||
def gen_commit(project_path):
|
def gen_commit(project_path):
|
||||||
"""Generate commit message using OpenInterpreter based on git diff output."""
|
"""Generate commit message using OpenInterpreter based on git diff output."""
|
||||||
agent = OpenInterpreter()
|
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.auto_run = True
|
||||||
agent.verbose = False
|
agent.verbose = False
|
||||||
agent.llm.temperature = 0.3
|
agent.llm.temperature = 0.3
|
||||||
|
Loading…
Reference in New Issue
Block a user