Use getChatProvider() + provider.getModel() instead of resolveAiRouteWithTiming which doesn't return a provider function. Follow the pattern used in chat/insights/route.ts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>