Skip to content

feat: sync Node.js SDK with Python SDK - #136

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1778896964-sync-with-python-sdk
Open

feat: sync Node.js SDK with Python SDK#136
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1778896964-sync-with-python-sdk

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented May 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Syncs the Node.js SDK with the Python SDK to close feature and behavior gaps identified during a cross-SDK review.

Changes:

  1. Finetuning.listModels() — New method mirroring Python SDK's list_models(). Calls GET /fine_tuning/models with pagination params.
  2. batchSize default → "auto" — The Finetuning.create() default for batchSize was 1; Python SDK uses "auto". Updated to match.
  3. client.datasets alias — Python SDK exposes client.datasets (plural). Node.js only had client.dataset. Added datasets as an alias pointing to the same Datasets instance (backward compatible).
  4. PredictionResponse.domain — Added optional domain field to match the Python SDK's PredictionResponse type.

Review & Testing Checklist for Human

  • batchSize default change is intentional and acceptable: changing from 1 to "auto" is a behavioral change for any caller relying on the default. Confirm this won't break downstream consumers before merging.
  • listModels() has no unit test: verify the method signature and endpoint path (GET /fine_tuning/models) are correct against the backend API spec. Consider adding test coverage.
  • Run npm run test:integration against a live environment to verify listModels() and the batchSize: "auto" default work end-to-end.

Notes

  • client.dataset (singular) is preserved for backward compatibility; client.datasets is an alias to the same instance.
  • The PredictionResponse.domain field is optional so it is purely additive and non-breaking.

Link to Devin session: https://app.devin.ai/sessions/fac4bac963184905b3ca00caeadea6d4


Open in Devin Review

- Add Finetuning.listModels() method (mirrors Python SDK's list_models())
- Fix FinetuningCreateParams.batchSize default from 1 to 'auto' (matches Python SDK)
- Add 'datasets' alias on VlmRun client for parity with Python SDK's plural naming
- Add 'domain' field to PredictionResponse type (present in Python SDK)
- Update test expectations for new batchSize default

Co-Authored-By: unknown <>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants