fix(providers): backfill empty assistant turns for custom OpenAI-compatible APIs (#40859)