Skip to content

Conversation

@deep1401
Copy link
Member

@deep1401 deep1401 commented Jan 2, 2026

Fixes #1020

image

@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2026

Codecov Report

❌ Patch coverage is 6.06061% with 31 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
api/transformerlab/routers/plugins.py 6.06% 31 Missing ⚠️

📢 Thoughts on this report? Let us know!

}, [data, supportedEngines]);

// Use the suggested loader plugin from API (platform-aware)
const compatibleLoaderPlugins = suggestedLoaderPlugin
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: Probably don't need to create and convert this to an array just to call [0] on it later?

Copy link
Member Author

Choose a reason for hiding this comment

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

I kept it as an array so we can show more of them later on if we wanted and change the messaging. And it also helped with the length condition. Should I not do that and just return the first one and check for a blank string then?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I htink with the change to just get a single suggestion from the backend it makes more sense to get rid of the array for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@deep1401 deep1401 requested a review from dadmobile January 6, 2026 14:47
@deep1401 deep1401 merged commit 260df17 into main Jan 9, 2026
7 checks passed
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.

Issue: Inadequate messaging around plugin support for running a model

4 participants