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

Fix #5637: Check for errors in IPython content instead of message #5895

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

enyst
Copy link
Collaborator

@enyst enyst commented Dec 29, 2024

This PR fixes #5637 with a simpler approach than PR #5644.

Instead of modifying the backend and adding extensive error detection, we simply check for errors in the content of the IPython output, which is where error messages appear.

The message property contains a static string, for an iPython obs; the content property should be filled with the actual content.

Changes:

  • Modified chat-slice.ts to check ipythonObs.content instead of ipythonObs.message for error detection

This is a minimal change that addresses the core issue while keeping the codebase simpler.

@enyst
Copy link
Collaborator Author

enyst commented Dec 29, 2024

@neubig I won't be able to actually see this locally for some half a day. I do think this tweak is enough to fix the issue.

@enyst enyst requested a review from neubig December 29, 2024 05:25
Copy link
Contributor

@neubig neubig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@neubig neubig merged commit e718089 into All-Hands-AI:main Dec 30, 2024
16 checks passed
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.

[Bug]: Incorrectly interpreting a Python error as a success message
3 participants