Skip to content

Commit

Permalink
refactoring: Memory class was fixed for future updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninoLorenzo committed Jan 26, 2025
1 parent d5af99a commit 33750f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routers/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ async def new_session(name: str, agent: Agent = Depends(get_agent)):
new_id = 1
else:
new_id = max(sorted(sessions.keys())) + 1
agent.new_session(new_id)
agent.get_session(new_id).name = name
agent.new_session(new_id, name)
# agent.get_session(new_id).name = name

return {'sid': new_id}

Expand Down

0 comments on commit 33750f7

Please sign in to comment.