Skip to content

Commit 3832a27

Browse files
Work around llama3.1 unreliability with structured output
1 parent fb7a149 commit 3832a27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Libraries/Microsoft.Extensions.AI.Integration.Tests/ChatClientIntegrationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ public virtual async Task GetResponseAsync_StructuredOutputBool_False()
731731

732732
var response = await _chatClient.GetResponseAsync<bool>("""
733733
Jimbo Smith is a 35-year-old software developer from Cardiff, Wales.
734-
Can we be sure that he is a medical doctor?
734+
Reply true if the previous statement indicates that he is a medical doctor, otherwise false.
735735
""");
736736

737737
Assert.False(response.Result);
@@ -820,7 +820,7 @@ private class Person
820820

821821
private enum JobType
822822
{
823-
Surgeon,
823+
Wombat,
824824
PopStar,
825825
Programmer,
826826
Unknown,

0 commit comments

Comments
 (0)