Skip to content

Commit

Permalink
set default model to gpt-4-0125-preview for langchains agent to work;
Browse files Browse the repository at this point in the history
print model, dir, and task when started
  • Loading branch information
xingyaoww committed Mar 22, 2024
1 parent d042940 commit 22e6171
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opendevin/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import argparse

import agenthub # for the agent registry
Expand All @@ -10,9 +9,11 @@
parser.add_argument("-d", "--directory", required=True, type=str, help="The working directory for the agent")
parser.add_argument("-t", "--task", required=True, type=str, help="The task for the agent to perform")
parser.add_argument("-c", "--agent-cls", default="LangchainsAgent", type=str, help="The agent class to use")
parser.add_argument("-m", "--model-name", default="gpt-3.5-turbo-0125", type=str, help="The (litellm) model name to use")
parser.add_argument("-m", "--model-name", default="gpt-4-0125-preview", type=str, help="The (litellm) model name to use")
args = parser.parse_args()

print(f"Running agent {args.agent_cls} (model: {args.model_name}, directory: {args.directory}) with task: \"{args.task}\"")

AgentCls: Agent = Agent.get_cls(args.agent_cls)
agent = AgentCls(
instruction=args.task,
Expand Down

0 comments on commit 22e6171

Please sign in to comment.