Debug the AI API route before you switch models

· Dev.to