Skip to content

Commit 0af181b

Browse files
committed
Add missed recordings
1 parent e992611 commit 0af181b

9 files changed

+1358
-2
lines changed

tests/Responses/ResponsesTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,17 +416,21 @@ public async Task ImageGenToolInputMaskWithFileId()
416416
{
417417
OpenAIResponseClient client = GetTestClient();
418418

419-
OpenAIFileClient fileClient = GetTestClient<OpenAIFileClient>(TestScenario.Files);
419+
OpenAIFileClient fileClient = GetProxiedOpenAIClient<OpenAIFileClient>(TestScenario.Files);
420420

421421
string imageFilename = "images_dog_and_cat.png";
422422
string imagePath = Path.Combine("Assets", imageFilename);
423423
using Stream image = File.OpenRead(imagePath);
424424
BinaryData imageData = BinaryData.FromStream(image);
425425

426-
OpenAIFile file = await fileClient.UploadFileAsync(
426+
OpenAIFile file;
427+
using (Recording.DisableRequestBodyRecording()) // Temp pending https://github.com/Azure/azure-sdk-tools/issues/11901
428+
{
429+
file = await fileClient.UploadFileAsync(
427430
imageData,
428431
imageFilename,
429432
FileUploadPurpose.UserData);
433+
}
430434
Validate(file);
431435

432436
ResponseCreationOptions options = new()

tests/SessionRecords/ResponsesTests/ImageGenToolInputMaskWithFileId.json

Lines changed: 205 additions & 0 deletions
Large diffs are not rendered by default.

tests/SessionRecords/ResponsesTests/ImageGenToolInputMaskWithFileIdAsync.json

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

tests/SessionRecords/ResponsesTests/ImageGenToolInputMaskWithImageBytes.json

Lines changed: 157 additions & 0 deletions
Large diffs are not rendered by default.

tests/SessionRecords/ResponsesTests/ImageGenToolInputMaskWithImageBytesAsync.json

Lines changed: 157 additions & 0 deletions
Large diffs are not rendered by default.

tests/SessionRecords/ResponsesTests/ImageGenToolInputMaskWithImageUri.json

Lines changed: 157 additions & 0 deletions
Large diffs are not rendered by default.

tests/SessionRecords/ResponsesTests/ImageGenToolInputMaskWithImageUriAsync.json

Lines changed: 157 additions & 0 deletions
Large diffs are not rendered by default.

tests/SessionRecords/ResponsesTests/ResponseWithImageGenTool.json

Lines changed: 159 additions & 0 deletions
Large diffs are not rendered by default.

tests/SessionRecords/ResponsesTests/ResponseWithImageGenToolAsync.json

Lines changed: 159 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)