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. |
Recommended Upgrade Steps¶
- Update dependencies
- Refresh CLI binaries
- Review new environment variables
- Add
NEUROLINK_EVALUATION_PROVIDER,NEUROLINK_EVALUATION_MODEL, andNEUROLINK_EVALUATION_THRESHOLDif you enable the auto-evaluation engine. - Ensure
AWS_REGION/GOOGLE_VERTEX_LOCATIONare set when targeting specific regions. -
Provide
REDIS_URLif you want loop sessions to auto-mount persistent memory. -
Adopt multimodal support
- CLI: use
--image(multiple allowed) withgenerateorstream. - SDK: pass
input.images(stringpath, HTTPS URL, orBuffer). -
Update downstream parsing to handle
result.toolCallson multimodal calls. -
Leverage auto evaluation (optional)
- CLI: add
--enableEvaluationto commands or set it once insideneurolink loop(set enableEvaluation true). - SDK: include
enableEvaluation: trueper request. -
Capture
result.evaluationin logs or dashboards. -
Introduce loop sessions to teams
- Document the new
loopworkflow, especially how toset provider,set model, and export transcripts. -
Configure Redis for persistent memory where collaboration spans multiple terminals.
-
Enable orchestration (server workloads)
- Instantiate
new NeuroLink({ enableOrchestration: true })for services that benefit from automatic provider routing. - Monitor debug logs (
NEUROLINK_DEBUG=true) in staging before enabling in production.
Behaviour Changes to Note¶
- Evaluation output –
GenerateResultnow includestoolCalls,toolResults, and richeranalytics. Update any custom serializers accordingly. - Loop session variables – The new session state respects
set/unsetcommands. Scripts that previously relied on global env variables should be adjusted to set session variables explicitly. - Redis auto-detect – Starting a loop with
--auto-redissetsSTORAGE_TYPE=redisautomatically. Ensure Redis credentials are valid; otherwise disable with--no-auto-redis. - Regional routing – Requests that include
regionnow forward directly to the provider. Validate quota and model availability per region to avoid 404s.
Testing Checklist¶
- Run
npx @juspay/neurolink status --verboseafter upgrading credentials. - Execute a multimodal CLI call (
generate --image) to confirm file uploads succeed. - Run a sample with
--enableEvaluation --format jsonand verify the evaluation block is emitted. - Stress-test loop mode with Redis by running
memory statsandmemory history. - If orchestration is enabled, tail logs for
Orchestration route determinedmessages and confirm provider availability.
Rollback Plan¶
- Keep the previous CLI binary (
npm install -g @juspay/neurolink@<old-version>) handy. - Maintain separate
.envfiles 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.