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