Skip to content

Commit

Permalink
standardize on LLM_MODEL (All-Hands-AI#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren committed Mar 27, 2024
1 parent d6c4ac8 commit 8972ba3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opendevin/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ websocat ws://127.0.0.1:3000/ws

```sh
OPENAI_API_KEY=sk-... # Your OpenAI API Key
MODEL_NAME=gpt-4-0125-preview # Default model for the agent to use
LLM_MODEL=gpt-4-0125-preview # Default model for the agent to use
WORKSPACE_DIR=/path/to/your/workspace # Default path to model's workspace
```
4 changes: 2 additions & 2 deletions opendevin/server/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@


DEFAULT_WORKSPACE_DIR = os.getenv("WORKSPACE_DIR", os.path.join(os.getcwd(), "workspace"))
MODEL_NAME = os.getenv("MODEL_NAME", "gpt-4-0125-preview")
LLM_MODEL = os.getenv("LLM_MODEL", "gpt-4-0125-preview")

def parse_event(data):
if "action" not in data:
Expand Down Expand Up @@ -120,7 +120,7 @@ async def create_controller(self, start_event=None):
agent_cls = "LangchainsAgent"
if start_event and "agent_cls" in start_event.args:
agent_cls = start_event.args["agent_cls"]
model = MODEL_NAME
model = LLM_MODEL
if start_event and "model" in start_event.args:
model = start_event.args["model"]
if not os.path.exists(directory):
Expand Down

0 comments on commit 8972ba3

Please sign in to comment.