mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-29 20:20:42 +00:00
fix: OpenRouter header format, pipx install, code exec output truncation, and model config UI improvements
- Change X-OpenRouter-Categories from YAML list to comma-separated string - Add pipx to base Python installation - Truncate long lines in code execution output to 500 chars (250 from each end) before prompt detection - Reorder model config UI sections and simplify plugin config button handler - Remove border/padding from model summary grid and adjust mobile responsive styles
This commit is contained in:
parent
f6604e0cb1
commit
a7bfc7798b
4 changed files with 64 additions and 56 deletions
|
|
@ -265,8 +265,10 @@ class CodeExecution(Tool):
|
|||
)
|
||||
last_lines.reverse()
|
||||
for idx, line in enumerate(last_lines):
|
||||
line = line.strip()
|
||||
line = line if len(line) <= 500 else line[:250] + line[-250:]
|
||||
for pat in prompt_patterns:
|
||||
if pat.search(line.strip()):
|
||||
if pat.search(line):
|
||||
PrintStyle.info(
|
||||
"Detected shell prompt, returning output early."
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue