feat(MM):model settings export import#8872
Open
Pfannkuchensack wants to merge 2 commits intoinvoke-ai:mainfrom
Open
feat(MM):model settings export import#8872Pfannkuchensack wants to merge 2 commits intoinvoke-ai:mainfrom
Pfannkuchensack wants to merge 2 commits intoinvoke-ai:mainfrom
Conversation
Add the ability to export model settings (default_settings, trigger_phrases, cpu_only) as JSON and import them back. The model name is used as the filename for exports. https://claude.ai/code/session_01LXKjbRjfzcG3d3vzk3xRCh
…immediately The useForm defaultValues only apply on mount, so importing model settings updated the backend but the forms kept showing stale values. Added useEffect to reset forms when the underlying model config changes. Also fixed lint errors (strict equality, missing React import).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add export/import functionality for model settings (default settings, trigger phrases, cpu_only). This allows users to save a model's configuration to a JSON file and re-apply it later or to another model of the same type.
Export saves the current model's
default_settings,trigger_phrases, andcpu_onlyfields to a downloadable.jsonfile.Import reads a
.jsonfile and applies the settings via the existingupdateModelAPI mutation.Related Issues / Discussions
QA Instructions
.jsonfile should download.jsonfileMerge Plan
No special merge considerations. Standard merge to main.
Checklist
What's Newcopy (if doing a release after this PR)