mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-01 21:20:33 +00:00
refactor: remove browser model, use chat model for browser; update extension references
This commit is contained in:
parent
d570c629c2
commit
8d33cae0e1
5 changed files with 37 additions and 32 deletions
|
|
@ -42,8 +42,10 @@ def get_main_prompt(agent: Agent):
|
|||
|
||||
|
||||
def get_tools_prompt(agent: Agent):
|
||||
from plugins._model_config.helpers.model_config import get_chat_model_config
|
||||
prompt = agent.read_prompt("agent.system.tools.md")
|
||||
if agent.config.chat_model.vision:
|
||||
chat_cfg = get_chat_model_config(agent)
|
||||
if chat_cfg.get("vision", False):
|
||||
prompt += "\n\n" + agent.read_prompt("agent.system.tools_vision.md")
|
||||
return prompt
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue