You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several refactors and behavior fixes across the app:
- NavBar: call SettingsState.RequestSettings directly from the settings button, simplify theme toggle and reload helpers, remove unused flag/methods.
- Home: prevent adding image inputs when the selected model doesn't support vision and display an error.
- Settings page: build backend options with Prepend for simpler ordering.
- Program.cs: validate Self backend model at startup and exit if unsupported; adjust AddMaIN registration flow based on NeedsConfiguration and BackendType.
- SettingsService: convert to constructor-injected style, consolidate load/save into generic dict helpers, and add typed methods for saving/getting API keys and model history.
- SettingsStateService: shorten comment describing the event bus.
- Utils: unify capability checks with a generic GetCapability<T>, make Reason mutually exclusive with ImageGen, and streamline environment variable handling when setting backend API keys.
These changes simplify codepaths, centralize settings persistence logic, and enforce model capability checks earlier and at the UI level.
0 commit comments