Trimming Chat History to Fit the Context Window

Your AI step crashes once conversations get long. Keep the system prompt plus only the most recent messages.

All challenges