Skip to content

Commit

Permalink
check if request agent type is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Lin authored and Kevin Lin committed Oct 10, 2024
1 parent f76a149 commit 8c900b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions letta/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ def create_agent(
if request.name is None:
request.name = create_random_username()

if request.agent_type is None:
request.agent_type = AgentType.memgpt_agent

# system debug
if request.system is None:
# TODO: don't hardcode
Expand Down

0 comments on commit 8c900b7

Please sign in to comment.