File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments