refactor: update LLM model configuration in gen_commit.py
This commit is contained in:
parent
2acea5d639
commit
a95ca2b221
@ -29,10 +29,11 @@ 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.offline = True
|
# agent.offline = True
|
||||||
agent.llm.model = "ollama/codestral"
|
# agent.llm.model = "ollama/codestral"
|
||||||
agent.llm.api_base = "http://10.0.0.183:9090"
|
# agent.llm.api_base = "http://10.0.0.183:9090"
|
||||||
|
agent.llm.model = "gpt-4o"
|
||||||
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