Skip to content

Commit

Permalink
add commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jun 29, 2024
1 parent 675d0af commit e27f249
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agixt/Agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def update_agent_config(self, new_config, config_key):
provider_id=global_agent.provider_id,
)
session.add(agent)
session.commit()
agent_settings = (
session.query(AgentSettingModel)
.filter_by(agent_id=global_agent.id)
Expand All @@ -436,6 +437,7 @@ def update_agent_config(self, new_config, config_key):
value=setting.value,
)
session.add(agent_setting)
session.commit()
agent_commands = (
session.query(AgentCommand)
.filter_by(agent_id=global_agent.id)
Expand Down

0 comments on commit e27f249

Please sign in to comment.