添加项目
This commit is contained in:
52
WPFUI.Test/ChatFunction/CustomChatWindow.xaml.cs
Normal file
52
WPFUI.Test/ChatFunction/CustomChatWindow.xaml.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user