Over the last week, I’m consistently this error from my Agent node attached to an OpenAI model.
Error in sub-node ‘OpenAI Chat Model1‘ column 9827483463398fbb7d6b96916fe451d8bdefa0e8.role does not exist
The only solution I’ve found is to delete the open ai component and add a new one, but that only seems to work temporarily. It will execute fine in the workflow building, but then bricks when I trigger the workflow normally. Only started noticing this after updating from the 4.1 to 5 models, but I’m not sure if that’s just a coincidence. The prompt hasn’t materially change on the user / system side.
Besides having separate user and system prompts, which I think covers off the system and user roles, is there anything else required for v5? I’m not familiar with passing the assistant role.
What I find strange is I swap out the OpenAI Chat Model node with a new one, test the workflow out, and experience no issues. But when the workflow runs independently, the error surfaces. What’s changed?