
Fix API 400 Unsupported Role Errors Without Breaking System Prompts
Start with the final outbound request. Use the instruction field and message positions supported by that exact endpoint, preserve tool-call pairs, and verify the full task after the role error clears.






















