hi @Yuxin_Xu
sorry you are hitting this error code it is actually a known issue with how the model api expects the message sequence specifically when a tool is used but the result does not follow correctly in the message history
this is usually a temporary platform sync error and not a mistake in your logic
please try these steps to fix it
1 save your work then close the lab tab completely
2 relaunch the lab from the course page to start a fresh session
3 avoid using run all and instead run the cells slowly one by one to give the api time to process the tool calls
if this still happens after a restart let us know so we can flag it
This issue still persists. This time I ran everything one by one, and made sure the previous one is fully run before I run the next one.
hi @Yuxin_Xu
thank you for the update and for trying, unfortunately it seems like a deeper synchronization issue between the lab environment and the model api as the screenshot shows the model is losing the conversation history between cells
since the standard restart did not work i will mention to the team to see this and provide you with benefits solutions so they can look into the backend logs for this specific lab session
@Community-Team
in the meantime please try to clear your browser cache or try a different browser like chrome incognito as this sometimes helps with persistent session errors
i wish it solved ,
best regards omar
Thank you for reporting! Let me share it with the team!

