This commit is contained in:
@@ -17,11 +17,33 @@ public class ModuleItem
|
||||
|
||||
public class SettingsViewModel : ViewModelBase
|
||||
{
|
||||
|
||||
public string OllamaBaseUrl
|
||||
{
|
||||
get => SettingsManager.Current.OllamaBaseUrl;
|
||||
set
|
||||
{
|
||||
SettingsManager.Current.OllamaBaseUrl = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public string OllamaModel
|
||||
{
|
||||
get => SettingsManager.Current.OllamaModel;
|
||||
set
|
||||
{
|
||||
SettingsManager.Current.OllamaModel = value;
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public IRelayCommand SaveCommand { get; }
|
||||
|
||||
public ObservableCollection<ModuleItem> Modules { get; } = new();
|
||||
|
||||
public SettingsViewModel()
|
||||
{
|
||||
SaveCommand = new RelayCommand(SettingsManager.Save);
|
||||
|
||||
foreach (var module in Core.ModuleList)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user