forked from adner/CopilotStudioWithFoundryLocal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalClientTests.cs
More file actions
58 lines (46 loc) · 1.28 KB
/
Copy pathLocalClientTests.cs
File metadata and controls
58 lines (46 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
namespace CopilotStudioWithFoundryLocal.Tests;
using Xunit;
using LocalClients;
using System.Text;
public class MLStudioClient_Tests
{
private readonly LMStudioClient client;
private readonly string modelId = "unsloth/qwen3-30b-a3b-instruct-2507";
public MLStudioClient_Tests()
{
client = new LMStudioClient(modelId);
}
[Fact]
public void Simple_Message()
{
var response = client.GetResponse("What is the capital of France?");
Assert.NotEmpty(response);
Assert.Contains("Paris", response);
}
[Fact]
public void Tool_Call_OpenTaskMgr()
{
var response = client.GetResponse("Please open the Windows task manager?");
}
}
public class FoundryLocal_Tests
{
private readonly FoundryLocalClient client;
private readonly string modelId = "qwen2.5-14b";
public FoundryLocal_Tests()
{
client = new FoundryLocalClient(modelId);
}
[Fact]
public void Simple_Message()
{
var response = client.GetResponse("What is the capital of France?");
Assert.NotEmpty(response);
Assert.Contains("Paris", response);
}
[Fact]
public void Tool_Call_OpenTaskMgr()
{
var response = client.GetResponse("Please open the Windows task manager?");
}
}