重写设置窗口

This commit is contained in:
yangwx
2025-03-13 01:06:32 +08:00
parent ca08aa615c
commit 296d450496
8 changed files with 160 additions and 95 deletions

View File

@@ -1,4 +1,5 @@
using System.Windows;
using YwxApp.AiChat.ViewModels;
namespace YwxApp.AiChat;
@@ -7,11 +8,15 @@ namespace YwxApp.AiChat;
/// </summary>
public partial class MainWindow : Window
{
MainViewModel viewModel;
public MainWindow()
{
InitializeComponent();
this.viewModel = this.DataContext as MainViewModel;
//OllamaService ollamaService = new();
//ollamaService.Configure("http://192.168.1.3:11434", "deepseek-r1:1.5b");
//this.DataContext = new ChatViewModel(new OllamaService());
}
}