Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion bulba.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -952,9 +952,14 @@ Be specific, cite mechanisms, no vibes.`,
} catch {}
},
// Memory/goal/rules injected every turn.
// Одно system-сообщение: прокси вроде litellm/vLLM отвергают несколько
// system-сообщений ("System message must be at the beginning") - дописываем
// блок к существующему system, а не пушим отдельным сообщением.
"experimental.chat.system.transform": async (_input, output) => {
const block = systemBlock()
if (block) output.system.push(block)
if (!block) return
if (output.system.length > 0) output.system[0] += `\n\n${block}`
else output.system.push(block)
},
// AGENTS.md-правила + активная работа: прямо в результаты тулов (как omo, без roundtrip).
"tool.execute.after": async (input, output) => {
Expand Down
Loading