Closed tobitege closed 11 hours ago
Definitely o1-preview as well, had it happen.
I'm not sure this is exactly a bug, more like our continuous adaptation to LLM quirks 😅, but we will have to support it.
Well, if it walks like a bug, quacks like a bug... 🤣
I think it is probably due to o1 doesn't support stop words?
Yeh, those get kicked out now by default. I just tell the LLM to not send <finish>
ever with code 😬
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for over 30 days with no activity.
Is there an existing issue for the same bug?
Describe the bug
Due to how o1-mini works, and probably o1-preview as well, it may return an
AgentFinishAction
with embedded code. Apparently this is currently not supported in the agent as there is noCodeActActionParserIPythonRunCell
triggered.Example with content manually shortened and line breaks added for readability:
In that step's LLM response log we can see at the bottom:
In the main logfile we see the
AgentFinishAction
(I manually added line breaks here for readability):Current OpenHands version
Installation and Configuration
Model and Agent
Operating System
WSL
Reproduction Steps
See trajectory: https://www.all-hands.dev/share?share_id=58c3e506b401943c64cc9a2091c7173fe7500c176639ac3fbbdd6659becd1d64
Logs, Errors, Screenshots, and Additional Context
No response