Skip to content

fix: tools/execute_js_code.js try/catch added to handle errors in exe…#224

Open
mykola-shevchenko-dev wants to merge 1 commit into
sigoden:mainfrom
mykola-shevchenko-dev:main
Open

fix: tools/execute_js_code.js try/catch added to handle errors in exe…#224
mykola-shevchenko-dev wants to merge 1 commit into
sigoden:mainfrom
mykola-shevchenko-dev:main

Conversation

@mykola-shevchenko-dev
Copy link
Copy Markdown

This changes fixe the situation when LLM launches not valid JS code and just stops with error.

try/catch is added around eval to handle such errors. So now LLM will receive an error and can fix the code and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant