重写设置窗口
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user