mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +00:00
Update default agent settings
This commit is contained in:
@@ -641,6 +641,10 @@ class AgentAdapters:
|
|||||||
agent.chat_model = default_conversation_config
|
agent.chat_model = default_conversation_config
|
||||||
agent.slug = AgentAdapters.DEFAULT_AGENT_SLUG
|
agent.slug = AgentAdapters.DEFAULT_AGENT_SLUG
|
||||||
agent.name = AgentAdapters.DEFAULT_AGENT_NAME
|
agent.name = AgentAdapters.DEFAULT_AGENT_NAME
|
||||||
|
agent.privacy_level = Agent.PrivacyLevel.PUBLIC
|
||||||
|
agent.managed_by_admin = True
|
||||||
|
agent.input_tools = []
|
||||||
|
agent.output_modes = []
|
||||||
agent.save()
|
agent.save()
|
||||||
else:
|
else:
|
||||||
# The default agent is public and managed by the admin. It's handled a little differently than other agents.
|
# The default agent is public and managed by the admin. It's handled a little differently than other agents.
|
||||||
@@ -650,7 +654,6 @@ class AgentAdapters:
|
|||||||
managed_by_admin=True,
|
managed_by_admin=True,
|
||||||
chat_model=default_conversation_config,
|
chat_model=default_conversation_config,
|
||||||
personality=default_personality,
|
personality=default_personality,
|
||||||
tools=["*"],
|
|
||||||
slug=AgentAdapters.DEFAULT_AGENT_SLUG,
|
slug=AgentAdapters.DEFAULT_AGENT_SLUG,
|
||||||
)
|
)
|
||||||
Conversation.objects.filter(agent=None).update(agent=agent)
|
Conversation.objects.filter(agent=None).update(agent=agent)
|
||||||
|
|||||||
Reference in New Issue
Block a user