Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The LLM did not conform to the edit format. #154

Open
NAMEKDSUN opened this issue Nov 22, 2024 · 0 comments
Open

The LLM did not conform to the edit format. #154

NAMEKDSUN opened this issue Nov 22, 2024 · 0 comments

Comments

@NAMEKDSUN
Copy link

Once this issue arises, the program will enter a loop:

The LLM did not conform to the edit format.

erkinalp added a commit to erkinalp/AI-Scientist that referenced this issue Dec 18, 2024
- Add retry limit and better error handling in extract_json_between_markers
- Replace assert statements with try-catch blocks across all files
- Add proper error messages and recovery mechanisms
- Prevent infinite loops when JSON extraction fails

Fixes SakanaAI#154

Co-Authored-By: Erkin Alp Güney <[email protected]>
erkinalp added a commit to erkinalp/AI-Scientist that referenced this issue Dec 18, 2024
- Add retry limit and better error handling in extract_json_between_markers
- Replace assert statements with try-catch blocks across all files
- Add proper error messages and recovery mechanisms
- Prevent infinite loops when JSON extraction fails

Fixes SakanaAI#154

Co-Authored-By: Erkin Alp Güney <[email protected]>
erkinalp added a commit to erkinalp/AI-Scientist that referenced this issue Dec 18, 2024
- Add MAX_JSON_RETRIES constant to limit retries
- Enhance error messages in extract_json_between_markers
- Implement retry limits in generate_ideas.py and perform_writeup.py
- Prevent infinite loops when JSON extraction fails

Fixes SakanaAI#154

Co-Authored-By: Erkin Alp Güney <[email protected]>
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 a pull request may close this issue.

1 participant