Skip to content

Commit

Permalink
Add add setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Apr 27, 2024
1 parent 6563aea commit 9749857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agixt/db/Agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ def _update_provider_settings(self, agent_provider, new_config):
)
if not setting:
setting = ProviderSetting(provider_id=provider.id, name=setting_name)
self.session.add(setting)
self.session.flush()
try:
agent_provider_setting = (
self.session.query(AgentProviderSetting)
Expand Down

0 comments on commit 9749857

Please sign in to comment.