Skip to content

nifti data

Latest

Choose a tag to compare

@lHyperionl lHyperionl released this 08 Jun 01:00
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>