diff --git a/.dotnet.azure/sdk/openai/Azure.AI.OpenAI/tests/VectorStoreTests.cs b/.dotnet.azure/sdk/openai/Azure.AI.OpenAI/tests/VectorStoreTests.cs index 95a9d55f1..f726d2710 100644 --- a/.dotnet.azure/sdk/openai/Azure.AI.OpenAI/tests/VectorStoreTests.cs +++ b/.dotnet.azure/sdk/openai/Azure.AI.OpenAI/tests/VectorStoreTests.cs @@ -38,8 +38,8 @@ public async Task CanCreateGetAndDeleteVectorStores() VectorStoreClient client = GetTestClient(); CreateVectorStoreOperation createVectorStoreOperation = await client.CreateVectorStoreAsync(waitUntilCompleted: false); - Validate(createVectorStoreOperation); - bool deleted = await client.DeleteVectorStoreAsync(createVectorStoreOperation.GetVectorStore()); + Validate(createVectorStoreOperation.Value); + bool deleted = await client.DeleteVectorStoreAsync(createVectorStoreOperation.Value); Assert.That(deleted, Is.True); IReadOnlyList testFiles = await GetNewTestFilesAsync(client.GetConfigOrThrow(), 5); @@ -58,8 +58,8 @@ public async Task CanCreateGetAndDeleteVectorStores() ["test-key"] = "test-value", }, }); - Validate(createVectorStoreOperation); - VectorStore vectorStore = createVectorStoreOperation.GetVectorStore(); + Validate(createVectorStoreOperation.Value); + VectorStore vectorStore = createVectorStoreOperation.Value; Assert.Multiple(() => { Assert.That(vectorStore.Name, Is.EqualTo("test vector store")); @@ -91,7 +91,7 @@ public async Task CanCreateGetAndDeleteVectorStores() FileIds = testFiles.Select(file => file.Id).ToList() }); - vectorStore = createVectorStoreOperation.GetVectorStore(); + vectorStore = createVectorStoreOperation.Value; Validate(vectorStore); Assert.Multiple(() => {