Files
blog/content/posts/commits/2026-08-14-commit-a1f1eeb.md
Betty 6550706ce3
All checks were successful
Hugo Build & Deploy / build-deploy (push) Successful in 4m20s
post: commit a1f1eeb in myai-orchestrator
2026-08-14 18:38:44 +02:00

1.1 KiB

title, date, draft, tags, categories, summary, author
title date draft tags categories summary author
[myai-orchestrator] fix(orchestrator): simplify clean_code() and increase MAX_NEW_TOKENS to 256 2026-08-14T18:38:41+02:00 false
commit
myai-orchestrator
main
Git Activity
Commit a1f1eeb par Betty dans myai-orchestrator Betty

Commit a1f1eeb

Repository myai-orchestrator
Branch main
Author Betty
Hash a1f1eeb136017425bcbd9cf0fb8b00feea4a5aff

Description

clean_code() was too aggressive, stripping valid Python code by tracking an in_code flag that could fail to trigger. New logic: extract from markdown fences (regex), then find first import/from line and take everything from there. Much simpler and more reliable.

MAX_NEW_TOKENS 128→256 to reduce truncation-induced SyntaxErrors.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Files Changed

M	myai_orchestrator
M	stack/myai-orchestrator.yml

Diff Summary

 myai_orchestrator           | 39 +++++++++++++++------------------------
 stack/myai-orchestrator.yml |  2 +-
 2 files changed, 16 insertions(+), 25 deletions(-)