Skip to content

Commit 2b6938d

Browse files
committed
Fix test
1 parent d566842 commit 2b6938d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Responses/ResponsesTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ public async Task FileSearch()
115115
Assert.That(messageContentPart, Is.Not.Null);
116116
Assert.That(messageContentPart.Text, Does.Contain("pizza"));
117117
Assert.That(messageContentPart.OutputTextAnnotations, Is.Not.Null.And.Not.Empty);
118-
Assert.That(messageContentPart.OutputTextAnnotations[0].FileCitationFileId, Is.EqualTo(testFile.Id));
119-
Assert.That(messageContentPart.OutputTextAnnotations[0].FileCitationIndex, Is.GreaterThan(0));
120-
118+
FileCitationAnnotation annotation = messageContentPart.OutputTextAnnotations[0] as FileCitationAnnotation;
119+
Assert.That(annotation.FileId, Is.EqualTo(testFile.Id));
120+
Assert.That(annotation.Index, Is.GreaterThan(0));
121121

122122
await foreach (ResponseItem inputItem in client.GetResponseInputItemsAsync(response.Id))
123123
{

0 commit comments

Comments
 (0)