Skip to content

Migration Guide (v7.40 → v7.47)

Use this guide when upgrading existing NeuroLink deployments to the 7.47 release train. The focus is on new capabilities (multimodal chat, auto evaluation, loop mode, orchestration) and the configuration changes required to adopt them safely.

Compatibility Summary

Area Status
Core SDK APIs ✅ Backward compatible. generate() and stream() signatures are unchanged.
CLI commands ✅ Existing scripts continue to work. New options are opt-in.
Configuration ⚠️ New environment variables for evaluation and regional routing. Review .env files.
Tooling ✅ MCP, analytics, and telemetry remain compatible.
  1. Update dependencies
npm install @juspay/neurolink@^7.47.0
# or
pnpm add @juspay/neurolink@^7.47.0
  1. Refresh CLI binaries
npm install -g @juspay/neurolink@^7.47.0
neurolink --version
  1. Review new environment variables
  2. Add NEUROLINK_EVALUATION_PROVIDER, NEUROLINK_EVALUATION_MODEL, and NEUROLINK_EVALUATION_THRESHOLD if you enable the auto-evaluation engine.
  3. Ensure AWS_REGION / GOOGLE_VERTEX_LOCATION are set when targeting specific regions.
  4. Provide REDIS_URL if you want loop sessions to auto-mount persistent memory.

  5. Adopt multimodal support

  6. CLI: use --image (multiple allowed) with generate or stream.
  7. SDK: pass input.images (string path, HTTPS URL, or Buffer).
  8. Update downstream parsing to handle result.toolCalls on multimodal calls.

  9. Leverage auto evaluation (optional)

  10. CLI: add --enableEvaluation to commands or set it once inside neurolink loop (set enableEvaluation true).
  11. SDK: include enableEvaluation: true per request.
  12. Capture result.evaluation in logs or dashboards.

  13. Introduce loop sessions to teams

  14. Document the new loop workflow, especially how to set provider, set model, and export transcripts.
  15. Configure Redis for persistent memory where collaboration spans multiple terminals.

  16. Enable orchestration (server workloads)

  17. Instantiate new NeuroLink({ enableOrchestration: true }) for services that benefit from automatic provider routing.
  18. Monitor debug logs (NEUROLINK_DEBUG=true) in staging before enabling in production.

Behaviour Changes to Note

  • Evaluation outputGenerateResult now includes toolCalls, toolResults, and richer analytics. Update any custom serializers accordingly.
  • Loop session variables – The new session state respects set/unset commands. Scripts that previously relied on global env variables should be adjusted to set session variables explicitly.
  • Redis auto-detect – Starting a loop with --auto-redis sets STORAGE_TYPE=redis automatically. Ensure Redis credentials are valid; otherwise disable with --no-auto-redis.
  • Regional routing – Requests that include region now forward directly to the provider. Validate quota and model availability per region to avoid 404s.

Testing Checklist

  • Run npx @juspay/neurolink status --verbose after upgrading credentials.
  • Execute a multimodal CLI call (generate --image) to confirm file uploads succeed.
  • Run a sample with --enableEvaluation --format json and verify the evaluation block is emitted.
  • Stress-test loop mode with Redis by running memory stats and memory history.
  • If orchestration is enabled, tail logs for Orchestration route determined messages and confirm provider availability.

Rollback Plan

  • Keep the previous CLI binary (npm install -g @juspay/neurolink@<old-version>) handy.
  • Maintain separate .env files for pre- and post-upgrade configurations.
  • Disable orchestration and evaluation env vars if you encounter regressions; core generation continues to work without them.

For additional support open an issue on GitHub or reach out via the Juspay developer channels.