Fix: move OpenAI client init inside handler to fix Railway build Module-level OpenAI instantiation fails during Next.js static analysis because OPENROUTER_API_KEY is not available at build time. Moving it inside the POST handler ensures it only runs on actual requests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>