diff --git a/codegen/generator/src/OpenAI.Library.Plugin.csproj b/codegen/generator/src/OpenAI.Library.Plugin.csproj index 66ba6015f..4cad4431b 100644 --- a/codegen/generator/src/OpenAI.Library.Plugin.csproj +++ b/codegen/generator/src/OpenAI.Library.Plugin.csproj @@ -8,7 +8,7 @@ - + @@ -24,3 +24,4 @@ + diff --git a/codegen/package.json b/codegen/package.json index d1f947a96..d7e2e0863 100644 --- a/codegen/package.json +++ b/codegen/package.json @@ -30,7 +30,7 @@ "dependencies": { "@open-ai/plugin": "file:", "@azure-tools/typespec-client-generator-core": "0.60.0", - "@typespec/http-client-csharp": "1.0.0-alpha.20250924.1", + "@typespec/http-client-csharp": "1.0.0-alpha.20250926.1", "@typespec/http": "1.4.0", "@typespec/openapi": "1.4.0" }, diff --git a/package-lock.json b/package-lock.json index cc290b3fc..8ef46ffd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "@azure-tools/typespec-client-generator-core": "0.60.0", "@open-ai/plugin": "file:", "@typespec/http": "1.4.0", - "@typespec/http-client-csharp": "1.0.0-alpha.20250924.1", + "@typespec/http-client-csharp": "1.0.0-alpha.20250926.1", "@typespec/openapi": "1.4.0" }, "devDependencies": { @@ -1555,9 +1555,9 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250924.1", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250924.1.tgz", - "integrity": "sha512-N6fKW3TkvrYOvWjms4e7H0iODNZh+rR2OTg9z9Dq0O0RG0d24SPXXqBhx1XZqj9Zd2yAfmft2Uu6Os6WyjnnwQ==", + "version": "1.0.0-alpha.20250926.1", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250926.1.tgz", + "integrity": "sha512-Ag+nqWTbQc9R1Vfoo0mQTeh0PErhMwisoHaSol/ScVlMXlX4VOuPLDskJ+RnLl3qGjOwwYqfbvvtpBH8LVlj5A==", "license": "MIT", "peerDependencies": { "@azure-tools/typespec-client-generator-core": ">=0.60.0 < 0.61.0 || ~0.61.0-0", diff --git a/src/Generated/Models/Assistants/Assistant.Serialization.cs b/src/Generated/Models/Assistants/Assistant.Serialization.cs index fe1170627..eed6ffb4e 100644 --- a/src/Generated/Models/Assistants/Assistant.Serialization.cs +++ b/src/Generated/Models/Assistants/Assistant.Serialization.cs @@ -370,8 +370,7 @@ protected virtual Assistant PersistableModelCreateCore(BinaryData data, ModelRea public static explicit operator Assistant(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeAssistant(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs b/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs index 66e9630f3..2efa5e531 100644 --- a/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs +++ b/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs @@ -150,8 +150,7 @@ protected virtual AssistantDeletionResult PersistableModelCreateCore(BinaryData public static explicit operator AssistantDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeAssistantDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/AssistantThread.Serialization.cs b/src/Generated/Models/Assistants/AssistantThread.Serialization.cs index b2602c8e7..e6dac8763 100644 --- a/src/Generated/Models/Assistants/AssistantThread.Serialization.cs +++ b/src/Generated/Models/Assistants/AssistantThread.Serialization.cs @@ -219,8 +219,7 @@ protected virtual AssistantThread PersistableModelCreateCore(BinaryData data, Mo public static explicit operator AssistantThread(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeAssistantThread(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs b/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs index d53cbb4b9..dd0e50630 100644 --- a/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs @@ -189,8 +189,7 @@ protected virtual InternalListAssistantsResponse PersistableModelCreateCore(Bina public static explicit operator InternalListAssistantsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListAssistantsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/InternalListMessagesResponse.Serialization.cs b/src/Generated/Models/Assistants/InternalListMessagesResponse.Serialization.cs index 81f371dfd..a4ce553b5 100644 --- a/src/Generated/Models/Assistants/InternalListMessagesResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListMessagesResponse.Serialization.cs @@ -189,8 +189,7 @@ protected virtual InternalListMessagesResponse PersistableModelCreateCore(Binary public static explicit operator InternalListMessagesResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListMessagesResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/InternalListRunStepsResponse.Serialization.cs b/src/Generated/Models/Assistants/InternalListRunStepsResponse.Serialization.cs index 990499505..739661052 100644 --- a/src/Generated/Models/Assistants/InternalListRunStepsResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListRunStepsResponse.Serialization.cs @@ -189,8 +189,7 @@ protected virtual InternalListRunStepsResponse PersistableModelCreateCore(Binary public static explicit operator InternalListRunStepsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListRunStepsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/InternalListRunsResponse.Serialization.cs b/src/Generated/Models/Assistants/InternalListRunsResponse.Serialization.cs index 48780244e..6abb47d79 100644 --- a/src/Generated/Models/Assistants/InternalListRunsResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListRunsResponse.Serialization.cs @@ -189,8 +189,7 @@ protected virtual InternalListRunsResponse PersistableModelCreateCore(BinaryData public static explicit operator InternalListRunsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListRunsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs b/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs index 7985a83c7..9e50c7fff 100644 --- a/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs +++ b/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs @@ -150,8 +150,7 @@ protected virtual MessageDeletionResult PersistableModelCreateCore(BinaryData da public static explicit operator MessageDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeMessageDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/RunStep.Serialization.cs b/src/Generated/Models/Assistants/RunStep.Serialization.cs index b89385556..da33665b9 100644 --- a/src/Generated/Models/Assistants/RunStep.Serialization.cs +++ b/src/Generated/Models/Assistants/RunStep.Serialization.cs @@ -411,8 +411,7 @@ protected virtual RunStep PersistableModelCreateCore(BinaryData data, ModelReade public static explicit operator RunStep(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeRunStep(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/ThreadDeletionResult.Serialization.cs b/src/Generated/Models/Assistants/ThreadDeletionResult.Serialization.cs index 274ba60be..e8bbb009c 100644 --- a/src/Generated/Models/Assistants/ThreadDeletionResult.Serialization.cs +++ b/src/Generated/Models/Assistants/ThreadDeletionResult.Serialization.cs @@ -150,8 +150,7 @@ protected virtual ThreadDeletionResult PersistableModelCreateCore(BinaryData dat public static explicit operator ThreadDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeThreadDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/ThreadMessage.Serialization.cs b/src/Generated/Models/Assistants/ThreadMessage.Serialization.cs index 0d0e7128a..0d19dc9b2 100644 --- a/src/Generated/Models/Assistants/ThreadMessage.Serialization.cs +++ b/src/Generated/Models/Assistants/ThreadMessage.Serialization.cs @@ -408,8 +408,7 @@ protected virtual ThreadMessage PersistableModelCreateCore(BinaryData data, Mode public static explicit operator ThreadMessage(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeThreadMessage(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/ThreadRun.Serialization.cs b/src/Generated/Models/Assistants/ThreadRun.Serialization.cs index ce0f31faf..30d9d99b0 100644 --- a/src/Generated/Models/Assistants/ThreadRun.Serialization.cs +++ b/src/Generated/Models/Assistants/ThreadRun.Serialization.cs @@ -660,8 +660,7 @@ protected virtual ThreadRun PersistableModelCreateCore(BinaryData data, ModelRea public static explicit operator ThreadRun(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeThreadRun(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs b/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs index 9c6d8f885..7a87b100f 100644 --- a/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs +++ b/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs @@ -433,8 +433,7 @@ protected virtual InternalBatchJob PersistableModelCreateCore(BinaryData data, M public static explicit operator InternalBatchJob(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalBatchJob(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Batch/InternalListBatchesResponse.Serialization.cs b/src/Generated/Models/Batch/InternalListBatchesResponse.Serialization.cs index a5a3ad90e..4bc86c18f 100644 --- a/src/Generated/Models/Batch/InternalListBatchesResponse.Serialization.cs +++ b/src/Generated/Models/Batch/InternalListBatchesResponse.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalListBatchesResponse PersistableModelCreateCore(BinaryD public static explicit operator InternalListBatchesResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListBatchesResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Chat/ChatCompletion.Serialization.cs b/src/Generated/Models/Chat/ChatCompletion.Serialization.cs index bd794d07c..0f65e0458 100644 --- a/src/Generated/Models/Chat/ChatCompletion.Serialization.cs +++ b/src/Generated/Models/Chat/ChatCompletion.Serialization.cs @@ -238,8 +238,7 @@ protected virtual ChatCompletion PersistableModelCreateCore(BinaryData data, Mod public static explicit operator ChatCompletion(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeChatCompletion(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Chat/ChatCompletionDeletionResult.Serialization.cs b/src/Generated/Models/Chat/ChatCompletionDeletionResult.Serialization.cs index 70c9c5db6..57751c200 100644 --- a/src/Generated/Models/Chat/ChatCompletionDeletionResult.Serialization.cs +++ b/src/Generated/Models/Chat/ChatCompletionDeletionResult.Serialization.cs @@ -150,8 +150,7 @@ protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(Binary public static explicit operator ChatCompletionDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeChatCompletionDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs index 194283854..3871055d7 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalChatCompletionList PersistableModelCreateCore(BinaryDa public static explicit operator InternalChatCompletionList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalChatCompletionList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Chat/InternalChatCompletionMessageList.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionMessageList.Serialization.cs index 749bac444..0395681c5 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionMessageList.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionMessageList.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalChatCompletionMessageList PersistableModelCreateCore(B public static explicit operator InternalChatCompletionMessageList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalChatCompletionMessageList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs b/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs index beac7f62d..29535ca74 100644 --- a/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs +++ b/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs @@ -202,8 +202,7 @@ protected virtual ContainerFileResource PersistableModelCreateCore(BinaryData da public static explicit operator ContainerFileResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeContainerFileResource(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Containers/ContainerResource.Serialization.cs b/src/Generated/Models/Containers/ContainerResource.Serialization.cs index f75a67d98..e6472d32f 100644 --- a/src/Generated/Models/Containers/ContainerResource.Serialization.cs +++ b/src/Generated/Models/Containers/ContainerResource.Serialization.cs @@ -194,8 +194,7 @@ protected virtual ContainerResource PersistableModelCreateCore(BinaryData data, public static explicit operator ContainerResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeContainerResource(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Containers/DeleteContainerFileResponse.Serialization.cs b/src/Generated/Models/Containers/DeleteContainerFileResponse.Serialization.cs index 67c3b55c1..aef9b314b 100644 --- a/src/Generated/Models/Containers/DeleteContainerFileResponse.Serialization.cs +++ b/src/Generated/Models/Containers/DeleteContainerFileResponse.Serialization.cs @@ -150,8 +150,7 @@ protected virtual DeleteContainerFileResponse PersistableModelCreateCore(BinaryD public static explicit operator DeleteContainerFileResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeDeleteContainerFileResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Containers/DeleteContainerResponse.Serialization.cs b/src/Generated/Models/Containers/DeleteContainerResponse.Serialization.cs index 3f40d2358..9f77e877c 100644 --- a/src/Generated/Models/Containers/DeleteContainerResponse.Serialization.cs +++ b/src/Generated/Models/Containers/DeleteContainerResponse.Serialization.cs @@ -150,8 +150,7 @@ protected virtual DeleteContainerResponse PersistableModelCreateCore(BinaryData public static explicit operator DeleteContainerResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeDeleteContainerResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Containers/InternalContainerFileListResource.Serialization.cs b/src/Generated/Models/Containers/InternalContainerFileListResource.Serialization.cs index ce8594354..f7b370c67 100644 --- a/src/Generated/Models/Containers/InternalContainerFileListResource.Serialization.cs +++ b/src/Generated/Models/Containers/InternalContainerFileListResource.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalContainerFileListResource PersistableModelCreateCore(B public static explicit operator InternalContainerFileListResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalContainerFileListResource(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Containers/InternalContainerListResource.Serialization.cs b/src/Generated/Models/Containers/InternalContainerListResource.Serialization.cs index 16e6cbaf8..b970e88e2 100644 --- a/src/Generated/Models/Containers/InternalContainerListResource.Serialization.cs +++ b/src/Generated/Models/Containers/InternalContainerListResource.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalContainerListResource PersistableModelCreateCore(Binar public static explicit operator InternalContainerListResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalContainerListResource(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs b/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs index 4a90a5ef8..73184c893 100644 --- a/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs +++ b/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs @@ -112,8 +112,7 @@ protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(BinaryDat public static explicit operator OpenAIEmbeddingCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeOpenAIEmbeddingCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs b/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs index 81cfd9baa..bbffa3f0d 100644 --- a/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs +++ b/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs @@ -150,8 +150,7 @@ protected virtual InternalDeleteEvalResponse PersistableModelCreateCore(BinaryDa public static explicit operator InternalDeleteEvalResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalDeleteEvalResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalDeleteEvalRunResponse.Serialization.cs b/src/Generated/Models/Evals/InternalDeleteEvalRunResponse.Serialization.cs index 1b3f1b9b6..86faf0d9f 100644 --- a/src/Generated/Models/Evals/InternalDeleteEvalRunResponse.Serialization.cs +++ b/src/Generated/Models/Evals/InternalDeleteEvalRunResponse.Serialization.cs @@ -150,8 +150,7 @@ protected virtual InternalDeleteEvalRunResponse PersistableModelCreateCore(Binar public static explicit operator InternalDeleteEvalRunResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalDeleteEvalRunResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEval.Serialization.cs b/src/Generated/Models/Evals/InternalEval.Serialization.cs index 4d7003d77..f797abc57 100644 --- a/src/Generated/Models/Evals/InternalEval.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEval.Serialization.cs @@ -259,8 +259,7 @@ protected virtual InternalEval PersistableModelCreateCore(BinaryData data, Model public static explicit operator InternalEval(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalEval(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalList.Serialization.cs b/src/Generated/Models/Evals/InternalEvalList.Serialization.cs index ba8d769a7..75418e07a 100644 --- a/src/Generated/Models/Evals/InternalEvalList.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalList.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalEvalList PersistableModelCreateCore(BinaryData data, M public static explicit operator InternalEvalList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalEvalList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs index f4edd11e2..46edc28d5 100644 --- a/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs @@ -341,8 +341,7 @@ protected virtual InternalEvalRun PersistableModelCreateCore(BinaryData data, Mo public static explicit operator InternalEvalRun(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalEvalRun(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs index b900f81c1..4bfce8682 100644 --- a/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalEvalRunList PersistableModelCreateCore(BinaryData data public static explicit operator InternalEvalRunList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalEvalRunList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalRunOutputItem.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunOutputItem.Serialization.cs index 9111bb182..d2641487f 100644 --- a/src/Generated/Models/Evals/InternalEvalRunOutputItem.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunOutputItem.Serialization.cs @@ -320,8 +320,7 @@ protected virtual InternalEvalRunOutputItem PersistableModelCreateCore(BinaryDat public static explicit operator InternalEvalRunOutputItem(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalEvalRunOutputItem(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalRunOutputItemList.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunOutputItemList.Serialization.cs index d15408546..4ed0161b9 100644 --- a/src/Generated/Models/Evals/InternalEvalRunOutputItemList.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunOutputItemList.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalEvalRunOutputItemList PersistableModelCreateCore(Binar public static explicit operator InternalEvalRunOutputItemList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalEvalRunOutputItemList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Files/FileDeletionResult.Serialization.cs b/src/Generated/Models/Files/FileDeletionResult.Serialization.cs index be4d28915..cbf58e6c8 100644 --- a/src/Generated/Models/Files/FileDeletionResult.Serialization.cs +++ b/src/Generated/Models/Files/FileDeletionResult.Serialization.cs @@ -156,8 +156,7 @@ protected virtual FileDeletionResult PersistableModelCreateCore(BinaryData data, public static explicit operator FileDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeFileDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Files/InternalUpload.Serialization.cs b/src/Generated/Models/Files/InternalUpload.Serialization.cs index 3da4e30f5..09c441ebc 100644 --- a/src/Generated/Models/Files/InternalUpload.Serialization.cs +++ b/src/Generated/Models/Files/InternalUpload.Serialization.cs @@ -231,8 +231,7 @@ protected virtual InternalUpload PersistableModelCreateCore(BinaryData data, Mod public static explicit operator InternalUpload(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalUpload(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Files/InternalUploadPart.Serialization.cs b/src/Generated/Models/Files/InternalUploadPart.Serialization.cs index 66877597f..cda4b7c95 100644 --- a/src/Generated/Models/Files/InternalUploadPart.Serialization.cs +++ b/src/Generated/Models/Files/InternalUploadPart.Serialization.cs @@ -161,8 +161,7 @@ protected virtual InternalUploadPart PersistableModelCreateCore(BinaryData data, public static explicit operator InternalUploadPart(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalUploadPart(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Files/OpenAIFile.Serialization.cs b/src/Generated/Models/Files/OpenAIFile.Serialization.cs index c2dd5eb10..f665382d1 100644 --- a/src/Generated/Models/Files/OpenAIFile.Serialization.cs +++ b/src/Generated/Models/Files/OpenAIFile.Serialization.cs @@ -248,8 +248,7 @@ protected virtual OpenAIFile PersistableModelCreateCore(BinaryData data, ModelRe public static explicit operator OpenAIFile(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeOpenAIFile(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs b/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs index 5529962c7..cbfee9d63 100644 --- a/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs +++ b/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs @@ -117,8 +117,7 @@ protected virtual OpenAIFileCollection PersistableModelCreateCore(BinaryData dat public static explicit operator OpenAIFileCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeOpenAIFileCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs b/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs index 70315608e..4988068a8 100644 --- a/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs @@ -150,8 +150,7 @@ protected virtual InternalDeleteFineTuningCheckpointPermissionResponse Persistab public static explicit operator InternalDeleteFineTuningCheckpointPermissionResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalDeleteFineTuningCheckpointPermissionResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs b/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs index ebc8bf332..8de4aea90 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs @@ -503,8 +503,7 @@ protected virtual InternalFineTuningJob PersistableModelCreateCore(BinaryData da public static explicit operator InternalFineTuningJob(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalFineTuningJob(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs b/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs index 50ee4e4c9..dd5c8274c 100644 --- a/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs @@ -198,8 +198,7 @@ protected virtual InternalListFineTuningCheckpointPermissionResponse Persistable public static explicit operator InternalListFineTuningCheckpointPermissionResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListFineTuningCheckpointPermissionResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalListFineTuningJobCheckpointsResponse.Serialization.cs b/src/Generated/Models/FineTuning/InternalListFineTuningJobCheckpointsResponse.Serialization.cs index 9c2f98571..e5b209b77 100644 --- a/src/Generated/Models/FineTuning/InternalListFineTuningJobCheckpointsResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListFineTuningJobCheckpointsResponse.Serialization.cs @@ -198,8 +198,7 @@ protected virtual InternalListFineTuningJobCheckpointsResponse PersistableModelC public static explicit operator InternalListFineTuningJobCheckpointsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListFineTuningJobCheckpointsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalListFineTuningJobEventsResponse.Serialization.cs b/src/Generated/Models/FineTuning/InternalListFineTuningJobEventsResponse.Serialization.cs index 1d50324c6..6f56e35f9 100644 --- a/src/Generated/Models/FineTuning/InternalListFineTuningJobEventsResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListFineTuningJobEventsResponse.Serialization.cs @@ -160,8 +160,7 @@ protected virtual InternalListFineTuningJobEventsResponse PersistableModelCreate public static explicit operator InternalListFineTuningJobEventsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListFineTuningJobEventsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalListPaginatedFineTuningJobsResponse.Serialization.cs b/src/Generated/Models/FineTuning/InternalListPaginatedFineTuningJobsResponse.Serialization.cs index f3df3b85b..815408341 100644 --- a/src/Generated/Models/FineTuning/InternalListPaginatedFineTuningJobsResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListPaginatedFineTuningJobsResponse.Serialization.cs @@ -160,8 +160,7 @@ protected virtual InternalListPaginatedFineTuningJobsResponse PersistableModelCr public static explicit operator InternalListPaginatedFineTuningJobsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListPaginatedFineTuningJobsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs b/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs index 798d9a460..1c83b2991 100644 --- a/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs +++ b/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs @@ -175,8 +175,7 @@ protected virtual RunGraderResponse PersistableModelCreateCore(BinaryData data, public static explicit operator RunGraderResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeRunGraderResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs b/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs index 2260018ae..0e67bd0b3 100644 --- a/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs +++ b/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs @@ -135,8 +135,7 @@ protected virtual ValidateGraderResponse PersistableModelCreateCore(BinaryData d public static explicit operator ValidateGraderResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeValidateGraderResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs b/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs index ba0ebd5f7..81a753c8f 100644 --- a/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs +++ b/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs @@ -171,8 +171,7 @@ protected virtual GeneratedImageCollection PersistableModelCreateCore(BinaryData public static explicit operator GeneratedImageCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeGeneratedImageCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs index cd88f9ada..7538d6288 100644 --- a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs +++ b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs @@ -217,8 +217,7 @@ protected virtual InternalCreateCompletionResponse PersistableModelCreateCore(Bi public static explicit operator InternalCreateCompletionResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalCreateCompletionResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Models/ModelDeletionResult.Serialization.cs b/src/Generated/Models/Models/ModelDeletionResult.Serialization.cs index 147386b72..8d027b3fa 100644 --- a/src/Generated/Models/Models/ModelDeletionResult.Serialization.cs +++ b/src/Generated/Models/Models/ModelDeletionResult.Serialization.cs @@ -156,8 +156,7 @@ protected virtual ModelDeletionResult PersistableModelCreateCore(BinaryData data public static explicit operator ModelDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeModelDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Models/OpenAIModel.Serialization.cs b/src/Generated/Models/Models/OpenAIModel.Serialization.cs index 8dfd6c0e1..058101bf4 100644 --- a/src/Generated/Models/Models/OpenAIModel.Serialization.cs +++ b/src/Generated/Models/Models/OpenAIModel.Serialization.cs @@ -167,8 +167,7 @@ protected virtual OpenAIModel PersistableModelCreateCore(BinaryData data, ModelR public static explicit operator OpenAIModel(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeOpenAIModel(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs b/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs index 1c79247fe..b6a9d848e 100644 --- a/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs +++ b/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs @@ -102,8 +102,7 @@ protected virtual OpenAIModelCollection PersistableModelCreateCore(BinaryData da public static explicit operator OpenAIModelCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeOpenAIModelCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs b/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs index b1e2f5132..ac1c71028 100644 --- a/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs +++ b/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs @@ -107,8 +107,7 @@ protected virtual ModerationResultCollection PersistableModelCreateCore(BinaryDa public static explicit operator ModerationResultCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeModerationResultCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs index 550958829..cae237de8 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs @@ -365,8 +365,7 @@ protected virtual InternalRealtimeSessionCreateResponse PersistableModelCreateCo public static explicit operator InternalRealtimeSessionCreateResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalRealtimeSessionCreateResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs index 8d9b6b231..ebb6c1a31 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs @@ -200,8 +200,7 @@ protected virtual InternalRealtimeTranscriptionSessionCreateResponse Persistable public static explicit operator InternalRealtimeTranscriptionSessionCreateResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalRealtimeTranscriptionSessionCreateResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs b/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs index d43c2e9cf..fd000f146 100644 --- a/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs @@ -188,8 +188,7 @@ protected virtual InternalResponseItemList PersistableModelCreateCore(BinaryData public static explicit operator InternalResponseItemList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalResponseItemList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs b/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs index 25215a503..6e409249d 100644 --- a/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs +++ b/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs @@ -575,8 +575,7 @@ protected virtual OpenAIResponse PersistableModelCreateCore(BinaryData data, Mod public static explicit operator OpenAIResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeOpenAIResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs b/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs index 9960b3f6a..5fea1bdec 100644 --- a/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs +++ b/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs @@ -150,8 +150,7 @@ protected virtual ResponseDeletionResult PersistableModelCreateCore(BinaryData d public static explicit operator ResponseDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeResponseDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs b/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs index a480523b9..c5515fc35 100644 --- a/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs +++ b/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs @@ -150,8 +150,7 @@ protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(BinaryDa public static explicit operator FileFromStoreRemovalResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeFileFromStoreRemovalResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs b/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs index b5e7f0f4c..79accdc5a 100644 --- a/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs @@ -189,8 +189,7 @@ protected virtual InternalListVectorStoreFilesResponse PersistableModelCreateCor public static explicit operator InternalListVectorStoreFilesResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListVectorStoreFilesResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/InternalListVectorStoresResponse.Serialization.cs b/src/Generated/Models/VectorStores/InternalListVectorStoresResponse.Serialization.cs index 4b47c56e9..c4442b048 100644 --- a/src/Generated/Models/VectorStores/InternalListVectorStoresResponse.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalListVectorStoresResponse.Serialization.cs @@ -189,8 +189,7 @@ protected virtual InternalListVectorStoresResponse PersistableModelCreateCore(Bi public static explicit operator InternalListVectorStoresResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalListVectorStoresResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs b/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs index 0d846ed4b..8cc2e1074 100644 --- a/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs @@ -183,8 +183,7 @@ protected virtual InternalVectorStoreFileContentResponse PersistableModelCreateC public static explicit operator InternalVectorStoreFileContentResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalVectorStoreFileContentResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/InternalVectorStoreSearchResultsPage.Serialization.cs b/src/Generated/Models/VectorStores/InternalVectorStoreSearchResultsPage.Serialization.cs index 081e1b2ef..0f4363bcb 100644 --- a/src/Generated/Models/VectorStores/InternalVectorStoreSearchResultsPage.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalVectorStoreSearchResultsPage.Serialization.cs @@ -222,8 +222,7 @@ protected virtual InternalVectorStoreSearchResultsPage PersistableModelCreateCor public static explicit operator InternalVectorStoreSearchResultsPage(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeInternalVectorStoreSearchResultsPage(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/VectorStore.Serialization.cs b/src/Generated/Models/VectorStores/VectorStore.Serialization.cs index cc4a3f686..a2532f264 100644 --- a/src/Generated/Models/VectorStores/VectorStore.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStore.Serialization.cs @@ -300,8 +300,7 @@ protected virtual VectorStore PersistableModelCreateCore(BinaryData data, ModelR public static explicit operator VectorStore(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeVectorStore(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/VectorStoreDeletionResult.Serialization.cs b/src/Generated/Models/VectorStores/VectorStoreDeletionResult.Serialization.cs index 84ef465f5..3ac57fb24 100644 --- a/src/Generated/Models/VectorStores/VectorStoreDeletionResult.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStoreDeletionResult.Serialization.cs @@ -150,8 +150,7 @@ protected virtual VectorStoreDeletionResult PersistableModelCreateCore(BinaryDat public static explicit operator VectorStoreDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeVectorStoreDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/VectorStoreFile.Serialization.cs b/src/Generated/Models/VectorStores/VectorStoreFile.Serialization.cs index 7807b03f5..9c5797630 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFile.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFile.Serialization.cs @@ -276,8 +276,7 @@ protected virtual VectorStoreFile PersistableModelCreateCore(BinaryData data, Mo public static explicit operator VectorStoreFile(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeVectorStoreFile(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/VectorStoreFileBatch.Serialization.cs b/src/Generated/Models/VectorStores/VectorStoreFileBatch.Serialization.cs index 97903ed13..e4c3124b1 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileBatch.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileBatch.Serialization.cs @@ -190,8 +190,7 @@ protected virtual VectorStoreFileBatch PersistableModelCreateCore(BinaryData dat public static explicit operator VectorStoreFileBatch(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - BinaryData data = response.Content; - using JsonDocument document = JsonDocument.Parse(data); + using JsonDocument document = JsonDocument.Parse(response.Content); return DeserializeVectorStoreFileBatch(document.RootElement, ModelSerializationExtensions.WireOptions); } }