From 081c8de44d69a632798cc5c8030eb40db49550bd Mon Sep 17 00:00:00 2001 From: zhaopengwang <563681252@qq.com> Date: Tue, 28 Oct 2025 19:30:03 +0800 Subject: [PATCH 1/3] change default choose to fix bug --- AIDevGallery/Utils/AppData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AIDevGallery/Utils/AppData.cs b/AIDevGallery/Utils/AppData.cs index 78692a50..fca5dd48 100644 --- a/AIDevGallery/Utils/AppData.cs +++ b/AIDevGallery/Utils/AppData.cs @@ -48,7 +48,7 @@ public AppData() IsDiagnosticsMessageDismissed = false; LastAdapterPath = string.Empty; LastSystemPrompt = string.Empty; - WinMLSampleOptions = new WinMlSampleOptions(ExecutionProviderDevicePolicy.DEFAULT, null, false, null); + WinMLSampleOptions = new WinMlSampleOptions(null, "CPU", false, null); } private static string GetConfigFilePath() From a6e5dc812041f551a2fb3a21c6744c040a95dc47 Mon Sep 17 00:00:00 2001 From: zhaopeng wang <563681252@qq.com> Date: Tue, 9 Dec 2025 15:52:02 +0800 Subject: [PATCH 2/3] test --- AIDevGallery/MainWindow.xaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AIDevGallery/MainWindow.xaml.cs b/AIDevGallery/MainWindow.xaml.cs index 3d1d4f29..03283312 100644 --- a/AIDevGallery/MainWindow.xaml.cs +++ b/AIDevGallery/MainWindow.xaml.cs @@ -24,6 +24,8 @@ internal sealed partial class MainWindow : WindowEx public MainWindow(object? obj = null) { + var test = 1; + test++; this.InitializeComponent(); SetTitleBar(); App.ModelDownloadQueue.ModelsChanged += DownloadQueue_ModelsChanged; From 39a0e7e6d01ad2730b5804e10310e40cb303fe2b Mon Sep 17 00:00:00 2001 From: zhaopeng wang <563681252@qq.com> Date: Tue, 9 Dec 2025 15:54:53 +0800 Subject: [PATCH 3/3] delete test code --- AIDevGallery/MainWindow.xaml.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/AIDevGallery/MainWindow.xaml.cs b/AIDevGallery/MainWindow.xaml.cs index 03283312..3d1d4f29 100644 --- a/AIDevGallery/MainWindow.xaml.cs +++ b/AIDevGallery/MainWindow.xaml.cs @@ -24,8 +24,6 @@ internal sealed partial class MainWindow : WindowEx public MainWindow(object? obj = null) { - var test = 1; - test++; this.InitializeComponent(); SetTitleBar(); App.ModelDownloadQueue.ModelsChanged += DownloadQueue_ModelsChanged;