Skip to content

Refactor the modelLoader and fix a small bug#4838

Merged
HenryHengZJ merged 1 commit into
FlowiseAI:mainfrom
autotraderuk:fix-model-loader
Jul 18, 2025
Merged

Refactor the modelLoader and fix a small bug#4838
HenryHengZJ merged 1 commit into
FlowiseAI:mainfrom
autotraderuk:fix-model-loader

Conversation

@Stono

@Stono Stono commented Jul 10, 2025

Copy link
Copy Markdown
Contributor

Hi,
This PR refactors the modelLoader.ts to remove a bunch of duplicated code. It now has one function for fetching the model from url or disk and the other functions just make use of that.

I also fixed a bug where if MODEL_LIST_CONFIG_JSON was set but didn't exist, it'd silently load no models. It feels like this should fall back to the default models in the same way that the URL fetch failure does.

Also fix an issue where if MODEL_LIST_CONFIG_JSON is set, but does not exist, fallback did not work

@HenryHengZJ HenryHengZJ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks!

@HenryHengZJ HenryHengZJ merged commit cf965f3 into FlowiseAI:main Jul 18, 2025
2 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.

2 participants