Skip to content

Commit

Permalink
Improve reliability of CompleteAsync_StructuredOutputEnum test. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS authored Dec 10, 2024
1 parent 40fa575 commit d5fca58
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
Expand Down Expand Up @@ -720,11 +719,11 @@ public virtual async Task CompleteAsync_StructuredOutputEnum()
{
SkipIfNotEnabled();

var response = await _chatClient.CompleteAsync<Architecture>("""
I'm using a Macbook Pro with an M2 chip. What architecture am I using?
var response = await _chatClient.CompleteAsync<JobType>("""
Taylor Swift is a famous singer and songwriter. What is her job?
""");

Assert.Equal(Architecture.Arm64, response.Result);
Assert.Equal(JobType.PopStar, response.Result);
}

[ConditionalFact]
Expand Down

0 comments on commit d5fca58

Please # to comment.