53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Shapes;
|
|
|
|
//using LangChain.Chains.LLM;
|
|
//using LangChain.DocumentLoaders;
|
|
//using LangChain.Prompts;
|
|
using LangChain.Providers;
|
|
using LangChain.Providers.DeepSeek;
|
|
using LangChain.Providers.DeepSeek.Predefined;
|
|
using LangChain.Providers.OpenAI;
|
|
using LangChain.Providers.OpenAI.Predefined;
|
|
//using LangChain.Schema;
|
|
|
|
namespace WPFUI.Test
|
|
{
|
|
/// <summary>
|
|
/// CustomChatWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class CustomChatWindow : Window
|
|
{
|
|
public CustomChatWindow()
|
|
{
|
|
InitializeComponent();
|
|
//ChatWithAI();
|
|
//ChatWithDeepSeek();
|
|
}
|
|
private async void ChatWithDeepSeek()
|
|
{
|
|
try
|
|
{
|
|
var Response = await DeepSeekHttpClient.Run();
|
|
}
|
|
catch (Exception)
|
|
{
|
|
throw;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|