diff --git a/codegen/generator/src/OpenAI.Library.Plugin.csproj b/codegen/generator/src/OpenAI.Library.Plugin.csproj index bfae1a1f9..66ba6015f 100644 --- a/codegen/generator/src/OpenAI.Library.Plugin.csproj +++ b/codegen/generator/src/OpenAI.Library.Plugin.csproj @@ -1,14 +1,14 @@ - net8.0 + net9.0 enable OpenAI.Microsoft.Generator.CSharp.ClientModel.Plugin true - + diff --git a/codegen/generator/src/OpenAILibraryVisitor.cs b/codegen/generator/src/OpenAILibraryVisitor.cs index 626fa1dab..e4f1b48d6 100644 --- a/codegen/generator/src/OpenAILibraryVisitor.cs +++ b/codegen/generator/src/OpenAILibraryVisitor.cs @@ -49,10 +49,10 @@ public class OpenAILibraryVisitor : ScmLibraryVisitor protected override TypeProvider VisitType(TypeProvider type) { - if (type is ModelProvider { BaseModelProvider: null } && type.Fields.Count > 0) + var additionalPropertiesField = type.Fields.FirstOrDefault(f => f.Name == AdditionalPropertiesFieldName); + if (type is ModelProvider { BaseModelProvider: null } && additionalPropertiesField != null) { // Add an internal AdditionalProperties property to all base models - var additionalPropertiesField = type.Fields.Single(f => f.Name == AdditionalPropertiesFieldName); var properties = new List(type.Properties) { new PropertyProvider($"", MethodSignatureModifiers.Internal, diff --git a/codegen/generator/src/Visitors/ExperimentalAttributeVisitor.cs b/codegen/generator/src/Visitors/ExperimentalAttributeVisitor.cs index 8b095979b..d3b85d64f 100644 --- a/codegen/generator/src/Visitors/ExperimentalAttributeVisitor.cs +++ b/codegen/generator/src/Visitors/ExperimentalAttributeVisitor.cs @@ -618,6 +618,12 @@ public class ExperimentalAttributeVisitor : ScmLibraryVisitor protected override PropertyProvider? VisitProperty(PropertyProvider property) { + // Skip properties that are already marked as experimental + if (property.Attributes.Any(attr => attr.Type.Equals(typeof(ExperimentalAttribute)))) + { + return base.VisitProperty(property); + } + // Skip properties that are not public or are in non-stable classes if ((!property.Modifiers.HasFlag(MethodSignatureModifiers.Public) && !property.Modifiers.HasFlag(MethodSignatureModifiers.Protected)) || diff --git a/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs b/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs index fc98d87c3..85fbe4b1c 100644 --- a/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs +++ b/codegen/generator/src/Visitors/PageOrderRemovalVisitor.cs @@ -98,7 +98,8 @@ private static InputParameter CreateSyntheticPageOrderInputParameter() discriminatedSubtypes: new Dictionary(), additionalProperties: null, modelAsStruct: true, - serializationOptions: new()); + serializationOptions: new(), + isDynamicModel: false); return new InputQueryParameter( name: "order", serializedName: "order", diff --git a/codegen/package.json b/codegen/package.json index bdfeb8a4a..d1f947a96 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.20250915.1", + "@typespec/http-client-csharp": "1.0.0-alpha.20250924.1", "@typespec/http": "1.4.0", "@typespec/openapi": "1.4.0" }, diff --git a/package-lock.json b/package-lock.json index 4741b23a8..cc290b3fc 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.20250915.1", + "@typespec/http-client-csharp": "1.0.0-alpha.20250924.1", "@typespec/openapi": "1.4.0" }, "devDependencies": { @@ -1139,9 +1139,9 @@ "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.50.2.tgz", - "integrity": "sha512-uLN8NAiFVIRKX9ZQha8wy6UUs06UNSZ32xj6giK/rmMXAgKahwExvK6SsmgU5/brh4w/nSgj8e0k3c1HBQpa0A==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.2.tgz", + "integrity": "sha512-o3pcKzJgSGt4d74lSZ+OCnHwkKBeAbFDmbEm5gg70eA8VkyCuC/zV9TwBnmw6VjDlRdF4Pshfb+WE9E6XY1PoQ==", "cpu": [ "arm" ], @@ -1153,9 +1153,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.50.2.tgz", - "integrity": "sha512-oEouqQk2/zxxj22PNcGSskya+3kV0ZKH+nQxuCCOGJ4oTXBdNTbv+f/E3c74cNLeMO1S5wVWacSws10TTSB77g==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.2.tgz", + "integrity": "sha512-cqFSWO5tX2vhC9hJTK8WAiPIm4Q8q/cU8j2HQA0L3E1uXvBYbOZMhE2oFL8n2pKB5sOCHY6bBuHaRwG7TkfJyw==", "cpu": [ "arm64" ], @@ -1167,9 +1167,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.50.2.tgz", - "integrity": "sha512-OZuTVTpj3CDSIxmPgGH8en/XtirV5nfljHZ3wrNwvgkT5DQLhIKAeuFSiwtbMto6oVexV0k1F1zqURPKf5rI1Q==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.2.tgz", + "integrity": "sha512-vngduywkkv8Fkh3wIZf5nFPXzWsNsVu1kvtLETWxTFf/5opZmflgVSeLgdHR56RQh71xhPhWoOkEBvbehwTlVA==", "cpu": [ "arm64" ], @@ -1181,9 +1181,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.50.2.tgz", - "integrity": "sha512-Wa/Wn8RFkIkr1vy1k1PB//VYhLnlnn5eaJkfTQKivirOvzu5uVd2It01ukeQstMursuz7S1bU+8WW+1UPXpa8A==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.2.tgz", + "integrity": "sha512-h11KikYrUCYTrDj6h939hhMNlqU2fo/X4NB0OZcys3fya49o1hmFaczAiJWVAFgrM1NCP6RrO7lQKeVYSKBPSQ==", "cpu": [ "x64" ], @@ -1195,9 +1195,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.50.2.tgz", - "integrity": "sha512-QkzxvH3kYN9J1w7D1A+yIMdI1pPekD+pWx7G5rXgnIlQ1TVYVC6hLl7SOV9pi5q9uIDF9AuIGkuzcbF7+fAhow==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.2.tgz", + "integrity": "sha512-/eg4CI61ZUkLXxMHyVlmlGrSQZ34xqWlZNW43IAU4RmdzWEx0mQJ2mN/Cx4IHLVZFL6UBGAh+/GXhgvGb+nVxw==", "cpu": [ "arm64" ], @@ -1209,9 +1209,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.50.2.tgz", - "integrity": "sha512-dkYXB0c2XAS3a3jmyDkX4Jk0m7gWLFzq1C3qUnJJ38AyxIF5G/dyS4N9B30nvFseCfgtCEdbYFhk0ChoCGxPog==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.2.tgz", + "integrity": "sha512-QOWgFH5X9+p+S1NAfOqc0z8qEpJIoUHf7OWjNUGOeW18Mx22lAUOiA9b6r2/vpzLdfxi/f+VWsYjUOMCcYh0Ng==", "cpu": [ "x64" ], @@ -1223,9 +1223,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.50.2.tgz", - "integrity": "sha512-9VlPY/BN3AgbukfVHAB8zNFWB/lKEuvzRo1NKev0Po8sYFKx0i+AQlCYftgEjcL43F2h9Ui1ZSdVBc4En/sP2w==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.2.tgz", + "integrity": "sha512-kDWSPafToDd8LcBYd1t5jw7bD5Ojcu12S3uT372e5HKPzQt532vW+rGFFOaiR0opxePyUkHrwz8iWYEyH1IIQA==", "cpu": [ "arm" ], @@ -1237,9 +1237,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.50.2.tgz", - "integrity": "sha512-+GdKWOvsifaYNlIVf07QYan1J5F141+vGm5/Y8b9uCZnG/nxoGqgCmR24mv0koIWWuqvFYnbURRqw1lv7IBINw==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.2.tgz", + "integrity": "sha512-gKm7Mk9wCv6/rkzwCiUC4KnevYhlf8ztBrDRT9g/u//1fZLapSRc+eDZj2Eu2wpJ+0RzUKgtNijnVIB4ZxyL+w==", "cpu": [ "arm" ], @@ -1251,9 +1251,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.50.2.tgz", - "integrity": "sha512-df0Eou14ojtUdLQdPFnymEQteENwSJAdLf5KCDrmZNsy1c3YaCNaJvYsEUHnrg+/DLBH612/R0xd3dD03uz2dg==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.2.tgz", + "integrity": "sha512-66lA8vnj5mB/rtDNwPgrrKUOtCLVQypkyDa2gMfOefXK6rcZAxKLO9Fy3GkW8VkPnENv9hBkNOFfGLf6rNKGUg==", "cpu": [ "arm64" ], @@ -1265,9 +1265,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.50.2.tgz", - "integrity": "sha512-iPeouV0UIDtz8j1YFR4OJ/zf7evjauqv7jQ/EFs0ClIyL+by++hiaDAfFipjOgyz6y6xbDvJuiU4HwpVMpRFDQ==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.2.tgz", + "integrity": "sha512-s+OPucLNdJHvuZHuIz2WwncJ+SfWHFEmlC5nKMUgAelUeBUnlB4wt7rXWiyG4Zn07uY2Dd+SGyVa9oyLkVGOjA==", "cpu": [ "arm64" ], @@ -1279,9 +1279,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.50.2.tgz", - "integrity": "sha512-OL6KaNvBopLlj5fTa5D5bau4W82f+1TyTZRr2BdnfsrnQnmdxh4okMxR2DcDkJuh4KeoQZVuvHvzuD/lyLn2Kw==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.2.tgz", + "integrity": "sha512-8wTRM3+gVMDLLDdaT6tKmOE3lJyRy9NpJUS/ZRWmLCmOPIJhVyXwjBo+XbrrwtV33Em1/eCTd5TuGJm4+DmYjw==", "cpu": [ "loong64" ], @@ -1293,9 +1293,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.50.2.tgz", - "integrity": "sha512-I21VJl1w6z/K5OTRl6aS9DDsqezEZ/yKpbqlvfHbW0CEF5IL8ATBMuUx6/mp683rKTK8thjs/0BaNrZLXetLag==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.2.tgz", + "integrity": "sha512-6yqEfgJ1anIeuP2P/zhtfBlDpXUb80t8DpbYwXQ3bQd95JMvUaqiX+fKqYqUwZXqdJDd8xdilNtsHM2N0cFm6A==", "cpu": [ "ppc64" ], @@ -1307,9 +1307,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.50.2.tgz", - "integrity": "sha512-Hq6aQJT/qFFHrYMjS20nV+9SKrXL2lvFBENZoKfoTH2kKDOJqff5OSJr4x72ZaG/uUn+XmBnGhfr4lwMRrmqCQ==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.2.tgz", + "integrity": "sha512-sshYUiYVSEI2B6dp4jMncwxbrUqRdNApF2c3bhtLAU0qA8Lrri0p0NauOsTWh3yCCCDyBOjESHMExonp7Nzc0w==", "cpu": [ "riscv64" ], @@ -1321,9 +1321,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.50.2.tgz", - "integrity": "sha512-82rBSEXRv5qtKyr0xZ/YMF531oj2AIpLZkeNYxmKNN6I2sVE9PGegN99tYDLK2fYHJITL1P2Lgb4ZXnv0PjQvw==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.2.tgz", + "integrity": "sha512-duBLgd+3pqC4MMwBrKkFxaZerUxZcYApQVC5SdbF5/e/589GwVvlRUnyqMFbM8iUSb1BaoX/3fRL7hB9m2Pj8Q==", "cpu": [ "riscv64" ], @@ -1335,9 +1335,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.50.2.tgz", - "integrity": "sha512-4Q3S3Hy7pC6uaRo9gtXUTJ+EKo9AKs3BXKc2jYypEcMQ49gDPFU2P1ariX9SEtBzE5egIX6fSUmbmGazwBVF9w==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.2.tgz", + "integrity": "sha512-tzhYJJidDUVGMgVyE+PmxENPHlvvqm1KILjjZhB8/xHYqAGeizh3GBGf9u6WdJpZrz1aCpIIHG0LgJgH9rVjHQ==", "cpu": [ "s390x" ], @@ -1349,9 +1349,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.2.tgz", - "integrity": "sha512-9Jie/At6qk70dNIcopcL4p+1UirusEtznpNtcq/u/C5cC4HBX7qSGsYIcG6bdxj15EYWhHiu02YvmdPzylIZlA==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.2.tgz", + "integrity": "sha512-opH8GSUuVcCSSyHHcl5hELrmnk4waZoVpgn/4FDao9iyE4WpQhyWJ5ryl5M3ocp4qkRuHfyXnGqg8M9oKCEKRA==", "cpu": [ "x64" ], @@ -1363,9 +1363,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.50.2.tgz", - "integrity": "sha512-HPNJwxPL3EmhzeAnsWQCM3DcoqOz3/IC6de9rWfGR8ZCuEHETi9km66bH/wG3YH0V3nyzyFEGUZeL5PKyy4xvw==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.2.tgz", + "integrity": "sha512-LSeBHnGli1pPKVJ79ZVJgeZWWZXkEe/5o8kcn23M8eMKCUANejchJbF/JqzM4RRjOJfNRhKJk8FuqL1GKjF5oQ==", "cpu": [ "x64" ], @@ -1377,9 +1377,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.50.2.tgz", - "integrity": "sha512-nMKvq6FRHSzYfKLHZ+cChowlEkR2lj/V0jYj9JnGUVPL2/mIeFGmVM2mLaFeNa5Jev7W7TovXqXIG2d39y1KYA==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.2.tgz", + "integrity": "sha512-uPj7MQ6/s+/GOpolavm6BPo+6CbhbKYyZHUDvZ/SmJM7pfDBgdGisFX3bY/CBDMg2ZO4utfhlApkSfZ92yXw7Q==", "cpu": [ "arm64" ], @@ -1391,9 +1391,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.50.2.tgz", - "integrity": "sha512-eFUvvnTYEKeTyHEijQKz81bLrUQOXKZqECeiWH6tb8eXXbZk+CXSG2aFrig2BQ/pjiVRj36zysjgILkqarS2YA==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.2.tgz", + "integrity": "sha512-Z9MUCrSgIaUeeHAiNkm3cQyst2UhzjPraR3gYYfOjAuZI7tcFRTOD+4cHLPoS/3qinchth+V56vtqz1Tv+6KPA==", "cpu": [ "arm64" ], @@ -1405,9 +1405,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.50.2.tgz", - "integrity": "sha512-cBaWmXqyfRhH8zmUxK3d3sAhEWLrtMjWBRwdMMHJIXSjvjLKvv49adxiEz+FJ8AP90apSDDBx2Tyd/WylV6ikA==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.2.tgz", + "integrity": "sha512-+GnYBmpjldD3XQd+HMejo+0gJGwYIOfFeoBQv32xF/RUIvccUz20/V6Otdv+57NE70D5pa8W/jVGDoGq0oON4A==", "cpu": [ "ia32" ], @@ -1418,10 +1418,24 @@ "win32" ] }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.2.tgz", + "integrity": "sha512-ApXFKluSB6kDQkAqZOKXBjiaqdF1BlKi+/eqnYe9Ee7U2K3pUDKsIyr8EYm/QDHTJIM+4X+lI0gJc3TTRhd+dA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.50.2.tgz", - "integrity": "sha512-APwKy6YUhvZaEoHyM+9xqmTpviEI+9eL7LoCH+aLcvWYHJ663qG5zx7WzWZY+a9qkg5JtzcMyJ9z0WtQBMDmgA==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.2.tgz", + "integrity": "sha512-ARz+Bs8kY6FtitYM96PqPEVvPXqEZmPZsSkXvyX19YzDqkCaIlhCieLLMI5hxO9SRZ2XtCtm8wxhy0iJ2jxNfw==", "cpu": [ "x64" ], @@ -1467,9 +1481,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.18.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.4.tgz", - "integrity": "sha512-UJdblFqXymSBhmZf96BnbisoFIr8ooiiBRMolQgg77Ea+VM37jXw76C2LQr9n8wm9+i/OvlUlW6xSvqwzwqznw==", + "version": "22.18.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.6.tgz", + "integrity": "sha512-r8uszLPpeIWbNKtvWRt/DbVi5zbqZyj1PTmhRMqBMvDnaz1QpmSKujUtJLrqGZeoM8v72MfYggDceY4K1itzWQ==", "devOptional": true, "license": "MIT", "dependencies": { @@ -1541,9 +1555,9 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250915.1", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250915.1.tgz", - "integrity": "sha512-YtZ30l3clBJYXm1opqHHXwhAej7I4lSvzlBG7L2jcyY5ghbOUEmtwYsyrdNDAChFoZon2n0yEhF4Fy1g+S/NVA==", + "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==", "license": "MIT", "peerDependencies": { "@azure-tools/typespec-client-generator-core": ">=0.60.0 < 0.61.0 || ~0.61.0-0", @@ -3089,9 +3103,9 @@ } }, "node_modules/minizlib": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz", - "integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", "license": "MIT", "peer": true, "dependencies": { @@ -3619,9 +3633,9 @@ } }, "node_modules/rollup": { - "version": "4.50.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.2.tgz", - "integrity": "sha512-BgLRGy7tNS9H66aIMASq1qSYbAAJV6Z6WR4QYTvj5FgF15rZ/ympT1uixHXwzbZUBDbkvqUI1KR0fH1FhMaQ9w==", + "version": "4.52.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.2.tgz", + "integrity": "sha512-I25/2QgoROE1vYV+NQ1En9T9UFB9Cmfm2CJ83zZOlaDpvz29wGQSZXWKw7MiNXau7wYgB/T9fVIdIuEQ+KbiiA==", "dev": true, "license": "MIT", "dependencies": { @@ -3635,27 +3649,28 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.50.2", - "@rollup/rollup-android-arm64": "4.50.2", - "@rollup/rollup-darwin-arm64": "4.50.2", - "@rollup/rollup-darwin-x64": "4.50.2", - "@rollup/rollup-freebsd-arm64": "4.50.2", - "@rollup/rollup-freebsd-x64": "4.50.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.50.2", - "@rollup/rollup-linux-arm-musleabihf": "4.50.2", - "@rollup/rollup-linux-arm64-gnu": "4.50.2", - "@rollup/rollup-linux-arm64-musl": "4.50.2", - "@rollup/rollup-linux-loong64-gnu": "4.50.2", - "@rollup/rollup-linux-ppc64-gnu": "4.50.2", - "@rollup/rollup-linux-riscv64-gnu": "4.50.2", - "@rollup/rollup-linux-riscv64-musl": "4.50.2", - "@rollup/rollup-linux-s390x-gnu": "4.50.2", - "@rollup/rollup-linux-x64-gnu": "4.50.2", - "@rollup/rollup-linux-x64-musl": "4.50.2", - "@rollup/rollup-openharmony-arm64": "4.50.2", - "@rollup/rollup-win32-arm64-msvc": "4.50.2", - "@rollup/rollup-win32-ia32-msvc": "4.50.2", - "@rollup/rollup-win32-x64-msvc": "4.50.2", + "@rollup/rollup-android-arm-eabi": "4.52.2", + "@rollup/rollup-android-arm64": "4.52.2", + "@rollup/rollup-darwin-arm64": "4.52.2", + "@rollup/rollup-darwin-x64": "4.52.2", + "@rollup/rollup-freebsd-arm64": "4.52.2", + "@rollup/rollup-freebsd-x64": "4.52.2", + "@rollup/rollup-linux-arm-gnueabihf": "4.52.2", + "@rollup/rollup-linux-arm-musleabihf": "4.52.2", + "@rollup/rollup-linux-arm64-gnu": "4.52.2", + "@rollup/rollup-linux-arm64-musl": "4.52.2", + "@rollup/rollup-linux-loong64-gnu": "4.52.2", + "@rollup/rollup-linux-ppc64-gnu": "4.52.2", + "@rollup/rollup-linux-riscv64-gnu": "4.52.2", + "@rollup/rollup-linux-riscv64-musl": "4.52.2", + "@rollup/rollup-linux-s390x-gnu": "4.52.2", + "@rollup/rollup-linux-x64-gnu": "4.52.2", + "@rollup/rollup-linux-x64-musl": "4.52.2", + "@rollup/rollup-openharmony-arm64": "4.52.2", + "@rollup/rollup-win32-arm64-msvc": "4.52.2", + "@rollup/rollup-win32-ia32-msvc": "4.52.2", + "@rollup/rollup-win32-x64-gnu": "4.52.2", + "@rollup/rollup-win32-x64-msvc": "4.52.2", "fsevents": "~2.3.2" } }, @@ -3912,39 +3927,22 @@ } }, "node_modules/tar": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", - "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", + "version": "7.5.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz", + "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==", "license": "ISC", "peer": true, "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", "minipass": "^7.1.2", - "minizlib": "^3.0.1", - "mkdirp": "^3.0.1", + "minizlib": "^3.1.0", "yallist": "^5.0.0" }, "engines": { "node": ">=18" } }, - "node_modules/tar/node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "license": "MIT", - "peer": true, - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/temporal-polyfill": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-0.3.0.tgz", diff --git a/src/Generated/Models/Assistants/Assistant.Serialization.cs b/src/Generated/Models/Assistants/Assistant.Serialization.cs index eed6ffb4e..fe1170627 100644 --- a/src/Generated/Models/Assistants/Assistant.Serialization.cs +++ b/src/Generated/Models/Assistants/Assistant.Serialization.cs @@ -370,7 +370,8 @@ protected virtual Assistant PersistableModelCreateCore(BinaryData data, ModelRea public static explicit operator Assistant(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 2efa5e531..66e9630f3 100644 --- a/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs +++ b/src/Generated/Models/Assistants/AssistantDeletionResult.Serialization.cs @@ -150,7 +150,8 @@ protected virtual AssistantDeletionResult PersistableModelCreateCore(BinaryData public static explicit operator AssistantDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 e6dac8763..b2602c8e7 100644 --- a/src/Generated/Models/Assistants/AssistantThread.Serialization.cs +++ b/src/Generated/Models/Assistants/AssistantThread.Serialization.cs @@ -219,7 +219,8 @@ protected virtual AssistantThread PersistableModelCreateCore(BinaryData data, Mo public static explicit operator AssistantThread(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeAssistantThread(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/CodeInterpreterToolDefinition.Serialization.cs b/src/Generated/Models/Assistants/CodeInterpreterToolDefinition.Serialization.cs index adc429105..c27a8bc43 100644 --- a/src/Generated/Models/Assistants/CodeInterpreterToolDefinition.Serialization.cs +++ b/src/Generated/Models/Assistants/CodeInterpreterToolDefinition.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - public partial class CodeInterpreterToolDefinition : IJsonModel + public partial class CodeInterpreterToolDefinition : ToolDefinition, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Assistants/FileSearchToolDefinition.Serialization.cs b/src/Generated/Models/Assistants/FileSearchToolDefinition.Serialization.cs index a17bb78bf..4e373396b 100644 --- a/src/Generated/Models/Assistants/FileSearchToolDefinition.Serialization.cs +++ b/src/Generated/Models/Assistants/FileSearchToolDefinition.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - public partial class FileSearchToolDefinition : IJsonModel + public partial class FileSearchToolDefinition : ToolDefinition, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Assistants/FunctionToolDefinition.Serialization.cs b/src/Generated/Models/Assistants/FunctionToolDefinition.Serialization.cs index 5a73f9241..1fd6d27b3 100644 --- a/src/Generated/Models/Assistants/FunctionToolDefinition.Serialization.cs +++ b/src/Generated/Models/Assistants/FunctionToolDefinition.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - public partial class FunctionToolDefinition : IJsonModel + public partial class FunctionToolDefinition : ToolDefinition, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonObject.Serialization.cs b/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonObject.Serialization.cs index 109e29653..dbc234ff6 100644 --- a/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonObject.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Assistants { - internal partial class InternalDotNetAssistantResponseFormatJsonObject : IJsonModel + internal partial class InternalDotNetAssistantResponseFormatJsonObject : AssistantResponseFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonSchema.Serialization.cs b/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonSchema.Serialization.cs index 9158f0c5f..feffd4431 100644 --- a/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonSchema.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatJsonSchema.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Assistants { - internal partial class InternalDotNetAssistantResponseFormatJsonSchema : IJsonModel + internal partial class InternalDotNetAssistantResponseFormatJsonSchema : AssistantResponseFormat, IJsonModel { internal InternalDotNetAssistantResponseFormatJsonSchema() : this(InternalResponseFormatType.JsonSchema, null, null) { diff --git a/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatText.Serialization.cs b/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatText.Serialization.cs index 50ca8e74c..348939d31 100644 --- a/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatText.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalDotNetAssistantResponseFormatText.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Assistants { - internal partial class InternalDotNetAssistantResponseFormatText : IJsonModel + internal partial class InternalDotNetAssistantResponseFormatText : AssistantResponseFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs b/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs index dd0e50630..d53cbb4b9 100644 --- a/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListAssistantsResponse.Serialization.cs @@ -189,7 +189,8 @@ protected virtual InternalListAssistantsResponse PersistableModelCreateCore(Bina public static explicit operator InternalListAssistantsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 a4ce553b5..81f371dfd 100644 --- a/src/Generated/Models/Assistants/InternalListMessagesResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListMessagesResponse.Serialization.cs @@ -189,7 +189,8 @@ protected virtual InternalListMessagesResponse PersistableModelCreateCore(Binary public static explicit operator InternalListMessagesResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 739661052..990499505 100644 --- a/src/Generated/Models/Assistants/InternalListRunStepsResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListRunStepsResponse.Serialization.cs @@ -189,7 +189,8 @@ protected virtual InternalListRunStepsResponse PersistableModelCreateCore(Binary public static explicit operator InternalListRunStepsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 6abb47d79..48780244e 100644 --- a/src/Generated/Models/Assistants/InternalListRunsResponse.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalListRunsResponse.Serialization.cs @@ -189,7 +189,8 @@ protected virtual InternalListRunsResponse PersistableModelCreateCore(BinaryData public static explicit operator InternalListRunsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalListRunsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/InternalMessageContentImageFileObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageContentImageFileObject.Serialization.cs index 2402633fb..27f107307 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentImageFileObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentImageFileObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageContentImageFileObject : IJsonModel + internal partial class InternalMessageContentImageFileObject : MessageContent, IJsonModel { internal InternalMessageContentImageFileObject() : this(InternalMessageContentType.ImageFile, null, null) { diff --git a/src/Generated/Models/Assistants/InternalMessageContentImageUrlObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageContentImageUrlObject.Serialization.cs index 4d9c28d29..2e6042915 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentImageUrlObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentImageUrlObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageContentImageUrlObject : IJsonModel + internal partial class InternalMessageContentImageUrlObject : MessageContent, IJsonModel { internal InternalMessageContentImageUrlObject() : this(InternalMessageContentType.ImageUrl, null, null) { diff --git a/src/Generated/Models/Assistants/InternalMessageContentRefusalObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageContentRefusalObject.Serialization.cs index 91d54e197..22762db37 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentRefusalObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentRefusalObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageContentRefusalObject : IJsonModel + internal partial class InternalMessageContentRefusalObject : MessageContent, IJsonModel { internal InternalMessageContentRefusalObject() : this(InternalMessageContentType.Refusal, null, null) { diff --git a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFileCitationObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFileCitationObject.Serialization.cs index fd1d30361..6c8fe0660 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFileCitationObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFileCitationObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageContentTextAnnotationsFileCitationObject : IJsonModel + internal partial class InternalMessageContentTextAnnotationsFileCitationObject : InternalMessageContentTextObjectAnnotation, IJsonModel { internal InternalMessageContentTextAnnotationsFileCitationObject() : this(InternalMessageContentTextAnnotationType.FileCitation, null, null, null, default, default) { diff --git a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFilePathObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFilePathObject.Serialization.cs index 83ffc41da..9fa7806b8 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFilePathObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationsFilePathObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageContentTextAnnotationsFilePathObject : IJsonModel + internal partial class InternalMessageContentTextAnnotationsFilePathObject : InternalMessageContentTextObjectAnnotation, IJsonModel { internal InternalMessageContentTextAnnotationsFilePathObject() : this(InternalMessageContentTextAnnotationType.FilePath, null, null, null, default, default) { diff --git a/src/Generated/Models/Assistants/InternalMessageContentTextObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageContentTextObject.Serialization.cs index 7af8de49f..380e08340 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentTextObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentTextObject.Serialization.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageContentTextObject : IJsonModel + internal partial class InternalMessageContentTextObject : MessageContent, IJsonModel { internal InternalMessageContentTextObject() : this(InternalMessageContentType.Text, null, null) { diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObject.Serialization.cs index 55c637efc..31e8b999a 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageDeltaContentImageFileObject : IJsonModel + internal partial class InternalMessageDeltaContentImageFileObject : InternalMessageDeltaContent, IJsonModel { internal InternalMessageDeltaContentImageFileObject() : this(InternalMessageContentType.ImageFile, null, default, null) { diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObject.Serialization.cs index 1e6e61f0d..0774e883e 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageDeltaContentImageUrlObject : IJsonModel + internal partial class InternalMessageDeltaContentImageUrlObject : InternalMessageDeltaContent, IJsonModel { internal InternalMessageDeltaContentImageUrlObject() : this(InternalMessageContentType.ImageUrl, null, default, null) { diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentRefusalObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentRefusalObject.Serialization.cs index f88c17b7f..2688e23c6 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentRefusalObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentRefusalObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageDeltaContentRefusalObject : IJsonModel + internal partial class InternalMessageDeltaContentRefusalObject : InternalMessageDeltaContent, IJsonModel { internal InternalMessageDeltaContentRefusalObject() : this(InternalMessageContentType.Refusal, null, default, null) { diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFileCitationObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFileCitationObject.Serialization.cs index 143c5628b..e608b001c 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFileCitationObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFileCitationObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageDeltaContentTextAnnotationsFileCitationObject : IJsonModel + internal partial class InternalMessageDeltaContentTextAnnotationsFileCitationObject : InternalMessageDeltaTextContentAnnotation, IJsonModel { internal InternalMessageDeltaContentTextAnnotationsFileCitationObject() : this(InternalMessageContentTextAnnotationType.FileCitation, null, default, null, null, default, default) { diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFilePathObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFilePathObject.Serialization.cs index 4a47dc8f3..55b6f92ab 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFilePathObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentTextAnnotationsFilePathObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageDeltaContentTextAnnotationsFilePathObject : IJsonModel + internal partial class InternalMessageDeltaContentTextAnnotationsFilePathObject : InternalMessageDeltaTextContentAnnotation, IJsonModel { internal InternalMessageDeltaContentTextAnnotationsFilePathObject() : this(InternalMessageContentTextAnnotationType.FilePath, null, default, null, null, default, default) { diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentTextObject.Serialization.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentTextObject.Serialization.cs index 1c51bb96d..478e26d76 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentTextObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentTextObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalMessageDeltaContentTextObject : IJsonModel + internal partial class InternalMessageDeltaContentTextObject : InternalMessageDeltaContent, IJsonModel { internal InternalMessageDeltaContentTextObject() : this(InternalMessageContentType.Text, null, default, null) { diff --git a/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.Serialization.cs b/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.Serialization.cs index 6e21b3d4c..a873ee21b 100644 --- a/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRequiredFunctionToolCall : IJsonModel + internal partial class InternalRequiredFunctionToolCall : InternalRequiredToolCall, IJsonModel { internal InternalRequiredFunctionToolCall() { diff --git a/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.cs b/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.cs index 214934c00..ae60a2f3a 100644 --- a/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.cs +++ b/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.cs @@ -7,7 +7,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRequiredFunctionToolCall + internal partial class InternalRequiredFunctionToolCall : InternalRequiredToolCall { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/Assistants/InternalRunStepCodeInterpreterLogOutput.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepCodeInterpreterLogOutput.Serialization.cs index 573cf963d..e17a0ce6d 100644 --- a/src/Generated/Models/Assistants/InternalRunStepCodeInterpreterLogOutput.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepCodeInterpreterLogOutput.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepCodeInterpreterLogOutput : IJsonModel + internal partial class InternalRunStepCodeInterpreterLogOutput : RunStepCodeInterpreterOutput, IJsonModel { internal InternalRunStepCodeInterpreterLogOutput() : this(InternalRunStepDetailsCodeInterpreterOutputType.Logs, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsMessageCreationObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsMessageCreationObject.Serialization.cs index a1675a82f..3c7b98d3b 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsMessageCreationObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsMessageCreationObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDeltaStepDetailsMessageCreationObject : IJsonModel + internal partial class InternalRunStepDeltaStepDetailsMessageCreationObject : InternalRunStepDeltaStepDetails, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeObject.Serialization.cs index 393602921..74ef8f4b3 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDeltaStepDetailsToolCallsCodeObject : IJsonModel + internal partial class InternalRunStepDeltaStepDetailsToolCallsCodeObject : InternalRunStepDeltaStepDetailsToolCallsObjectToolCallsObject, IJsonModel { internal InternalRunStepDeltaStepDetailsToolCallsCodeObject() : this(RunStepToolCallKind.CodeInterpreter, null, default, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject.Serialization.cs index 36d3ae67f..902cb2955 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject : IJsonModel + internal partial class InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject : RunStepUpdateCodeInterpreterOutput, IJsonModel { internal InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject() : this(InternalRunStepDetailsCodeInterpreterOutputType.Image, null, default, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.Serialization.cs index ed2372a21..b0e0e55c8 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject : IJsonModel + internal partial class InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject : RunStepUpdateCodeInterpreterOutput, IJsonModel { internal InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject() : this(InternalRunStepDetailsCodeInterpreterOutputType.Logs, null, default, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObject.Serialization.cs index b9ac69912..3b3008b2b 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFileSearchObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDeltaStepDetailsToolCallsFileSearchObject : IJsonModel + internal partial class InternalRunStepDeltaStepDetailsToolCallsFileSearchObject : InternalRunStepDeltaStepDetailsToolCallsObjectToolCallsObject, IJsonModel { internal InternalRunStepDeltaStepDetailsToolCallsFileSearchObject() : this(RunStepToolCallKind.FileSearch, null, default, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFunctionObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFunctionObject.Serialization.cs index 874131bfb..627621700 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFunctionObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsFunctionObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDeltaStepDetailsToolCallsFunctionObject : IJsonModel + internal partial class InternalRunStepDeltaStepDetailsToolCallsFunctionObject : InternalRunStepDeltaStepDetailsToolCallsObjectToolCallsObject, IJsonModel { internal InternalRunStepDeltaStepDetailsToolCallsFunctionObject() : this(RunStepToolCallKind.Function, null, default, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsObject.Serialization.cs index 5172bd52d..a638ae3da 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDeltaStepDetailsToolCallsObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDeltaStepDetailsToolCallsObject : IJsonModel + internal partial class InternalRunStepDeltaStepDetailsToolCallsObject : InternalRunStepDeltaStepDetails, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsMessageCreationObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsMessageCreationObject.Serialization.cs index 83b2a9d2c..078c12ba7 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsMessageCreationObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsMessageCreationObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDetailsMessageCreationObject : IJsonModel + internal partial class InternalRunStepDetailsMessageCreationObject : RunStepDetails, IJsonModel { internal InternalRunStepDetailsMessageCreationObject() : this(InternalRunStepDetailsType.MessageCreation, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeObject.Serialization.cs index bfef7bdfb..4697e07ca 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDetailsToolCallsCodeObject : IJsonModel + internal partial class InternalRunStepDetailsToolCallsCodeObject : RunStepToolCall, IJsonModel { internal InternalRunStepDetailsToolCallsCodeObject() : this(RunStepToolCallKind.CodeInterpreter, null, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeOutputImageObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeOutputImageObject.Serialization.cs index 3c86a9879..f11f14298 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeOutputImageObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsCodeOutputImageObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDetailsToolCallsCodeOutputImageObject : IJsonModel + internal partial class InternalRunStepDetailsToolCallsCodeOutputImageObject : RunStepCodeInterpreterOutput, IJsonModel { internal InternalRunStepDetailsToolCallsCodeOutputImageObject() : this(InternalRunStepDetailsCodeInterpreterOutputType.Image, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObject.Serialization.cs index 5ed260a4b..da21dec20 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFileSearchObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDetailsToolCallsFileSearchObject : IJsonModel + internal partial class InternalRunStepDetailsToolCallsFileSearchObject : RunStepToolCall, IJsonModel { internal InternalRunStepDetailsToolCallsFileSearchObject() : this(RunStepToolCallKind.FileSearch, null, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFunctionObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFunctionObject.Serialization.cs index e77346ae7..50f8269c9 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFunctionObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsFunctionObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDetailsToolCallsFunctionObject : IJsonModel + internal partial class InternalRunStepDetailsToolCallsFunctionObject : RunStepToolCall, IJsonModel { internal InternalRunStepDetailsToolCallsFunctionObject() : this(RunStepToolCallKind.Function, null, null, null) { diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsObject.Serialization.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsObject.Serialization.cs index 966581290..31149a983 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsObject.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsToolCallsObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalRunStepDetailsToolCallsObject : IJsonModel + internal partial class InternalRunStepDetailsToolCallsObject : RunStepDetails, IJsonModel { internal InternalRunStepDetailsToolCallsObject() : this(InternalRunStepDetailsType.ToolCalls, null, null) { diff --git a/src/Generated/Models/Assistants/InternalUnknownDotNetAssistantResponseFormat.Serialization.cs b/src/Generated/Models/Assistants/InternalUnknownDotNetAssistantResponseFormat.Serialization.cs index 81ed8a8ee..b9f3eefa3 100644 --- a/src/Generated/Models/Assistants/InternalUnknownDotNetAssistantResponseFormat.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalUnknownDotNetAssistantResponseFormat.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Assistants { - internal partial class InternalUnknownDotNetAssistantResponseFormat : IJsonModel + internal partial class InternalUnknownDotNetAssistantResponseFormat : AssistantResponseFormat, IJsonModel { internal InternalUnknownDotNetAssistantResponseFormat() : this(default, null) { diff --git a/src/Generated/Models/Assistants/InternalUnknownMessageContent.Serialization.cs b/src/Generated/Models/Assistants/InternalUnknownMessageContent.Serialization.cs index 7d304a937..dbc581f70 100644 --- a/src/Generated/Models/Assistants/InternalUnknownMessageContent.Serialization.cs +++ b/src/Generated/Models/Assistants/InternalUnknownMessageContent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class InternalUnknownMessageContent : IJsonModel + internal partial class InternalUnknownMessageContent : MessageContent, IJsonModel { internal InternalUnknownMessageContent() : this(default, null) { diff --git a/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs b/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs index 9e50c7fff..7985a83c7 100644 --- a/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs +++ b/src/Generated/Models/Assistants/MessageDeletionResult.Serialization.cs @@ -150,7 +150,8 @@ protected virtual MessageDeletionResult PersistableModelCreateCore(BinaryData da public static explicit operator MessageDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 da33665b9..b89385556 100644 --- a/src/Generated/Models/Assistants/RunStep.Serialization.cs +++ b/src/Generated/Models/Assistants/RunStep.Serialization.cs @@ -411,7 +411,8 @@ protected virtual RunStep PersistableModelCreateCore(BinaryData data, ModelReade public static explicit operator RunStep(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 e8bbb009c..274ba60be 100644 --- a/src/Generated/Models/Assistants/ThreadDeletionResult.Serialization.cs +++ b/src/Generated/Models/Assistants/ThreadDeletionResult.Serialization.cs @@ -150,7 +150,8 @@ protected virtual ThreadDeletionResult PersistableModelCreateCore(BinaryData dat public static explicit operator ThreadDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 0d19dc9b2..0d0e7128a 100644 --- a/src/Generated/Models/Assistants/ThreadMessage.Serialization.cs +++ b/src/Generated/Models/Assistants/ThreadMessage.Serialization.cs @@ -408,7 +408,8 @@ protected virtual ThreadMessage PersistableModelCreateCore(BinaryData data, Mode public static explicit operator ThreadMessage(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 30d9d99b0..ce0f31faf 100644 --- a/src/Generated/Models/Assistants/ThreadRun.Serialization.cs +++ b/src/Generated/Models/Assistants/ThreadRun.Serialization.cs @@ -660,7 +660,8 @@ protected virtual ThreadRun PersistableModelCreateCore(BinaryData data, ModelRea public static explicit operator ThreadRun(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeThreadRun(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Assistants/UnknownAssistantToolDefinition.Serialization.cs b/src/Generated/Models/Assistants/UnknownAssistantToolDefinition.Serialization.cs index 8644bdcbb..8fc0b61fb 100644 --- a/src/Generated/Models/Assistants/UnknownAssistantToolDefinition.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownAssistantToolDefinition.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownAssistantToolDefinition : IJsonModel + internal partial class UnknownAssistantToolDefinition : ToolDefinition, IJsonModel { internal UnknownAssistantToolDefinition() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownMessageContentTextObjectAnnotation.Serialization.cs b/src/Generated/Models/Assistants/UnknownMessageContentTextObjectAnnotation.Serialization.cs index 84467985c..b5d3565d8 100644 --- a/src/Generated/Models/Assistants/UnknownMessageContentTextObjectAnnotation.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownMessageContentTextObjectAnnotation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownMessageContentTextObjectAnnotation : IJsonModel + internal partial class UnknownMessageContentTextObjectAnnotation : InternalMessageContentTextObjectAnnotation, IJsonModel { internal UnknownMessageContentTextObjectAnnotation() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownMessageDeltaContent.Serialization.cs b/src/Generated/Models/Assistants/UnknownMessageDeltaContent.Serialization.cs index 96754e5d9..ea471a777 100644 --- a/src/Generated/Models/Assistants/UnknownMessageDeltaContent.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownMessageDeltaContent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownMessageDeltaContent : IJsonModel + internal partial class UnknownMessageDeltaContent : InternalMessageDeltaContent, IJsonModel { internal UnknownMessageDeltaContent() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownMessageDeltaTextContentAnnotation.Serialization.cs b/src/Generated/Models/Assistants/UnknownMessageDeltaTextContentAnnotation.Serialization.cs index 3ea25fef5..6000573a8 100644 --- a/src/Generated/Models/Assistants/UnknownMessageDeltaTextContentAnnotation.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownMessageDeltaTextContentAnnotation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownMessageDeltaTextContentAnnotation : IJsonModel + internal partial class UnknownMessageDeltaTextContentAnnotation : InternalMessageDeltaTextContentAnnotation, IJsonModel { internal UnknownMessageDeltaTextContentAnnotation() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetails.Serialization.cs b/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetails.Serialization.cs index e5c0cb392..9f03ae03c 100644 --- a/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetails.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetails.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownRunStepDeltaStepDetails : IJsonModel + internal partial class UnknownRunStepDeltaStepDetails : InternalRunStepDeltaStepDetails, IJsonModel { internal UnknownRunStepDeltaStepDetails() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs b/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs index a16c68337..0d1d6855a 100644 --- a/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject : IJsonModel + internal partial class UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject : RunStepUpdateCodeInterpreterOutput, IJsonModel { internal UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject.Serialization.cs b/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject.Serialization.cs index eec900ecc..06033d811 100644 --- a/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject : IJsonModel + internal partial class UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject : InternalRunStepDeltaStepDetailsToolCallsObjectToolCallsObject, IJsonModel { internal UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs b/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs index dcbb3ff30..b1abcd32c 100644 --- a/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject : IJsonModel + internal partial class UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject : RunStepCodeInterpreterOutput, IJsonModel { internal UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject() : this(default, null) { diff --git a/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsObjectToolCallsObject.Serialization.cs b/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsObjectToolCallsObject.Serialization.cs index 7fd383e7a..b0df77e73 100644 --- a/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsObjectToolCallsObject.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownRunStepDetailsToolCallsObjectToolCallsObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownRunStepDetailsToolCallsObjectToolCallsObject : IJsonModel + internal partial class UnknownRunStepDetailsToolCallsObjectToolCallsObject : RunStepToolCall, IJsonModel { internal UnknownRunStepDetailsToolCallsObjectToolCallsObject() : this(default, null, null) { diff --git a/src/Generated/Models/Assistants/UnknownRunStepObjectStepDetails.Serialization.cs b/src/Generated/Models/Assistants/UnknownRunStepObjectStepDetails.Serialization.cs index 387e364b4..3f95052f2 100644 --- a/src/Generated/Models/Assistants/UnknownRunStepObjectStepDetails.Serialization.cs +++ b/src/Generated/Models/Assistants/UnknownRunStepObjectStepDetails.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { - internal partial class UnknownRunStepObjectStepDetails : IJsonModel + internal partial class UnknownRunStepObjectStepDetails : RunStepDetails, IJsonModel { internal UnknownRunStepObjectStepDetails() : this(default, null) { diff --git a/src/Generated/Models/Audio/InternalUnknownCreateTranscriptionResponseStreamEvent.Serialization.cs b/src/Generated/Models/Audio/InternalUnknownCreateTranscriptionResponseStreamEvent.Serialization.cs index 7a35b71e6..40f9488f8 100644 --- a/src/Generated/Models/Audio/InternalUnknownCreateTranscriptionResponseStreamEvent.Serialization.cs +++ b/src/Generated/Models/Audio/InternalUnknownCreateTranscriptionResponseStreamEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Audio { - internal partial class InternalUnknownCreateTranscriptionResponseStreamEvent : IJsonModel + internal partial class InternalUnknownCreateTranscriptionResponseStreamEvent : StreamingAudioTranscriptionUpdate, IJsonModel { internal InternalUnknownCreateTranscriptionResponseStreamEvent() : this(default, null) { diff --git a/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDeltaUpdate.Serialization.cs b/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDeltaUpdate.Serialization.cs index 9ec5142d5..3d7c5ed77 100644 --- a/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDeltaUpdate.Serialization.cs +++ b/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDeltaUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Audio { - public partial class StreamingAudioTranscriptionTextDeltaUpdate : IJsonModel + public partial class StreamingAudioTranscriptionTextDeltaUpdate : StreamingAudioTranscriptionUpdate, IJsonModel { internal StreamingAudioTranscriptionTextDeltaUpdate() : this(StreamingAudioTranscriptionUpdateKind.TranscriptTextDelta, null, null, null) { diff --git a/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDoneUpdate.Serialization.cs b/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDoneUpdate.Serialization.cs index bcd178e6b..72a43e3a5 100644 --- a/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Audio/StreamingAudioTranscriptionTextDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Audio { - public partial class StreamingAudioTranscriptionTextDoneUpdate : IJsonModel + public partial class StreamingAudioTranscriptionTextDoneUpdate : StreamingAudioTranscriptionUpdate, IJsonModel { internal StreamingAudioTranscriptionTextDoneUpdate() : this(StreamingAudioTranscriptionUpdateKind.TranscriptTextDone, null, null, null) { diff --git a/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs b/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs index 7a87b100f..9c6d8f885 100644 --- a/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs +++ b/src/Generated/Models/Batch/InternalBatchJob.Serialization.cs @@ -433,7 +433,8 @@ protected virtual InternalBatchJob PersistableModelCreateCore(BinaryData data, M public static explicit operator InternalBatchJob(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 4bc86c18f..a5a3ad90e 100644 --- a/src/Generated/Models/Batch/InternalListBatchesResponse.Serialization.cs +++ b/src/Generated/Models/Batch/InternalListBatchesResponse.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalListBatchesResponse PersistableModelCreateCore(BinaryD public static explicit operator InternalListBatchesResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalListBatchesResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Chat/AssistantChatMessage.Serialization.cs b/src/Generated/Models/Chat/AssistantChatMessage.Serialization.cs index 7086c5853..87e4390d2 100644 --- a/src/Generated/Models/Chat/AssistantChatMessage.Serialization.cs +++ b/src/Generated/Models/Chat/AssistantChatMessage.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - public partial class AssistantChatMessage : IJsonModel + public partial class AssistantChatMessage : ChatMessage, IJsonModel { [Experimental("OPENAI001")] protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) diff --git a/src/Generated/Models/Chat/ChatCompletion.Serialization.cs b/src/Generated/Models/Chat/ChatCompletion.Serialization.cs index 0f65e0458..bd794d07c 100644 --- a/src/Generated/Models/Chat/ChatCompletion.Serialization.cs +++ b/src/Generated/Models/Chat/ChatCompletion.Serialization.cs @@ -238,7 +238,8 @@ protected virtual ChatCompletion PersistableModelCreateCore(BinaryData data, Mod public static explicit operator ChatCompletion(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 57751c200..70c9c5db6 100644 --- a/src/Generated/Models/Chat/ChatCompletionDeletionResult.Serialization.cs +++ b/src/Generated/Models/Chat/ChatCompletionDeletionResult.Serialization.cs @@ -150,7 +150,8 @@ protected virtual ChatCompletionDeletionResult PersistableModelCreateCore(Binary public static explicit operator ChatCompletionDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeChatCompletionDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Chat/DeveloperChatMessage.Serialization.cs b/src/Generated/Models/Chat/DeveloperChatMessage.Serialization.cs index e2c5610fa..dd7032233 100644 --- a/src/Generated/Models/Chat/DeveloperChatMessage.Serialization.cs +++ b/src/Generated/Models/Chat/DeveloperChatMessage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - public partial class DeveloperChatMessage : IJsonModel + public partial class DeveloperChatMessage : ChatMessage, IJsonModel { protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Chat/FunctionChatMessage.Serialization.cs b/src/Generated/Models/Chat/FunctionChatMessage.Serialization.cs index dfbe5660f..5d871707c 100644 --- a/src/Generated/Models/Chat/FunctionChatMessage.Serialization.cs +++ b/src/Generated/Models/Chat/FunctionChatMessage.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - public partial class FunctionChatMessage : IJsonModel + public partial class FunctionChatMessage : ChatMessage, IJsonModel { internal FunctionChatMessage() : this(ChatMessageRole.Function, null, null, null) { diff --git a/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs index 3871055d7..194283854 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionList.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalChatCompletionList PersistableModelCreateCore(BinaryDa public static explicit operator InternalChatCompletionList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 0395681c5..749bac444 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionMessageList.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionMessageList.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalChatCompletionMessageList PersistableModelCreateCore(B public static explicit operator InternalChatCompletionMessageList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalChatCompletionMessageList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartAudio.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartAudio.Serialization.cs index f0f675dd9..8afeaef9f 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartAudio.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartAudio.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalChatCompletionRequestMessageContentPartAudio : IJsonModel + internal partial class InternalChatCompletionRequestMessageContentPartAudio : ChatMessageContentPart, IJsonModel { internal InternalChatCompletionRequestMessageContentPartAudio() { diff --git a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartFile.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartFile.Serialization.cs index d95bda505..fcbc02feb 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartFile.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartFile.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalChatCompletionRequestMessageContentPartFile : IJsonModel + internal partial class InternalChatCompletionRequestMessageContentPartFile : ChatMessageContentPart, IJsonModel { internal InternalChatCompletionRequestMessageContentPartFile() { diff --git a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartImage.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartImage.Serialization.cs index f7d52138f..9ecece36c 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartImage.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartImage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalChatCompletionRequestMessageContentPartImage : IJsonModel + internal partial class InternalChatCompletionRequestMessageContentPartImage : ChatMessageContentPart, IJsonModel { internal InternalChatCompletionRequestMessageContentPartImage() { diff --git a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartRefusal.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartRefusal.Serialization.cs index 390a377a1..be78e871b 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartRefusal.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartRefusal.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalChatCompletionRequestMessageContentPartRefusal : IJsonModel + internal partial class InternalChatCompletionRequestMessageContentPartRefusal : ChatMessageContentPart, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartText.Serialization.cs b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartText.Serialization.cs index 79f0947be..fe9f9bcb5 100644 --- a/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartText.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatCompletionRequestMessageContentPartText.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalChatCompletionRequestMessageContentPartText : IJsonModel + internal partial class InternalChatCompletionRequestMessageContentPartText : ChatMessageContentPart, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Chat/InternalChatOutputPredictionContent.Serialization.cs b/src/Generated/Models/Chat/InternalChatOutputPredictionContent.Serialization.cs index d0bb1d047..3f570b118 100644 --- a/src/Generated/Models/Chat/InternalChatOutputPredictionContent.Serialization.cs +++ b/src/Generated/Models/Chat/InternalChatOutputPredictionContent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalChatOutputPredictionContent : IJsonModel + internal partial class InternalChatOutputPredictionContent : ChatOutputPrediction, IJsonModel { internal InternalChatOutputPredictionContent() : this(InternalChatOutputPredictionKind.StaticContent, null, null) { diff --git a/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonObject.Serialization.cs b/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonObject.Serialization.cs index 8c813a9d2..acc18bd26 100644 --- a/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonObject.Serialization.cs +++ b/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonObject.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - internal partial class InternalDotNetChatResponseFormatJsonObject : IJsonModel + internal partial class InternalDotNetChatResponseFormatJsonObject : ChatResponseFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonSchema.Serialization.cs b/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonSchema.Serialization.cs index 66c0523ca..3d2793e44 100644 --- a/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonSchema.Serialization.cs +++ b/src/Generated/Models/Chat/InternalDotNetChatResponseFormatJsonSchema.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - internal partial class InternalDotNetChatResponseFormatJsonSchema : IJsonModel + internal partial class InternalDotNetChatResponseFormatJsonSchema : ChatResponseFormat, IJsonModel { internal InternalDotNetChatResponseFormatJsonSchema() : this(InternalResponseFormatType.JsonSchema, null, null) { diff --git a/src/Generated/Models/Chat/InternalDotNetChatResponseFormatText.Serialization.cs b/src/Generated/Models/Chat/InternalDotNetChatResponseFormatText.Serialization.cs index b7bbbe7be..2137e0f99 100644 --- a/src/Generated/Models/Chat/InternalDotNetChatResponseFormatText.Serialization.cs +++ b/src/Generated/Models/Chat/InternalDotNetChatResponseFormatText.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - internal partial class InternalDotNetChatResponseFormatText : IJsonModel + internal partial class InternalDotNetChatResponseFormatText : ChatResponseFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Chat/InternalUnknownChatCompletionRequestMessageContentPart.Serialization.cs b/src/Generated/Models/Chat/InternalUnknownChatCompletionRequestMessageContentPart.Serialization.cs index 34551c311..f6f27f3ca 100644 --- a/src/Generated/Models/Chat/InternalUnknownChatCompletionRequestMessageContentPart.Serialization.cs +++ b/src/Generated/Models/Chat/InternalUnknownChatCompletionRequestMessageContentPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalUnknownChatCompletionRequestMessageContentPart : IJsonModel + internal partial class InternalUnknownChatCompletionRequestMessageContentPart : ChatMessageContentPart, IJsonModel { internal InternalUnknownChatCompletionRequestMessageContentPart() { diff --git a/src/Generated/Models/Chat/InternalUnknownChatMessage.Serialization.cs b/src/Generated/Models/Chat/InternalUnknownChatMessage.Serialization.cs index d7f53ad07..7da2a3ab0 100644 --- a/src/Generated/Models/Chat/InternalUnknownChatMessage.Serialization.cs +++ b/src/Generated/Models/Chat/InternalUnknownChatMessage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalUnknownChatMessage : IJsonModel + internal partial class InternalUnknownChatMessage : ChatMessage, IJsonModel { internal InternalUnknownChatMessage() : this(default, null, null) { diff --git a/src/Generated/Models/Chat/InternalUnknownChatOutputPrediction.Serialization.cs b/src/Generated/Models/Chat/InternalUnknownChatOutputPrediction.Serialization.cs index 035a84676..958965f63 100644 --- a/src/Generated/Models/Chat/InternalUnknownChatOutputPrediction.Serialization.cs +++ b/src/Generated/Models/Chat/InternalUnknownChatOutputPrediction.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { - internal partial class InternalUnknownChatOutputPrediction : IJsonModel + internal partial class InternalUnknownChatOutputPrediction : ChatOutputPrediction, IJsonModel { internal InternalUnknownChatOutputPrediction() : this(default, null) { diff --git a/src/Generated/Models/Chat/InternalUnknownChatResponseFormat.Serialization.cs b/src/Generated/Models/Chat/InternalUnknownChatResponseFormat.Serialization.cs index b323a9194..21c6d4720 100644 --- a/src/Generated/Models/Chat/InternalUnknownChatResponseFormat.Serialization.cs +++ b/src/Generated/Models/Chat/InternalUnknownChatResponseFormat.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - internal partial class InternalUnknownChatResponseFormat : IJsonModel + internal partial class InternalUnknownChatResponseFormat : ChatResponseFormat, IJsonModel { internal InternalUnknownChatResponseFormat() : this(default, null) { diff --git a/src/Generated/Models/Chat/SystemChatMessage.Serialization.cs b/src/Generated/Models/Chat/SystemChatMessage.Serialization.cs index 2e0c26776..e006c7226 100644 --- a/src/Generated/Models/Chat/SystemChatMessage.Serialization.cs +++ b/src/Generated/Models/Chat/SystemChatMessage.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - public partial class SystemChatMessage : IJsonModel + public partial class SystemChatMessage : ChatMessage, IJsonModel { [Experimental("OPENAI001")] protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) diff --git a/src/Generated/Models/Chat/ToolChatMessage.Serialization.cs b/src/Generated/Models/Chat/ToolChatMessage.Serialization.cs index 45d1bc7a0..0b38a9dd2 100644 --- a/src/Generated/Models/Chat/ToolChatMessage.Serialization.cs +++ b/src/Generated/Models/Chat/ToolChatMessage.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - public partial class ToolChatMessage : IJsonModel + public partial class ToolChatMessage : ChatMessage, IJsonModel { internal ToolChatMessage() : this(ChatMessageRole.Tool, null, null, null) { diff --git a/src/Generated/Models/Chat/UserChatMessage.Serialization.cs b/src/Generated/Models/Chat/UserChatMessage.Serialization.cs index 94f0799f3..687f046cb 100644 --- a/src/Generated/Models/Chat/UserChatMessage.Serialization.cs +++ b/src/Generated/Models/Chat/UserChatMessage.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Chat { - public partial class UserChatMessage : IJsonModel + public partial class UserChatMessage : ChatMessage, IJsonModel { [Experimental("OPENAI001")] protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) diff --git a/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs b/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs index 29535ca74..beac7f62d 100644 --- a/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs +++ b/src/Generated/Models/Containers/ContainerFileResource.Serialization.cs @@ -202,7 +202,8 @@ protected virtual ContainerFileResource PersistableModelCreateCore(BinaryData da public static explicit operator ContainerFileResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 e6472d32f..f75a67d98 100644 --- a/src/Generated/Models/Containers/ContainerResource.Serialization.cs +++ b/src/Generated/Models/Containers/ContainerResource.Serialization.cs @@ -194,7 +194,8 @@ protected virtual ContainerResource PersistableModelCreateCore(BinaryData data, public static explicit operator ContainerResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 aef9b314b..67c3b55c1 100644 --- a/src/Generated/Models/Containers/DeleteContainerFileResponse.Serialization.cs +++ b/src/Generated/Models/Containers/DeleteContainerFileResponse.Serialization.cs @@ -150,7 +150,8 @@ protected virtual DeleteContainerFileResponse PersistableModelCreateCore(BinaryD public static explicit operator DeleteContainerFileResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 9f77e877c..3f40d2358 100644 --- a/src/Generated/Models/Containers/DeleteContainerResponse.Serialization.cs +++ b/src/Generated/Models/Containers/DeleteContainerResponse.Serialization.cs @@ -150,7 +150,8 @@ protected virtual DeleteContainerResponse PersistableModelCreateCore(BinaryData public static explicit operator DeleteContainerResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 f7b370c67..ce8594354 100644 --- a/src/Generated/Models/Containers/InternalContainerFileListResource.Serialization.cs +++ b/src/Generated/Models/Containers/InternalContainerFileListResource.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalContainerFileListResource PersistableModelCreateCore(B public static explicit operator InternalContainerFileListResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 b970e88e2..16e6cbaf8 100644 --- a/src/Generated/Models/Containers/InternalContainerListResource.Serialization.cs +++ b/src/Generated/Models/Containers/InternalContainerListResource.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalContainerListResource PersistableModelCreateCore(Binar public static explicit operator InternalContainerListResource(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 fd5fc1551..4a90a5ef8 100644 --- a/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs +++ b/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs @@ -5,13 +5,14 @@ using System; using System.ClientModel; using System.ClientModel.Primitives; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using OpenAI; namespace OpenAI.Embeddings { - public partial class OpenAIEmbeddingCollection : IJsonModel + public partial class OpenAIEmbeddingCollection : ReadOnlyCollection, IJsonModel { [Experimental("OPENAI001")] protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) @@ -111,7 +112,8 @@ protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(BinaryDat public static explicit operator OpenAIEmbeddingCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeOpenAIEmbeddingCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.cs b/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.cs index d0e49a974..f60a6db50 100644 --- a/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.cs +++ b/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.cs @@ -4,10 +4,11 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; namespace OpenAI.Embeddings { - public partial class OpenAIEmbeddingCollection + public partial class OpenAIEmbeddingCollection : ReadOnlyCollection { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs b/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs index bbffa3f0d..81cfd9baa 100644 --- a/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs +++ b/src/Generated/Models/Evals/InternalDeleteEvalResponse.Serialization.cs @@ -150,7 +150,8 @@ protected virtual InternalDeleteEvalResponse PersistableModelCreateCore(BinaryDa public static explicit operator InternalDeleteEvalResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 86faf0d9f..1b3f1b9b6 100644 --- a/src/Generated/Models/Evals/InternalDeleteEvalRunResponse.Serialization.cs +++ b/src/Generated/Models/Evals/InternalDeleteEvalRunResponse.Serialization.cs @@ -150,7 +150,8 @@ protected virtual InternalDeleteEvalRunResponse PersistableModelCreateCore(Binar public static explicit operator InternalDeleteEvalRunResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 f797abc57..4d7003d77 100644 --- a/src/Generated/Models/Evals/InternalEval.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEval.Serialization.cs @@ -259,7 +259,8 @@ protected virtual InternalEval PersistableModelCreateCore(BinaryData data, Model public static explicit operator InternalEval(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalEval(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalCompletionsRunDataSourceParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalCompletionsRunDataSourceParams.Serialization.cs index ba1121a28..99966fbb8 100644 --- a/src/Generated/Models/Evals/InternalEvalCompletionsRunDataSourceParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalCompletionsRunDataSourceParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalCompletionsRunDataSourceParams : IJsonModel + internal partial class InternalEvalCompletionsRunDataSourceParams : InternalEvalRunDataSourceParams, IJsonModel { internal InternalEvalCompletionsRunDataSourceParams() : this(InternalEvalRunDataSourceType.Completions, null, null, null, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigParams.Serialization.cs index f553dd925..4efc74e30 100644 --- a/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalCustomDataSourceConfigParams : IJsonModel + internal partial class InternalEvalCustomDataSourceConfigParams : InternalEvalDataSourceConfigParams, IJsonModel { internal InternalEvalCustomDataSourceConfigParams() : this(InternalEvalDataSourceConfigType.Custom, null, null, default) { diff --git a/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigResource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigResource.Serialization.cs index 40b420bdf..4d6c1321d 100644 --- a/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalCustomDataSourceConfigResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalCustomDataSourceConfigResource : IJsonModel + internal partial class InternalEvalCustomDataSourceConfigResource : InternalEvalDataSourceConfigResource, IJsonModel { internal InternalEvalCustomDataSourceConfigResource() : this(InternalEvalDataSourceConfigType.Custom, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderLabelModelParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderLabelModelParams.Serialization.cs index 6def1d092..f28aaf842 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderLabelModelParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderLabelModelParams.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderLabelModelParams : IJsonModel + internal partial class InternalEvalGraderLabelModelParams : InternalEvalGraderParams, IJsonModel { internal InternalEvalGraderLabelModelParams() : this(GraderType.LabelModel, null, null, null, null, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderLabelModelResource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderLabelModelResource.Serialization.cs index 77fdbf073..205f48d33 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderLabelModelResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderLabelModelResource.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderLabelModelResource : IJsonModel + internal partial class InternalEvalGraderLabelModelResource : InternalEvalGraderResource, IJsonModel { internal InternalEvalGraderLabelModelResource() : this(GraderType.LabelModel, null, null, null, null, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderPythonParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderPythonParams.Serialization.cs index 048aae42b..f9556209e 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderPythonParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderPythonParams.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderPythonParams : IJsonModel + internal partial class InternalEvalGraderPythonParams : InternalEvalGraderParams, IJsonModel { internal InternalEvalGraderPythonParams() : this(GraderType.Python, null, null, null, null, default) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderPythonResource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderPythonResource.Serialization.cs index d0901f081..262a312d5 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderPythonResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderPythonResource.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderPythonResource : IJsonModel + internal partial class InternalEvalGraderPythonResource : InternalEvalGraderResource, IJsonModel { internal InternalEvalGraderPythonResource() : this(GraderType.Python, null, null, null, null, default) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderScoreModelParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderScoreModelParams.Serialization.cs index 5482f048c..62974813b 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderScoreModelParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderScoreModelParams.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderScoreModelParams : IJsonModel + internal partial class InternalEvalGraderScoreModelParams : InternalEvalGraderParams, IJsonModel { internal InternalEvalGraderScoreModelParams() : this(GraderType.ScoreModel, null, null, null, null, null, null, default) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderScoreModelResource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderScoreModelResource.Serialization.cs index 4eeaaba34..5bab74a23 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderScoreModelResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderScoreModelResource.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderScoreModelResource : IJsonModel + internal partial class InternalEvalGraderScoreModelResource : InternalEvalGraderResource, IJsonModel { internal InternalEvalGraderScoreModelResource() : this(GraderType.ScoreModel, null, null, null, null, null, null, default) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderStringCheckParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderStringCheckParams.Serialization.cs index 0795b8b70..c866bc012 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderStringCheckParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderStringCheckParams.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderStringCheckParams : IJsonModel + internal partial class InternalEvalGraderStringCheckParams : InternalEvalGraderParams, IJsonModel { internal InternalEvalGraderStringCheckParams() : this(GraderType.StringCheck, null, null, null, null, default) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityParams.Serialization.cs index f7fb554bb..e70fe524e 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityParams.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderTextSimilarityParams : IJsonModel + internal partial class InternalEvalGraderTextSimilarityParams : InternalEvalGraderParams, IJsonModel { internal InternalEvalGraderTextSimilarityParams() : this(GraderType.TextSimilarity, null, null, null, null, default, default) { diff --git a/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityResource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityResource.Serialization.cs index 5ddc78224..1533fa4c5 100644 --- a/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalGraderTextSimilarityResource.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalGraderTextSimilarityResource : IJsonModel + internal partial class InternalEvalGraderTextSimilarityResource : InternalEvalGraderResource, IJsonModel { internal InternalEvalGraderTextSimilarityResource() : this(GraderType.TextSimilarity, null, null, null, null, default, default) { diff --git a/src/Generated/Models/Evals/InternalEvalItemContentInputText.Serialization.cs b/src/Generated/Models/Evals/InternalEvalItemContentInputText.Serialization.cs index 2d7ee5e43..49e22f27e 100644 --- a/src/Generated/Models/Evals/InternalEvalItemContentInputText.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalItemContentInputText.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalItemContentInputText : IJsonModel + internal partial class InternalEvalItemContentInputText : InternalEvalItemContent, IJsonModel { internal InternalEvalItemContentInputText() : this(InternalEvalItemContentType.InputText, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalItemContentOutputText.Serialization.cs b/src/Generated/Models/Evals/InternalEvalItemContentOutputText.Serialization.cs index 71c420b45..027c88b5a 100644 --- a/src/Generated/Models/Evals/InternalEvalItemContentOutputText.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalItemContentOutputText.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalItemContentOutputText : IJsonModel + internal partial class InternalEvalItemContentOutputText : InternalEvalItemContent, IJsonModel { internal InternalEvalItemContentOutputText() : this(InternalEvalItemContentType.OutputText, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalJsonlRunDataSourceParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalJsonlRunDataSourceParams.Serialization.cs index 33d90a09f..53aec40de 100644 --- a/src/Generated/Models/Evals/InternalEvalJsonlRunDataSourceParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalJsonlRunDataSourceParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalJsonlRunDataSourceParams : IJsonModel + internal partial class InternalEvalJsonlRunDataSourceParams : InternalEvalRunDataSourceParams, IJsonModel { internal InternalEvalJsonlRunDataSourceParams() : this(InternalEvalRunDataSourceType.Jsonl, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalList.Serialization.cs b/src/Generated/Models/Evals/InternalEvalList.Serialization.cs index 75418e07a..ba8d769a7 100644 --- a/src/Generated/Models/Evals/InternalEvalList.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalList.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalEvalList PersistableModelCreateCore(BinaryData data, M public static explicit operator InternalEvalList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalEvalList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigParams.Serialization.cs index b1ef4aeab..d3810aac1 100644 --- a/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalLogsDataSourceConfigParams : IJsonModel + internal partial class InternalEvalLogsDataSourceConfigParams : InternalEvalDataSourceConfigParams, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigResource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigResource.Serialization.cs index ec2724dbf..a5ba030f1 100644 --- a/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalLogsDataSourceConfigResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalLogsDataSourceConfigResource : IJsonModel + internal partial class InternalEvalLogsDataSourceConfigResource : InternalEvalDataSourceConfigResource, IJsonModel { internal InternalEvalLogsDataSourceConfigResource() : this(InternalEvalDataSourceConfigType.Logs, null, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalResponsesRunDataSourceParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalResponsesRunDataSourceParams.Serialization.cs index 8986200ba..31706c10c 100644 --- a/src/Generated/Models/Evals/InternalEvalResponsesRunDataSourceParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalResponsesRunDataSourceParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalResponsesRunDataSourceParams : IJsonModel + internal partial class InternalEvalResponsesRunDataSourceParams : InternalEvalRunDataSourceParams, IJsonModel { internal InternalEvalResponsesRunDataSourceParams() : this(InternalEvalRunDataSourceType.Responses, null, null, null, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs index 46edc28d5..f4edd11e2 100644 --- a/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRun.Serialization.cs @@ -341,7 +341,8 @@ protected virtual InternalEvalRun PersistableModelCreateCore(BinaryData data, Mo public static explicit operator InternalEvalRun(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalEvalRun(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalRunFileContentDataContentSource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunFileContentDataContentSource.Serialization.cs index 9c4968a3b..772983763 100644 --- a/src/Generated/Models/Evals/InternalEvalRunFileContentDataContentSource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunFileContentDataContentSource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalRunFileContentDataContentSource : IJsonModel + internal partial class InternalEvalRunFileContentDataContentSource : InternalEvalRunDataContentSource, IJsonModel { internal InternalEvalRunFileContentDataContentSource() : this(InternalEvalRunDataContentSourceType.FileContent, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalRunFileIdDataContentSource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunFileIdDataContentSource.Serialization.cs index c398650b1..0c373693c 100644 --- a/src/Generated/Models/Evals/InternalEvalRunFileIdDataContentSource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunFileIdDataContentSource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalRunFileIdDataContentSource : IJsonModel + internal partial class InternalEvalRunFileIdDataContentSource : InternalEvalRunDataContentSource, IJsonModel { internal InternalEvalRunFileIdDataContentSource() : this(InternalEvalRunDataContentSourceType.FileId, null, null) { diff --git a/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs index 4bfce8682..b900f81c1 100644 --- a/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunList.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalEvalRunList PersistableModelCreateCore(BinaryData data public static explicit operator InternalEvalRunList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 d2641487f..9111bb182 100644 --- a/src/Generated/Models/Evals/InternalEvalRunOutputItem.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunOutputItem.Serialization.cs @@ -320,7 +320,8 @@ protected virtual InternalEvalRunOutputItem PersistableModelCreateCore(BinaryDat public static explicit operator InternalEvalRunOutputItem(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 4ed0161b9..d15408546 100644 --- a/src/Generated/Models/Evals/InternalEvalRunOutputItemList.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunOutputItemList.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalEvalRunOutputItemList PersistableModelCreateCore(Binar public static explicit operator InternalEvalRunOutputItemList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalEvalRunOutputItemList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Evals/InternalEvalRunResponsesDataContentSource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunResponsesDataContentSource.Serialization.cs index d7a57a719..4dd61e751 100644 --- a/src/Generated/Models/Evals/InternalEvalRunResponsesDataContentSource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunResponsesDataContentSource.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalRunResponsesDataContentSource : IJsonModel + internal partial class InternalEvalRunResponsesDataContentSource : InternalEvalRunDataContentSource, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Evals/InternalEvalRunStoredCompletionsDataContentSource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalRunStoredCompletionsDataContentSource.Serialization.cs index 67cc61236..62f311347 100644 --- a/src/Generated/Models/Evals/InternalEvalRunStoredCompletionsDataContentSource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalRunStoredCompletionsDataContentSource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalRunStoredCompletionsDataContentSource : IJsonModel + internal partial class InternalEvalRunStoredCompletionsDataContentSource : InternalEvalRunDataContentSource, IJsonModel { internal InternalEvalRunStoredCompletionsDataContentSource() : this(InternalEvalRunDataContentSourceType.StoredCompletions, null, null, null, default, default, default) { diff --git a/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigParams.Serialization.cs b/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigParams.Serialization.cs index 0ab9c65e3..997015243 100644 --- a/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalStoredCompletionsDataSourceConfigParams : IJsonModel + internal partial class InternalEvalStoredCompletionsDataSourceConfigParams : InternalEvalDataSourceConfigParams, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigResource.Serialization.cs b/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigResource.Serialization.cs index d3605355a..2bb688964 100644 --- a/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalEvalStoredCompletionsDataSourceConfigResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalEvalStoredCompletionsDataSourceConfigResource : IJsonModel + internal partial class InternalEvalStoredCompletionsDataSourceConfigResource : InternalEvalDataSourceConfigResource, IJsonModel { internal InternalEvalStoredCompletionsDataSourceConfigResource() : this(InternalEvalDataSourceConfigType.StoredCompletions, null, null, null) { diff --git a/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigParams.Serialization.cs b/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigParams.Serialization.cs index 49dbc4e39..ca5a80cbd 100644 --- a/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalUnknownEvalDataSourceConfigParams : IJsonModel + internal partial class InternalUnknownEvalDataSourceConfigParams : InternalEvalDataSourceConfigParams, IJsonModel { internal InternalUnknownEvalDataSourceConfigParams() : this(default, null) { diff --git a/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigResource.Serialization.cs b/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigResource.Serialization.cs index f2456c7f3..dbb0946e3 100644 --- a/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalUnknownEvalDataSourceConfigResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalUnknownEvalDataSourceConfigResource : IJsonModel + internal partial class InternalUnknownEvalDataSourceConfigResource : InternalEvalDataSourceConfigResource, IJsonModel { internal InternalUnknownEvalDataSourceConfigResource() : this(default, null) { diff --git a/src/Generated/Models/Evals/InternalUnknownEvalGraderParams.Serialization.cs b/src/Generated/Models/Evals/InternalUnknownEvalGraderParams.Serialization.cs index 3e89010f6..d764a80a9 100644 --- a/src/Generated/Models/Evals/InternalUnknownEvalGraderParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalUnknownEvalGraderParams.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalUnknownEvalGraderParams : IJsonModel + internal partial class InternalUnknownEvalGraderParams : InternalEvalGraderParams, IJsonModel { internal InternalUnknownEvalGraderParams() : this(default, null) { diff --git a/src/Generated/Models/Evals/InternalUnknownEvalGraderResource.Serialization.cs b/src/Generated/Models/Evals/InternalUnknownEvalGraderResource.Serialization.cs index e52a6075a..4cef4d0c9 100644 --- a/src/Generated/Models/Evals/InternalUnknownEvalGraderResource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalUnknownEvalGraderResource.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Evals { - internal partial class InternalUnknownEvalGraderResource : IJsonModel + internal partial class InternalUnknownEvalGraderResource : InternalEvalGraderResource, IJsonModel { internal InternalUnknownEvalGraderResource() : this(default, null) { diff --git a/src/Generated/Models/Evals/InternalUnknownEvalItemContent.Serialization.cs b/src/Generated/Models/Evals/InternalUnknownEvalItemContent.Serialization.cs index 9067b853d..85da64aec 100644 --- a/src/Generated/Models/Evals/InternalUnknownEvalItemContent.Serialization.cs +++ b/src/Generated/Models/Evals/InternalUnknownEvalItemContent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalUnknownEvalItemContent : IJsonModel + internal partial class InternalUnknownEvalItemContent : InternalEvalItemContent, IJsonModel { internal InternalUnknownEvalItemContent() : this(default, null) { diff --git a/src/Generated/Models/Evals/InternalUnknownEvalRunDataContentSource.Serialization.cs b/src/Generated/Models/Evals/InternalUnknownEvalRunDataContentSource.Serialization.cs index cca717378..823a76f03 100644 --- a/src/Generated/Models/Evals/InternalUnknownEvalRunDataContentSource.Serialization.cs +++ b/src/Generated/Models/Evals/InternalUnknownEvalRunDataContentSource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalUnknownEvalRunDataContentSource : IJsonModel + internal partial class InternalUnknownEvalRunDataContentSource : InternalEvalRunDataContentSource, IJsonModel { internal InternalUnknownEvalRunDataContentSource() : this(default, null) { diff --git a/src/Generated/Models/Evals/InternalUnknownEvalRunDataSourceParams.Serialization.cs b/src/Generated/Models/Evals/InternalUnknownEvalRunDataSourceParams.Serialization.cs index 018a2dafd..15a274788 100644 --- a/src/Generated/Models/Evals/InternalUnknownEvalRunDataSourceParams.Serialization.cs +++ b/src/Generated/Models/Evals/InternalUnknownEvalRunDataSourceParams.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Evals { - internal partial class InternalUnknownEvalRunDataSourceParams : IJsonModel + internal partial class InternalUnknownEvalRunDataSourceParams : InternalEvalRunDataSourceParams, IJsonModel { internal InternalUnknownEvalRunDataSourceParams() : this(default, null) { diff --git a/src/Generated/Models/Files/FileDeletionResult.Serialization.cs b/src/Generated/Models/Files/FileDeletionResult.Serialization.cs index cbf58e6c8..be4d28915 100644 --- a/src/Generated/Models/Files/FileDeletionResult.Serialization.cs +++ b/src/Generated/Models/Files/FileDeletionResult.Serialization.cs @@ -156,7 +156,8 @@ protected virtual FileDeletionResult PersistableModelCreateCore(BinaryData data, public static explicit operator FileDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 09c441ebc..3da4e30f5 100644 --- a/src/Generated/Models/Files/InternalUpload.Serialization.cs +++ b/src/Generated/Models/Files/InternalUpload.Serialization.cs @@ -231,7 +231,8 @@ protected virtual InternalUpload PersistableModelCreateCore(BinaryData data, Mod public static explicit operator InternalUpload(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 cda4b7c95..66877597f 100644 --- a/src/Generated/Models/Files/InternalUploadPart.Serialization.cs +++ b/src/Generated/Models/Files/InternalUploadPart.Serialization.cs @@ -161,7 +161,8 @@ protected virtual InternalUploadPart PersistableModelCreateCore(BinaryData data, public static explicit operator InternalUploadPart(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 f665382d1..c2dd5eb10 100644 --- a/src/Generated/Models/Files/OpenAIFile.Serialization.cs +++ b/src/Generated/Models/Files/OpenAIFile.Serialization.cs @@ -248,7 +248,8 @@ protected virtual OpenAIFile PersistableModelCreateCore(BinaryData data, ModelRe public static explicit operator OpenAIFile(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 9e67bea00..5529962c7 100644 --- a/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs +++ b/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs @@ -5,13 +5,14 @@ using System; using System.ClientModel; using System.ClientModel.Primitives; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using OpenAI; namespace OpenAI.Files { - public partial class OpenAIFileCollection : IJsonModel + public partial class OpenAIFileCollection : ReadOnlyCollection, IJsonModel { [Experimental("OPENAI001")] protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) @@ -116,7 +117,8 @@ protected virtual OpenAIFileCollection PersistableModelCreateCore(BinaryData dat public static explicit operator OpenAIFileCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeOpenAIFileCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Files/OpenAIFileCollection.cs b/src/Generated/Models/Files/OpenAIFileCollection.cs index 7ba8ee002..984fa4d0d 100644 --- a/src/Generated/Models/Files/OpenAIFileCollection.cs +++ b/src/Generated/Models/Files/OpenAIFileCollection.cs @@ -4,10 +4,11 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; namespace OpenAI.Files { - public partial class OpenAIFileCollection + public partial class OpenAIFileCollection : ReadOnlyCollection { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/FineTuning/HyperparametersForDPO.Serialization.cs b/src/Generated/Models/FineTuning/HyperparametersForDPO.Serialization.cs index ff6fd3725..94c9b13a6 100644 --- a/src/Generated/Models/FineTuning/HyperparametersForDPO.Serialization.cs +++ b/src/Generated/Models/FineTuning/HyperparametersForDPO.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { - public partial class HyperparametersForDPO : IJsonModel + public partial class HyperparametersForDPO : MethodHyperparameters, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/FineTuning/HyperparametersForDPO.cs b/src/Generated/Models/FineTuning/HyperparametersForDPO.cs index 4b720271e..5d33b6bcc 100644 --- a/src/Generated/Models/FineTuning/HyperparametersForDPO.cs +++ b/src/Generated/Models/FineTuning/HyperparametersForDPO.cs @@ -9,7 +9,7 @@ namespace OpenAI.FineTuning { [Experimental("OPENAI001")] - public partial class HyperparametersForDPO + public partial class HyperparametersForDPO : MethodHyperparameters { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/FineTuning/HyperparametersForSupervised.Serialization.cs b/src/Generated/Models/FineTuning/HyperparametersForSupervised.Serialization.cs index 007505c69..5e1f9bfd1 100644 --- a/src/Generated/Models/FineTuning/HyperparametersForSupervised.Serialization.cs +++ b/src/Generated/Models/FineTuning/HyperparametersForSupervised.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { - public partial class HyperparametersForSupervised : IJsonModel + public partial class HyperparametersForSupervised : MethodHyperparameters, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/FineTuning/HyperparametersForSupervised.cs b/src/Generated/Models/FineTuning/HyperparametersForSupervised.cs index 7dd33699e..2e99d5a2e 100644 --- a/src/Generated/Models/FineTuning/HyperparametersForSupervised.cs +++ b/src/Generated/Models/FineTuning/HyperparametersForSupervised.cs @@ -9,7 +9,7 @@ namespace OpenAI.FineTuning { [Experimental("OPENAI001")] - public partial class HyperparametersForSupervised + public partial class HyperparametersForSupervised : MethodHyperparameters { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs b/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs index 4988068a8..70315608e 100644 --- a/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalDeleteFineTuningCheckpointPermissionResponse.Serialization.cs @@ -150,7 +150,8 @@ protected virtual InternalDeleteFineTuningCheckpointPermissionResponse Persistab public static explicit operator InternalDeleteFineTuningCheckpointPermissionResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalDeleteFineTuningCheckpointPermissionResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalFineTuningIntegrationWandb.Serialization.cs b/src/Generated/Models/FineTuning/InternalFineTuningIntegrationWandb.Serialization.cs index 23b3aeb4a..5b094cc14 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuningIntegrationWandb.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuningIntegrationWandb.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { - internal partial class InternalFineTuningIntegrationWandb : IJsonModel + internal partial class InternalFineTuningIntegrationWandb : InternalFineTuningIntegration, IJsonModel { internal InternalFineTuningIntegrationWandb() : this(InternalFineTuningIntegrationType.Wandb, null, null) { diff --git a/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs b/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs index 8de4aea90..ebc8bf332 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuningJob.Serialization.cs @@ -503,7 +503,8 @@ protected virtual InternalFineTuningJob PersistableModelCreateCore(BinaryData da public static explicit operator InternalFineTuningJob(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalFineTuningJob(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.Serialization.cs b/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.Serialization.cs index e95d81178..697d595ae 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.Serialization.cs @@ -3,6 +3,7 @@ #nullable disable using System; +using System.ClientModel; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; @@ -10,7 +11,7 @@ namespace OpenAI.FineTuning { - internal partial class InternalFineTuningJobsPageToken : IJsonModel + internal partial class InternalFineTuningJobsPageToken : ContinuationToken, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.cs b/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.cs index 2a3ffbcad..7c3fa515c 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.cs @@ -3,11 +3,12 @@ #nullable disable using System; +using System.ClientModel; using System.Collections.Generic; namespace OpenAI.FineTuning { - internal partial class InternalFineTuningJobsPageToken + internal partial class InternalFineTuningJobsPageToken : ContinuationToken { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs b/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs index dd5c8274c..50ee4e4c9 100644 --- a/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListFineTuningCheckpointPermissionResponse.Serialization.cs @@ -198,7 +198,8 @@ protected virtual InternalListFineTuningCheckpointPermissionResponse Persistable public static explicit operator InternalListFineTuningCheckpointPermissionResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 e5b209b77..9c2f98571 100644 --- a/src/Generated/Models/FineTuning/InternalListFineTuningJobCheckpointsResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListFineTuningJobCheckpointsResponse.Serialization.cs @@ -198,7 +198,8 @@ protected virtual InternalListFineTuningJobCheckpointsResponse PersistableModelC public static explicit operator InternalListFineTuningJobCheckpointsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 6f56e35f9..1d50324c6 100644 --- a/src/Generated/Models/FineTuning/InternalListFineTuningJobEventsResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListFineTuningJobEventsResponse.Serialization.cs @@ -160,7 +160,8 @@ protected virtual InternalListFineTuningJobEventsResponse PersistableModelCreate public static explicit operator InternalListFineTuningJobEventsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 815408341..f3df3b85b 100644 --- a/src/Generated/Models/FineTuning/InternalListPaginatedFineTuningJobsResponse.Serialization.cs +++ b/src/Generated/Models/FineTuning/InternalListPaginatedFineTuningJobsResponse.Serialization.cs @@ -160,7 +160,8 @@ protected virtual InternalListPaginatedFineTuningJobsResponse PersistableModelCr public static explicit operator InternalListPaginatedFineTuningJobsResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalListPaginatedFineTuningJobsResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/FineTuning/UnknownCreateFineTuningJobRequestIntegration.Serialization.cs b/src/Generated/Models/FineTuning/UnknownCreateFineTuningJobRequestIntegration.Serialization.cs index cc1244d18..dec1c7a6e 100644 --- a/src/Generated/Models/FineTuning/UnknownCreateFineTuningJobRequestIntegration.Serialization.cs +++ b/src/Generated/Models/FineTuning/UnknownCreateFineTuningJobRequestIntegration.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { - internal partial class UnknownCreateFineTuningJobRequestIntegration : IJsonModel + internal partial class UnknownCreateFineTuningJobRequestIntegration : FineTuningIntegration, IJsonModel { internal UnknownCreateFineTuningJobRequestIntegration() : this(default, null) { diff --git a/src/Generated/Models/FineTuning/UnknownFineTuningIntegration.Serialization.cs b/src/Generated/Models/FineTuning/UnknownFineTuningIntegration.Serialization.cs index 5a73d78af..cbf202b4e 100644 --- a/src/Generated/Models/FineTuning/UnknownFineTuningIntegration.Serialization.cs +++ b/src/Generated/Models/FineTuning/UnknownFineTuningIntegration.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { - internal partial class UnknownFineTuningIntegration : IJsonModel + internal partial class UnknownFineTuningIntegration : InternalFineTuningIntegration, IJsonModel { internal UnknownFineTuningIntegration() : this(default, null) { diff --git a/src/Generated/Models/FineTuning/WeightsAndBiasesIntegration.Serialization.cs b/src/Generated/Models/FineTuning/WeightsAndBiasesIntegration.Serialization.cs index a8625d518..1bf423977 100644 --- a/src/Generated/Models/FineTuning/WeightsAndBiasesIntegration.Serialization.cs +++ b/src/Generated/Models/FineTuning/WeightsAndBiasesIntegration.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { - public partial class WeightsAndBiasesIntegration : IJsonModel + public partial class WeightsAndBiasesIntegration : FineTuningIntegration, IJsonModel { internal WeightsAndBiasesIntegration() : this(InternalCreateFineTuningJobRequestIntegrationType.Wandb, null, null) { diff --git a/src/Generated/Models/Graders/GraderLabelModel.Serialization.cs b/src/Generated/Models/Graders/GraderLabelModel.Serialization.cs index 9d96888eb..f96fd3dce 100644 --- a/src/Generated/Models/Graders/GraderLabelModel.Serialization.cs +++ b/src/Generated/Models/Graders/GraderLabelModel.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Graders { - public partial class GraderLabelModel : IJsonModel + public partial class GraderLabelModel : Grader, IJsonModel { internal GraderLabelModel() : this(GraderType.LabelModel, null, null, null, null, null, null) { diff --git a/src/Generated/Models/Graders/GraderMulti.Serialization.cs b/src/Generated/Models/Graders/GraderMulti.Serialization.cs index bc8449b5a..a79d8e4a4 100644 --- a/src/Generated/Models/Graders/GraderMulti.Serialization.cs +++ b/src/Generated/Models/Graders/GraderMulti.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { - public partial class GraderMulti : IJsonModel + public partial class GraderMulti : Grader, IJsonModel { internal GraderMulti() : this(GraderType.Multi, null, null, null, null) { diff --git a/src/Generated/Models/Graders/GraderPython.Serialization.cs b/src/Generated/Models/Graders/GraderPython.Serialization.cs index cc6646fa0..65e60ffba 100644 --- a/src/Generated/Models/Graders/GraderPython.Serialization.cs +++ b/src/Generated/Models/Graders/GraderPython.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { - public partial class GraderPython : IJsonModel + public partial class GraderPython : Grader, IJsonModel { internal GraderPython() : this(GraderType.Python, null, null, null, null) { diff --git a/src/Generated/Models/Graders/GraderScoreModel.Serialization.cs b/src/Generated/Models/Graders/GraderScoreModel.Serialization.cs index 7201472c8..cea9ea4aa 100644 --- a/src/Generated/Models/Graders/GraderScoreModel.Serialization.cs +++ b/src/Generated/Models/Graders/GraderScoreModel.Serialization.cs @@ -11,7 +11,7 @@ namespace OpenAI.Graders { - public partial class GraderScoreModel : IJsonModel + public partial class GraderScoreModel : Grader, IJsonModel { internal GraderScoreModel() : this(GraderType.ScoreModel, null, null, null, null, null, null) { diff --git a/src/Generated/Models/Graders/GraderStringCheck.Serialization.cs b/src/Generated/Models/Graders/GraderStringCheck.Serialization.cs index f69f9d482..99574163d 100644 --- a/src/Generated/Models/Graders/GraderStringCheck.Serialization.cs +++ b/src/Generated/Models/Graders/GraderStringCheck.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { - public partial class GraderStringCheck : IJsonModel + public partial class GraderStringCheck : Grader, IJsonModel { internal GraderStringCheck() : this(GraderType.StringCheck, null, null, null, null, default) { diff --git a/src/Generated/Models/Graders/GraderTextSimilarity.Serialization.cs b/src/Generated/Models/Graders/GraderTextSimilarity.Serialization.cs index 673e4ddca..03718253f 100644 --- a/src/Generated/Models/Graders/GraderTextSimilarity.Serialization.cs +++ b/src/Generated/Models/Graders/GraderTextSimilarity.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { - public partial class GraderTextSimilarity : IJsonModel + public partial class GraderTextSimilarity : Grader, IJsonModel { internal GraderTextSimilarity() : this(GraderType.TextSimilarity, null, null, null, null, default) { diff --git a/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs b/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs index 1c83b2991..798d9a460 100644 --- a/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs +++ b/src/Generated/Models/Graders/RunGraderResponse.Serialization.cs @@ -175,7 +175,8 @@ protected virtual RunGraderResponse PersistableModelCreateCore(BinaryData data, public static explicit operator RunGraderResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeRunGraderResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Graders/UnknownGrader.Serialization.cs b/src/Generated/Models/Graders/UnknownGrader.Serialization.cs index 20332f28f..03eada674 100644 --- a/src/Generated/Models/Graders/UnknownGrader.Serialization.cs +++ b/src/Generated/Models/Graders/UnknownGrader.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { - public partial class UnknownGrader : IJsonModel + public partial class UnknownGrader : Grader, IJsonModel { internal UnknownGrader() : this(default, null) { diff --git a/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs b/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs index 0e67bd0b3..2260018ae 100644 --- a/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs +++ b/src/Generated/Models/Graders/ValidateGraderResponse.Serialization.cs @@ -135,7 +135,8 @@ protected virtual ValidateGraderResponse PersistableModelCreateCore(BinaryData d public static explicit operator ValidateGraderResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 bfe64edca..ba0ebd5f7 100644 --- a/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs +++ b/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs @@ -6,13 +6,14 @@ using System.ClientModel; using System.ClientModel.Primitives; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using OpenAI; namespace OpenAI.Images { - public partial class GeneratedImageCollection : IJsonModel + public partial class GeneratedImageCollection : ReadOnlyCollection, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { @@ -170,7 +171,8 @@ protected virtual GeneratedImageCollection PersistableModelCreateCore(BinaryData public static explicit operator GeneratedImageCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeGeneratedImageCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Images/GeneratedImageCollection.cs b/src/Generated/Models/Images/GeneratedImageCollection.cs index a1470cf78..dc27cef8c 100644 --- a/src/Generated/Models/Images/GeneratedImageCollection.cs +++ b/src/Generated/Models/Images/GeneratedImageCollection.cs @@ -4,11 +4,12 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; namespace OpenAI.Images { - public partial class GeneratedImageCollection + public partial class GeneratedImageCollection : ReadOnlyCollection { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/Internal/InternalResponseFormatJsonObject.Serialization.cs b/src/Generated/Models/Internal/InternalResponseFormatJsonObject.Serialization.cs index c19392c10..ed82f589e 100644 --- a/src/Generated/Models/Internal/InternalResponseFormatJsonObject.Serialization.cs +++ b/src/Generated/Models/Internal/InternalResponseFormatJsonObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Internal { - internal partial class InternalResponseFormatJsonObject : IJsonModel + internal partial class InternalResponseFormatJsonObject : InternalResponseFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Internal/InternalResponseFormatJsonSchema.Serialization.cs b/src/Generated/Models/Internal/InternalResponseFormatJsonSchema.Serialization.cs index 14c059411..9c117f575 100644 --- a/src/Generated/Models/Internal/InternalResponseFormatJsonSchema.Serialization.cs +++ b/src/Generated/Models/Internal/InternalResponseFormatJsonSchema.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Internal { - internal partial class InternalResponseFormatJsonSchema : IJsonModel + internal partial class InternalResponseFormatJsonSchema : InternalResponseFormat, IJsonModel { internal InternalResponseFormatJsonSchema() : this(InternalResponseFormatType.JsonSchema, null, null) { diff --git a/src/Generated/Models/Internal/InternalResponseFormatText.Serialization.cs b/src/Generated/Models/Internal/InternalResponseFormatText.Serialization.cs index 269c8edc7..a3be343cf 100644 --- a/src/Generated/Models/Internal/InternalResponseFormatText.Serialization.cs +++ b/src/Generated/Models/Internal/InternalResponseFormatText.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Internal { - internal partial class InternalResponseFormatText : IJsonModel + internal partial class InternalResponseFormatText : InternalResponseFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Internal/InternalUnknownResponseFormat.Serialization.cs b/src/Generated/Models/Internal/InternalUnknownResponseFormat.Serialization.cs index 535a64c1c..3a242ee41 100644 --- a/src/Generated/Models/Internal/InternalUnknownResponseFormat.Serialization.cs +++ b/src/Generated/Models/Internal/InternalUnknownResponseFormat.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Internal { - internal partial class InternalUnknownResponseFormat : IJsonModel + internal partial class InternalUnknownResponseFormat : InternalResponseFormat, IJsonModel { internal InternalUnknownResponseFormat() : this(default, null) { diff --git a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs index 7538d6288..cd88f9ada 100644 --- a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs +++ b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponse.Serialization.cs @@ -217,7 +217,8 @@ protected virtual InternalCreateCompletionResponse PersistableModelCreateCore(Bi public static explicit operator InternalCreateCompletionResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 8d027b3fa..147386b72 100644 --- a/src/Generated/Models/Models/ModelDeletionResult.Serialization.cs +++ b/src/Generated/Models/Models/ModelDeletionResult.Serialization.cs @@ -156,7 +156,8 @@ protected virtual ModelDeletionResult PersistableModelCreateCore(BinaryData data public static explicit operator ModelDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 058101bf4..8dfd6c0e1 100644 --- a/src/Generated/Models/Models/OpenAIModel.Serialization.cs +++ b/src/Generated/Models/Models/OpenAIModel.Serialization.cs @@ -167,7 +167,8 @@ protected virtual OpenAIModel PersistableModelCreateCore(BinaryData data, ModelR public static explicit operator OpenAIModel(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 6c1eed2fe..1c79247fe 100644 --- a/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs +++ b/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs @@ -5,13 +5,14 @@ using System; using System.ClientModel; using System.ClientModel.Primitives; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using OpenAI; namespace OpenAI.Models { - public partial class OpenAIModelCollection : IJsonModel + public partial class OpenAIModelCollection : ReadOnlyCollection, IJsonModel { [Experimental("OPENAI001")] protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) @@ -101,7 +102,8 @@ protected virtual OpenAIModelCollection PersistableModelCreateCore(BinaryData da public static explicit operator OpenAIModelCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeOpenAIModelCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Models/OpenAIModelCollection.cs b/src/Generated/Models/Models/OpenAIModelCollection.cs index d655f1ee6..1fbc6b439 100644 --- a/src/Generated/Models/Models/OpenAIModelCollection.cs +++ b/src/Generated/Models/Models/OpenAIModelCollection.cs @@ -4,10 +4,11 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; namespace OpenAI.Models { - public partial class OpenAIModelCollection + public partial class OpenAIModelCollection : ReadOnlyCollection { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs b/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs index e4ac419b4..b1e2f5132 100644 --- a/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs +++ b/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs @@ -5,13 +5,14 @@ using System; using System.ClientModel; using System.ClientModel.Primitives; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using OpenAI; namespace OpenAI.Moderations { - public partial class ModerationResultCollection : IJsonModel + public partial class ModerationResultCollection : ReadOnlyCollection, IJsonModel { [Experimental("OPENAI001")] protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) @@ -106,7 +107,8 @@ protected virtual ModerationResultCollection PersistableModelCreateCore(BinaryDa public static explicit operator ModerationResultCollection(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeModerationResultCollection(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Moderations/ModerationResultCollection.cs b/src/Generated/Models/Moderations/ModerationResultCollection.cs index db1da9699..3f4632251 100644 --- a/src/Generated/Models/Moderations/ModerationResultCollection.cs +++ b/src/Generated/Models/Moderations/ModerationResultCollection.cs @@ -4,10 +4,11 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; namespace OpenAI.Moderations { - public partial class ModerationResultCollection + public partial class ModerationResultCollection : ReadOnlyCollection { private protected IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/Realtime/ConversationFunctionTool.Serialization.cs b/src/Generated/Models/Realtime/ConversationFunctionTool.Serialization.cs index f27ac29f4..f75206a75 100644 --- a/src/Generated/Models/Realtime/ConversationFunctionTool.Serialization.cs +++ b/src/Generated/Models/Realtime/ConversationFunctionTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ConversationFunctionTool : IJsonModel + public partial class ConversationFunctionTool : ConversationTool, IJsonModel { internal ConversationFunctionTool() : this(ConversationToolKind.Function, null, null, null, null) { diff --git a/src/Generated/Models/Realtime/ConversationSessionConfiguredUpdate.Serialization.cs b/src/Generated/Models/Realtime/ConversationSessionConfiguredUpdate.Serialization.cs index 1c3916e79..e3c8b8c94 100644 --- a/src/Generated/Models/Realtime/ConversationSessionConfiguredUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ConversationSessionConfiguredUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ConversationSessionConfiguredUpdate : IJsonModel + public partial class ConversationSessionConfiguredUpdate : RealtimeUpdate, IJsonModel { internal ConversationSessionConfiguredUpdate() : this(RealtimeUpdateKind.SessionConfigured, null, null, null) { diff --git a/src/Generated/Models/Realtime/ConversationSessionStartedUpdate.Serialization.cs b/src/Generated/Models/Realtime/ConversationSessionStartedUpdate.Serialization.cs index a184d6072..1dabab99c 100644 --- a/src/Generated/Models/Realtime/ConversationSessionStartedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ConversationSessionStartedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ConversationSessionStartedUpdate : IJsonModel + public partial class ConversationSessionStartedUpdate : RealtimeUpdate, IJsonModel { internal ConversationSessionStartedUpdate() : this(RealtimeUpdateKind.SessionStarted, null, null, null) { diff --git a/src/Generated/Models/Realtime/InputAudioClearedUpdate.Serialization.cs b/src/Generated/Models/Realtime/InputAudioClearedUpdate.Serialization.cs index bd2b88a86..286ebc34a 100644 --- a/src/Generated/Models/Realtime/InputAudioClearedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InputAudioClearedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class InputAudioClearedUpdate : IJsonModel + public partial class InputAudioClearedUpdate : RealtimeUpdate, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InputAudioCommittedUpdate.Serialization.cs b/src/Generated/Models/Realtime/InputAudioCommittedUpdate.Serialization.cs index 22f92eb61..df16b1285 100644 --- a/src/Generated/Models/Realtime/InputAudioCommittedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InputAudioCommittedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class InputAudioCommittedUpdate : IJsonModel + public partial class InputAudioCommittedUpdate : RealtimeUpdate, IJsonModel { internal InputAudioCommittedUpdate() : this(RealtimeUpdateKind.InputAudioCommitted, null, null, null, null) { diff --git a/src/Generated/Models/Realtime/InputAudioSpeechFinishedUpdate.Serialization.cs b/src/Generated/Models/Realtime/InputAudioSpeechFinishedUpdate.Serialization.cs index 7ad8819ce..0d71d7fe7 100644 --- a/src/Generated/Models/Realtime/InputAudioSpeechFinishedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InputAudioSpeechFinishedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class InputAudioSpeechFinishedUpdate : IJsonModel + public partial class InputAudioSpeechFinishedUpdate : RealtimeUpdate, IJsonModel { internal InputAudioSpeechFinishedUpdate() : this(RealtimeUpdateKind.InputSpeechStopped, null, null, null, default) { diff --git a/src/Generated/Models/Realtime/InputAudioSpeechStartedUpdate.Serialization.cs b/src/Generated/Models/Realtime/InputAudioSpeechStartedUpdate.Serialization.cs index 339c89e15..61b2f847a 100644 --- a/src/Generated/Models/Realtime/InputAudioSpeechStartedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InputAudioSpeechStartedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class InputAudioSpeechStartedUpdate : IJsonModel + public partial class InputAudioSpeechStartedUpdate : RealtimeUpdate, IJsonModel { internal InputAudioSpeechStartedUpdate() : this(RealtimeUpdateKind.InputSpeechStarted, null, null, null, default) { diff --git a/src/Generated/Models/Realtime/InputAudioTranscriptionDeltaUpdate.Serialization.cs b/src/Generated/Models/Realtime/InputAudioTranscriptionDeltaUpdate.Serialization.cs index e8be3808a..850621711 100644 --- a/src/Generated/Models/Realtime/InputAudioTranscriptionDeltaUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InputAudioTranscriptionDeltaUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class InputAudioTranscriptionDeltaUpdate : IJsonModel + public partial class InputAudioTranscriptionDeltaUpdate : RealtimeUpdate, IJsonModel { internal InputAudioTranscriptionDeltaUpdate() : this(RealtimeUpdateKind.InputTranscriptionDelta, null, null, null, default, null, null) { diff --git a/src/Generated/Models/Realtime/InputAudioTranscriptionFailedUpdate.Serialization.cs b/src/Generated/Models/Realtime/InputAudioTranscriptionFailedUpdate.Serialization.cs index fcaf79c5c..d2b0ee631 100644 --- a/src/Generated/Models/Realtime/InputAudioTranscriptionFailedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InputAudioTranscriptionFailedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class InputAudioTranscriptionFailedUpdate : IJsonModel + public partial class InputAudioTranscriptionFailedUpdate : RealtimeUpdate, IJsonModel { internal InputAudioTranscriptionFailedUpdate() : this(RealtimeUpdateKind.InputTranscriptionFailed, null, null, null, default, null) { diff --git a/src/Generated/Models/Realtime/InputAudioTranscriptionFinishedUpdate.Serialization.cs b/src/Generated/Models/Realtime/InputAudioTranscriptionFinishedUpdate.Serialization.cs index b584e76e5..28a533beb 100644 --- a/src/Generated/Models/Realtime/InputAudioTranscriptionFinishedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InputAudioTranscriptionFinishedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class InputAudioTranscriptionFinishedUpdate : IJsonModel + public partial class InputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel { internal InputAudioTranscriptionFinishedUpdate() : this(RealtimeUpdateKind.InputTranscriptionFinished, null, null, null, default, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeAudioFarFieldNoiseReduction.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeAudioFarFieldNoiseReduction.Serialization.cs index 5c7b31b63..7d3042d18 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeAudioFarFieldNoiseReduction.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeAudioFarFieldNoiseReduction.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeAudioFarFieldNoiseReduction : IJsonModel + internal partial class InternalRealtimeAudioFarFieldNoiseReduction : InputNoiseReductionOptions, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeAudioNearFieldNoiseReduction.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeAudioNearFieldNoiseReduction.Serialization.cs index deccb6295..65aed3ad5 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeAudioNearFieldNoiseReduction.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeAudioNearFieldNoiseReduction.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeAudioNearFieldNoiseReduction : IJsonModel + internal partial class InternalRealtimeAudioNearFieldNoiseReduction : InputNoiseReductionOptions, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemCreate.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemCreate.Serialization.cs index f21a8d3b2..b9e82a1e3 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemCreate.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemCreate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventConversationItemCreate : IJsonModel + internal partial class InternalRealtimeClientEventConversationItemCreate : InternalRealtimeClientEvent, IJsonModel { internal InternalRealtimeClientEventConversationItemCreate() : this(InternalRealtimeClientEventType.ConversationItemCreate, null, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemDelete.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemDelete.Serialization.cs index 190509217..55d5aa1c7 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemDelete.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemDelete.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventConversationItemDelete : IJsonModel + internal partial class InternalRealtimeClientEventConversationItemDelete : InternalRealtimeClientEvent, IJsonModel { internal InternalRealtimeClientEventConversationItemDelete() : this(InternalRealtimeClientEventType.ConversationItemDelete, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemRetrieve.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemRetrieve.Serialization.cs index 160a68638..39037a624 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemRetrieve.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemRetrieve.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventConversationItemRetrieve : IJsonModel + internal partial class InternalRealtimeClientEventConversationItemRetrieve : InternalRealtimeClientEvent, IJsonModel { internal InternalRealtimeClientEventConversationItemRetrieve() : this(InternalRealtimeClientEventType.ConversationItemRetrieve, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemTruncate.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemTruncate.Serialization.cs index 9f76a0b64..cc581f62d 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemTruncate.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventConversationItemTruncate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventConversationItemTruncate : IJsonModel + internal partial class InternalRealtimeClientEventConversationItemTruncate : InternalRealtimeClientEvent, IJsonModel { internal InternalRealtimeClientEventConversationItemTruncate() : this(InternalRealtimeClientEventType.ConversationItemTruncate, null, null, null, default, default) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferAppend.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferAppend.Serialization.cs index 22f2e295a..a79d2adcb 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferAppend.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferAppend.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventInputAudioBufferAppend : IJsonModel + internal partial class InternalRealtimeClientEventInputAudioBufferAppend : InternalRealtimeClientEvent, IJsonModel { internal InternalRealtimeClientEventInputAudioBufferAppend() : this(InternalRealtimeClientEventType.InputAudioBufferAppend, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferClear.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferClear.Serialization.cs index 9bde32d52..042f608df 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferClear.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferClear.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventInputAudioBufferClear : IJsonModel + internal partial class InternalRealtimeClientEventInputAudioBufferClear : InternalRealtimeClientEvent, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferCommit.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferCommit.Serialization.cs index c38265928..f8ebaee11 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferCommit.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventInputAudioBufferCommit.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventInputAudioBufferCommit : IJsonModel + internal partial class InternalRealtimeClientEventInputAudioBufferCommit : InternalRealtimeClientEvent, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventOutputAudioBufferClear.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventOutputAudioBufferClear.Serialization.cs index bd2ad5c3f..7c3fc6ace 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventOutputAudioBufferClear.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventOutputAudioBufferClear.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventOutputAudioBufferClear : IJsonModel + internal partial class InternalRealtimeClientEventOutputAudioBufferClear : InternalRealtimeClientEvent, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCancel.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCancel.Serialization.cs index cb75a5fc6..ab98fbc04 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCancel.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCancel.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventResponseCancel : IJsonModel + internal partial class InternalRealtimeClientEventResponseCancel : InternalRealtimeClientEvent, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCreate.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCreate.Serialization.cs index e121880b0..3790ea58c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCreate.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventResponseCreate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventResponseCreate : IJsonModel + internal partial class InternalRealtimeClientEventResponseCreate : InternalRealtimeClientEvent, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventSessionUpdate.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventSessionUpdate.Serialization.cs index 16ca0e356..0ba9b9cf5 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventSessionUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventSessionUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventSessionUpdate : IJsonModel + internal partial class InternalRealtimeClientEventSessionUpdate : InternalRealtimeClientEvent, IJsonModel { internal InternalRealtimeClientEventSessionUpdate() : this(InternalRealtimeClientEventType.SessionUpdate, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventTranscriptionSessionUpdate.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventTranscriptionSessionUpdate.Serialization.cs index b35bd942a..fa6de996c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventTranscriptionSessionUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventTranscriptionSessionUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeClientEventTranscriptionSessionUpdate : IJsonModel + internal partial class InternalRealtimeClientEventTranscriptionSessionUpdate : InternalRealtimeClientEvent, IJsonModel { internal InternalRealtimeClientEventTranscriptionSessionUpdate() : this(InternalRealtimeClientEventType.TranscriptionSessionUpdate, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestAssistantMessageItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestAssistantMessageItem.Serialization.cs index 9512d159d..aca829ec0 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestAssistantMessageItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestAssistantMessageItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestAssistantMessageItem : IJsonModel + internal partial class InternalRealtimeRequestAssistantMessageItem : InternalRealtimeRequestMessageItem, IJsonModel { internal InternalRealtimeRequestAssistantMessageItem() : this(default, null, null, ConversationMessageRole.Assistant, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestAudioContentPart.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestAudioContentPart.Serialization.cs index 6d31aabfa..65db2f8a0 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestAudioContentPart.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestAudioContentPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestAudioContentPart : IJsonModel + internal partial class InternalRealtimeRequestAudioContentPart : ConversationContentPart, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallItem.Serialization.cs index 80a4aafa8..11997140d 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestFunctionCallItem : IJsonModel + internal partial class InternalRealtimeRequestFunctionCallItem : RealtimeItem, IJsonModel { internal InternalRealtimeRequestFunctionCallItem() : this(InternalRealtimeItemType.FunctionCall, null, null, null, null, null, default) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallOutputItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallOutputItem.Serialization.cs index 39300ca5d..a8a2bb847 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallOutputItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestFunctionCallOutputItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestFunctionCallOutputItem : IJsonModel + internal partial class InternalRealtimeRequestFunctionCallOutputItem : RealtimeItem, IJsonModel { internal InternalRealtimeRequestFunctionCallOutputItem() : this(InternalRealtimeItemType.FunctionCallOutput, null, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestMessageItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestMessageItem.Serialization.cs index c09ce8c24..476438f19 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestMessageItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestMessageItem.Serialization.cs @@ -9,7 +9,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestMessageItem : IJsonModel + internal partial class InternalRealtimeRequestMessageItem : RealtimeItem, IJsonModel { internal InternalRealtimeRequestMessageItem() : this(InternalRealtimeItemType.Message, null, null, default, default) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestSystemMessageItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestSystemMessageItem.Serialization.cs index 2eb7e38a6..5bf81e8ee 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestSystemMessageItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestSystemMessageItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestSystemMessageItem : IJsonModel + internal partial class InternalRealtimeRequestSystemMessageItem : InternalRealtimeRequestMessageItem, IJsonModel { internal InternalRealtimeRequestSystemMessageItem() : this(default, null, null, ConversationMessageRole.System, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestTextContentPart.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestTextContentPart.Serialization.cs index 8d200a157..c18b1c7d9 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestTextContentPart.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestTextContentPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestTextContentPart : IJsonModel + internal partial class InternalRealtimeRequestTextContentPart : ConversationContentPart, IJsonModel { internal InternalRealtimeRequestTextContentPart() : this(ConversationContentPartKind.InputText, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestUserMessageItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestUserMessageItem.Serialization.cs index 382947a66..9d2680722 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestUserMessageItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestUserMessageItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeRequestUserMessageItem : IJsonModel + internal partial class InternalRealtimeRequestUserMessageItem : InternalRealtimeRequestMessageItem, IJsonModel { internal InternalRealtimeRequestUserMessageItem() : this(default, null, null, ConversationMessageRole.User, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseAudioContentPart.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseAudioContentPart.Serialization.cs index b660a0299..c3ed50fd9 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseAudioContentPart.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseAudioContentPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeResponseAudioContentPart : IJsonModel + internal partial class InternalRealtimeResponseAudioContentPart : ConversationContentPart, IJsonModel { internal InternalRealtimeResponseAudioContentPart() : this(ConversationContentPartKind.OutputAudio, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallItem.Serialization.cs index e96272bc2..bd90c53e3 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeResponseFunctionCallItem : IJsonModel + internal partial class InternalRealtimeResponseFunctionCallItem : InternalRealtimeResponseItem, IJsonModel { internal InternalRealtimeResponseFunctionCallItem() : this(null, InternalRealtimeItemType.FunctionCall, null, null, null, null, null, default) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallOutputItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallOutputItem.Serialization.cs index dbdbeee4a..cbf763801 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallOutputItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseFunctionCallOutputItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeResponseFunctionCallOutputItem : IJsonModel + internal partial class InternalRealtimeResponseFunctionCallOutputItem : InternalRealtimeResponseItem, IJsonModel { internal InternalRealtimeResponseFunctionCallOutputItem() : this(null, InternalRealtimeItemType.FunctionCallOutput, null, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseMessageItem.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseMessageItem.Serialization.cs index 36a6fa17a..1501fe24a 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseMessageItem.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseMessageItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeResponseMessageItem : IJsonModel + internal partial class InternalRealtimeResponseMessageItem : InternalRealtimeResponseItem, IJsonModel { internal InternalRealtimeResponseMessageItem() : this(null, InternalRealtimeItemType.Message, null, null, default, null, default) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseTextContentPart.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseTextContentPart.Serialization.cs index df9c03e78..03dd9d2e0 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseTextContentPart.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseTextContentPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeResponseTextContentPart : IJsonModel + internal partial class InternalRealtimeResponseTextContentPart : ConversationContentPart, IJsonModel { internal InternalRealtimeResponseTextContentPart() : this(ConversationContentPartKind.OutputText, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeSemanticVadTurnDetection.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeSemanticVadTurnDetection.Serialization.cs index 5cbe93781..2a016bf43 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSemanticVadTurnDetection.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSemanticVadTurnDetection.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeSemanticVadTurnDetection : IJsonModel + internal partial class InternalRealtimeSemanticVadTurnDetection : TurnDetectionOptions, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventConversationCreated.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventConversationCreated.Serialization.cs index 0addccb03..33a712c2c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventConversationCreated.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventConversationCreated.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventConversationCreated : IJsonModel + internal partial class InternalRealtimeServerEventConversationCreated : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventConversationCreated() : this(RealtimeUpdateKind.ConversationCreated, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferCleared.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferCleared.Serialization.cs index 98b2ce4d9..4643e6dde 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferCleared.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferCleared.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventOutputAudioBufferCleared : IJsonModel + internal partial class InternalRealtimeServerEventOutputAudioBufferCleared : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventOutputAudioBufferCleared() : this(RealtimeUpdateKind.OutputAudioBufferCleared, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStarted.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStarted.Serialization.cs index e90957568..16ccba27f 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStarted.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStarted.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventOutputAudioBufferStarted : IJsonModel + internal partial class InternalRealtimeServerEventOutputAudioBufferStarted : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventOutputAudioBufferStarted() : this(RealtimeUpdateKind.OutputAudioBufferStarted, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStopped.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStopped.Serialization.cs index 2b1e5f529..27bb77178 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStopped.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventOutputAudioBufferStopped.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventOutputAudioBufferStopped : IJsonModel + internal partial class InternalRealtimeServerEventOutputAudioBufferStopped : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventOutputAudioBufferStopped() : this(RealtimeUpdateKind.OutputAudioBufferStopped, null, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioDelta.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioDelta.Serialization.cs index e473a4fca..4fe20eff8 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioDelta.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioDelta.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventResponseAudioDelta : IJsonModel + internal partial class InternalRealtimeServerEventResponseAudioDelta : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventResponseAudioDelta() : this(RealtimeUpdateKind.ItemStreamingPartAudioDelta, null, null, null, null, default, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioTranscriptDelta.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioTranscriptDelta.Serialization.cs index db02d37b9..6425a15df 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioTranscriptDelta.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseAudioTranscriptDelta.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventResponseAudioTranscriptDelta : IJsonModel + internal partial class InternalRealtimeServerEventResponseAudioTranscriptDelta : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventResponseAudioTranscriptDelta() : this(RealtimeUpdateKind.ItemStreamingPartAudioTranscriptionDelta, null, null, null, null, default, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartAdded.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartAdded.Serialization.cs index b38fa5618..7caed253b 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartAdded.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartAdded.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventResponseContentPartAdded : IJsonModel + internal partial class InternalRealtimeServerEventResponseContentPartAdded : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventResponseContentPartAdded() : this(RealtimeUpdateKind.ItemContentPartStarted, null, null, null, null, default, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartDone.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartDone.Serialization.cs index b13c5b072..1edb59b5c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartDone.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseContentPartDone.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventResponseContentPartDone : IJsonModel + internal partial class InternalRealtimeServerEventResponseContentPartDone : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventResponseContentPartDone() : this(RealtimeUpdateKind.ItemContentPartFinished, null, null, null, null, default, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDelta.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDelta.Serialization.cs index 6c523ca13..fcd50a266 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDelta.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDelta.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventResponseFunctionCallArgumentsDelta : IJsonModel + internal partial class InternalRealtimeServerEventResponseFunctionCallArgumentsDelta : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventResponseFunctionCallArgumentsDelta() : this(RealtimeUpdateKind.ItemStreamingFunctionCallArgumentsDelta, null, null, null, null, default, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDone.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDone.Serialization.cs index 965159934..1f7d49308 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDone.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseFunctionCallArgumentsDone.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventResponseFunctionCallArgumentsDone : IJsonModel + internal partial class InternalRealtimeServerEventResponseFunctionCallArgumentsDone : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventResponseFunctionCallArgumentsDone() : this(RealtimeUpdateKind.ItemStreamingFunctionCallArgumentsFinished, null, null, null, null, default, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseTextDelta.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseTextDelta.Serialization.cs index 27a532086..4130f9110 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseTextDelta.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerEventResponseTextDelta.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerEventResponseTextDelta : IJsonModel + internal partial class InternalRealtimeServerEventResponseTextDelta : RealtimeUpdate, IJsonModel { internal InternalRealtimeServerEventResponseTextDelta() : this(RealtimeUpdateKind.ItemStreamingPartTextDelta, null, null, null, null, default, default, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeServerVadTurnDetection.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeServerVadTurnDetection.Serialization.cs index 51673050f..e7d13c754 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeServerVadTurnDetection.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeServerVadTurnDetection.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeServerVadTurnDetection : IJsonModel + internal partial class InternalRealtimeServerVadTurnDetection : TurnDetectionOptions, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs index cae237de8..550958829 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateResponse.Serialization.cs @@ -365,7 +365,8 @@ protected virtual InternalRealtimeSessionCreateResponse PersistableModelCreateCo public static explicit operator InternalRealtimeSessionCreateResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalRealtimeSessionCreateResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Realtime/InternalRealtimeToolChoiceFunctionObject.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeToolChoiceFunctionObject.Serialization.cs index 3f9d8c1a3..c8954422e 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeToolChoiceFunctionObject.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeToolChoiceFunctionObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalRealtimeToolChoiceFunctionObject : IJsonModel + internal partial class InternalRealtimeToolChoiceFunctionObject : InternalRealtimeToolChoiceObject, IJsonModel { internal InternalRealtimeToolChoiceFunctionObject() : this(default, null, null) { diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs index ebb6c1a31..8d9b6b231 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponse.Serialization.cs @@ -200,7 +200,8 @@ protected virtual InternalRealtimeTranscriptionSessionCreateResponse Persistable public static explicit operator InternalRealtimeTranscriptionSessionCreateResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalRealtimeTranscriptionSessionCreateResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Realtime/InternalUnknownRealtimeAudioNoiseReduction.Serialization.cs b/src/Generated/Models/Realtime/InternalUnknownRealtimeAudioNoiseReduction.Serialization.cs index af88c7585..d1cf9330b 100644 --- a/src/Generated/Models/Realtime/InternalUnknownRealtimeAudioNoiseReduction.Serialization.cs +++ b/src/Generated/Models/Realtime/InternalUnknownRealtimeAudioNoiseReduction.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class InternalUnknownRealtimeAudioNoiseReduction : IJsonModel + internal partial class InternalUnknownRealtimeAudioNoiseReduction : InputNoiseReductionOptions, IJsonModel { internal InternalUnknownRealtimeAudioNoiseReduction() : this(default, null) { diff --git a/src/Generated/Models/Realtime/ItemCreatedUpdate.Serialization.cs b/src/Generated/Models/Realtime/ItemCreatedUpdate.Serialization.cs index abe63777a..cb699fcbe 100644 --- a/src/Generated/Models/Realtime/ItemCreatedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ItemCreatedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ItemCreatedUpdate : IJsonModel + public partial class ItemCreatedUpdate : RealtimeUpdate, IJsonModel { internal ItemCreatedUpdate() : this(RealtimeUpdateKind.ItemCreated, null, null, null, null) { diff --git a/src/Generated/Models/Realtime/ItemDeletedUpdate.Serialization.cs b/src/Generated/Models/Realtime/ItemDeletedUpdate.Serialization.cs index ece092a63..ca9324a8c 100644 --- a/src/Generated/Models/Realtime/ItemDeletedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ItemDeletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ItemDeletedUpdate : IJsonModel + public partial class ItemDeletedUpdate : RealtimeUpdate, IJsonModel { internal ItemDeletedUpdate() : this(RealtimeUpdateKind.ItemDeleted, null, null, null) { diff --git a/src/Generated/Models/Realtime/ItemRetrievedUpdate.Serialization.cs b/src/Generated/Models/Realtime/ItemRetrievedUpdate.Serialization.cs index 14043245b..1ff6c328a 100644 --- a/src/Generated/Models/Realtime/ItemRetrievedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ItemRetrievedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ItemRetrievedUpdate : IJsonModel + public partial class ItemRetrievedUpdate : RealtimeUpdate, IJsonModel { internal ItemRetrievedUpdate() : this(RealtimeUpdateKind.ItemRetrieved, null, null, null) { diff --git a/src/Generated/Models/Realtime/ItemTruncatedUpdate.Serialization.cs b/src/Generated/Models/Realtime/ItemTruncatedUpdate.Serialization.cs index 32f328e5f..cdc200482 100644 --- a/src/Generated/Models/Realtime/ItemTruncatedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ItemTruncatedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ItemTruncatedUpdate : IJsonModel + public partial class ItemTruncatedUpdate : RealtimeUpdate, IJsonModel { internal ItemTruncatedUpdate() : this(RealtimeUpdateKind.ItemTruncated, null, null, null, default, default) { diff --git a/src/Generated/Models/Realtime/OutputAudioFinishedUpdate.Serialization.cs b/src/Generated/Models/Realtime/OutputAudioFinishedUpdate.Serialization.cs index 4d98cb820..15c521f7b 100644 --- a/src/Generated/Models/Realtime/OutputAudioFinishedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/OutputAudioFinishedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class OutputAudioFinishedUpdate : IJsonModel + public partial class OutputAudioFinishedUpdate : RealtimeUpdate, IJsonModel { internal OutputAudioFinishedUpdate() : this(RealtimeUpdateKind.ItemStreamingPartAudioFinished, null, null, null, null, default, default) { diff --git a/src/Generated/Models/Realtime/OutputAudioTranscriptionFinishedUpdate.Serialization.cs b/src/Generated/Models/Realtime/OutputAudioTranscriptionFinishedUpdate.Serialization.cs index bcdd5c96e..6ca5c46d6 100644 --- a/src/Generated/Models/Realtime/OutputAudioTranscriptionFinishedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/OutputAudioTranscriptionFinishedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class OutputAudioTranscriptionFinishedUpdate : IJsonModel + public partial class OutputAudioTranscriptionFinishedUpdate : RealtimeUpdate, IJsonModel { internal OutputAudioTranscriptionFinishedUpdate() : this(RealtimeUpdateKind.ItemStreamingPartAudioTranscriptionFinished, null, null, null, null, default, default, null) { diff --git a/src/Generated/Models/Realtime/OutputStreamingFinishedUpdate.Serialization.cs b/src/Generated/Models/Realtime/OutputStreamingFinishedUpdate.Serialization.cs index cebd5c528..4c8859934 100644 --- a/src/Generated/Models/Realtime/OutputStreamingFinishedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/OutputStreamingFinishedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class OutputStreamingFinishedUpdate : IJsonModel + public partial class OutputStreamingFinishedUpdate : RealtimeUpdate, IJsonModel { internal OutputStreamingFinishedUpdate() : this(RealtimeUpdateKind.ItemStreamingFinished, null, null, null, default, null) { diff --git a/src/Generated/Models/Realtime/OutputStreamingStartedUpdate.Serialization.cs b/src/Generated/Models/Realtime/OutputStreamingStartedUpdate.Serialization.cs index 1049862df..c91122d8e 100644 --- a/src/Generated/Models/Realtime/OutputStreamingStartedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/OutputStreamingStartedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class OutputStreamingStartedUpdate : IJsonModel + public partial class OutputStreamingStartedUpdate : RealtimeUpdate, IJsonModel { internal OutputStreamingStartedUpdate() : this(RealtimeUpdateKind.ItemStreamingStarted, null, null, null, default, null) { diff --git a/src/Generated/Models/Realtime/OutputTextFinishedUpdate.Serialization.cs b/src/Generated/Models/Realtime/OutputTextFinishedUpdate.Serialization.cs index ec3b15f5c..5662f2b48 100644 --- a/src/Generated/Models/Realtime/OutputTextFinishedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/OutputTextFinishedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class OutputTextFinishedUpdate : IJsonModel + public partial class OutputTextFinishedUpdate : RealtimeUpdate, IJsonModel { internal OutputTextFinishedUpdate() : this(RealtimeUpdateKind.ItemStreamingPartTextFinished, null, null, null, null, default, default, null) { diff --git a/src/Generated/Models/Realtime/RateLimitsUpdate.Serialization.cs b/src/Generated/Models/Realtime/RateLimitsUpdate.Serialization.cs index 75a960547..56e7975ee 100644 --- a/src/Generated/Models/Realtime/RateLimitsUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/RateLimitsUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class RateLimitsUpdate : IJsonModel + public partial class RateLimitsUpdate : RealtimeUpdate, IJsonModel { internal RateLimitsUpdate() : this(RealtimeUpdateKind.RateLimitsUpdated, null, null, null) { diff --git a/src/Generated/Models/Realtime/RealtimeErrorUpdate.Serialization.cs b/src/Generated/Models/Realtime/RealtimeErrorUpdate.Serialization.cs index b8d66b8ad..0ac5bd3d2 100644 --- a/src/Generated/Models/Realtime/RealtimeErrorUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/RealtimeErrorUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class RealtimeErrorUpdate : IJsonModel + public partial class RealtimeErrorUpdate : RealtimeUpdate, IJsonModel { internal RealtimeErrorUpdate() : this(RealtimeUpdateKind.Error, null, null, null) { diff --git a/src/Generated/Models/Realtime/ResponseFinishedUpdate.Serialization.cs b/src/Generated/Models/Realtime/ResponseFinishedUpdate.Serialization.cs index 9b778301b..1cc470fee 100644 --- a/src/Generated/Models/Realtime/ResponseFinishedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ResponseFinishedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ResponseFinishedUpdate : IJsonModel + public partial class ResponseFinishedUpdate : RealtimeUpdate, IJsonModel { internal ResponseFinishedUpdate() : this(RealtimeUpdateKind.ResponseFinished, null, null, null) { diff --git a/src/Generated/Models/Realtime/ResponseStartedUpdate.Serialization.cs b/src/Generated/Models/Realtime/ResponseStartedUpdate.Serialization.cs index 3ed4709f8..bc0d189f4 100644 --- a/src/Generated/Models/Realtime/ResponseStartedUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/ResponseStartedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class ResponseStartedUpdate : IJsonModel + public partial class ResponseStartedUpdate : RealtimeUpdate, IJsonModel { internal ResponseStartedUpdate() : this(RealtimeUpdateKind.ResponseStarted, null, null, null) { diff --git a/src/Generated/Models/Realtime/TranscriptionSessionConfiguredUpdate.Serialization.cs b/src/Generated/Models/Realtime/TranscriptionSessionConfiguredUpdate.Serialization.cs index fdccd672b..29f8aa283 100644 --- a/src/Generated/Models/Realtime/TranscriptionSessionConfiguredUpdate.Serialization.cs +++ b/src/Generated/Models/Realtime/TranscriptionSessionConfiguredUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - public partial class TranscriptionSessionConfiguredUpdate : IJsonModel + public partial class TranscriptionSessionConfiguredUpdate : RealtimeUpdate, IJsonModel { internal TranscriptionSessionConfiguredUpdate() : this(RealtimeUpdateKind.TranscriptionSessionConfigured, null, null, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeClientEvent.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeClientEvent.Serialization.cs index 30903be2c..e292d7bf3 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeClientEvent.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeClientEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeClientEvent : IJsonModel + internal partial class UnknownRealtimeClientEvent : InternalRealtimeClientEvent, IJsonModel { internal UnknownRealtimeClientEvent() : this(default, null, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeContentPart.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeContentPart.Serialization.cs index 150bf8ca4..e40750156 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeContentPart.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeContentPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeContentPart : IJsonModel + internal partial class UnknownRealtimeContentPart : ConversationContentPart, IJsonModel { internal UnknownRealtimeContentPart() : this(default, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeRequestItem.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeRequestItem.Serialization.cs index 2cc565dc8..06e802737 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeRequestItem.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeRequestItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeRequestItem : IJsonModel + internal partial class UnknownRealtimeRequestItem : RealtimeItem, IJsonModel { internal UnknownRealtimeRequestItem() : this(default, null, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeRequestMessageItem.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeRequestMessageItem.Serialization.cs index d60164892..44fd02f9c 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeRequestMessageItem.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeRequestMessageItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeRequestMessageItem : IJsonModel + internal partial class UnknownRealtimeRequestMessageItem : InternalRealtimeRequestMessageItem, IJsonModel { internal UnknownRealtimeRequestMessageItem() : this(default, null, null, default, default) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeResponseItem.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeResponseItem.Serialization.cs index be4bc8b49..6764fdb6c 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeResponseItem.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeResponseItem : IJsonModel + internal partial class UnknownRealtimeResponseItem : InternalRealtimeResponseItem, IJsonModel { internal UnknownRealtimeResponseItem() : this(null, default, null, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeServerEvent.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeServerEvent.Serialization.cs index 8bb72eb5a..799255601 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeServerEvent.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeServerEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeServerEvent : IJsonModel + internal partial class UnknownRealtimeServerEvent : RealtimeUpdate, IJsonModel { internal UnknownRealtimeServerEvent() : this(default, null, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeTool.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeTool.Serialization.cs index 7a98547d0..af3b10bfd 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeTool.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeTool : IJsonModel + internal partial class UnknownRealtimeTool : ConversationTool, IJsonModel { internal UnknownRealtimeTool() : this(default, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeToolChoiceObject.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeToolChoiceObject.Serialization.cs index 8d32474df..02bdd9925 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeToolChoiceObject.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeToolChoiceObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeToolChoiceObject : IJsonModel + internal partial class UnknownRealtimeToolChoiceObject : InternalRealtimeToolChoiceObject, IJsonModel { internal UnknownRealtimeToolChoiceObject() : this(default, null) { diff --git a/src/Generated/Models/Realtime/UnknownRealtimeTurnDetection.Serialization.cs b/src/Generated/Models/Realtime/UnknownRealtimeTurnDetection.Serialization.cs index 63daae81e..9cb51db36 100644 --- a/src/Generated/Models/Realtime/UnknownRealtimeTurnDetection.Serialization.cs +++ b/src/Generated/Models/Realtime/UnknownRealtimeTurnDetection.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { - internal partial class UnknownRealtimeTurnDetection : IJsonModel + internal partial class UnknownRealtimeTurnDetection : TurnDetectionOptions, IJsonModel { internal UnknownRealtimeTurnDetection() : this(default, default, default, null) { diff --git a/src/Generated/Models/Responses/AutomaticCodeInterpreterToolContainerConfiguration.Serialization.cs b/src/Generated/Models/Responses/AutomaticCodeInterpreterToolContainerConfiguration.Serialization.cs index f5aa05ec1..9e3af73c6 100644 --- a/src/Generated/Models/Responses/AutomaticCodeInterpreterToolContainerConfiguration.Serialization.cs +++ b/src/Generated/Models/Responses/AutomaticCodeInterpreterToolContainerConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class AutomaticCodeInterpreterToolContainerConfiguration : IJsonModel + public partial class AutomaticCodeInterpreterToolContainerConfiguration : CodeInterpreterToolContainerConfiguration, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/CodeInterpreterCallImageOutput.Serialization.cs b/src/Generated/Models/Responses/CodeInterpreterCallImageOutput.Serialization.cs index c626c20eb..3f7c713e4 100644 --- a/src/Generated/Models/Responses/CodeInterpreterCallImageOutput.Serialization.cs +++ b/src/Generated/Models/Responses/CodeInterpreterCallImageOutput.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class CodeInterpreterCallImageOutput : IJsonModel + public partial class CodeInterpreterCallImageOutput : CodeInterpreterCallOutput, IJsonModel { internal CodeInterpreterCallImageOutput() : this(InternalCodeInterpreterToolOutputType.Image, null, null) { diff --git a/src/Generated/Models/Responses/CodeInterpreterCallLogsOutput.Serialization.cs b/src/Generated/Models/Responses/CodeInterpreterCallLogsOutput.Serialization.cs index d95f3a534..0946be354 100644 --- a/src/Generated/Models/Responses/CodeInterpreterCallLogsOutput.Serialization.cs +++ b/src/Generated/Models/Responses/CodeInterpreterCallLogsOutput.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class CodeInterpreterCallLogsOutput : IJsonModel + public partial class CodeInterpreterCallLogsOutput : CodeInterpreterCallOutput, IJsonModel { internal CodeInterpreterCallLogsOutput() : this(InternalCodeInterpreterToolOutputType.Logs, null, null) { diff --git a/src/Generated/Models/Responses/CodeInterpreterCallResponseItem.Serialization.cs b/src/Generated/Models/Responses/CodeInterpreterCallResponseItem.Serialization.cs index 22b689d70..756fb4bc6 100644 --- a/src/Generated/Models/Responses/CodeInterpreterCallResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/CodeInterpreterCallResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class CodeInterpreterCallResponseItem : IJsonModel + public partial class CodeInterpreterCallResponseItem : ResponseItem, IJsonModel { internal CodeInterpreterCallResponseItem() : this(InternalItemType.CodeInterpreterCall, null, null, default, null, null, null) { diff --git a/src/Generated/Models/Responses/CodeInterpreterTool.Serialization.cs b/src/Generated/Models/Responses/CodeInterpreterTool.Serialization.cs index 373a9620f..4df77ed82 100644 --- a/src/Generated/Models/Responses/CodeInterpreterTool.Serialization.cs +++ b/src/Generated/Models/Responses/CodeInterpreterTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class CodeInterpreterTool : IJsonModel + public partial class CodeInterpreterTool : ResponseTool, IJsonModel { internal CodeInterpreterTool() : this(InternalToolType.CodeInterpreter, null, null) { diff --git a/src/Generated/Models/Responses/ComputerCallOutputResponseItem.Serialization.cs b/src/Generated/Models/Responses/ComputerCallOutputResponseItem.Serialization.cs index 70c70cde2..beb3eb912 100644 --- a/src/Generated/Models/Responses/ComputerCallOutputResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/ComputerCallOutputResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ComputerCallOutputResponseItem : IJsonModel + public partial class ComputerCallOutputResponseItem : ResponseItem, IJsonModel { internal ComputerCallOutputResponseItem() : this(InternalItemType.ComputerCallOutput, null, null, default, null, null, null) { diff --git a/src/Generated/Models/Responses/ComputerCallResponseItem.Serialization.cs b/src/Generated/Models/Responses/ComputerCallResponseItem.Serialization.cs index 4699c0556..ce66f5f24 100644 --- a/src/Generated/Models/Responses/ComputerCallResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/ComputerCallResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ComputerCallResponseItem : IJsonModel + public partial class ComputerCallResponseItem : ResponseItem, IJsonModel { internal ComputerCallResponseItem() : this(InternalItemType.ComputerCall, null, null, default, null, null, null) { diff --git a/src/Generated/Models/Responses/ComputerTool.Serialization.cs b/src/Generated/Models/Responses/ComputerTool.Serialization.cs index 8bbb569d4..e043c1666 100644 --- a/src/Generated/Models/Responses/ComputerTool.Serialization.cs +++ b/src/Generated/Models/Responses/ComputerTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ComputerTool : IJsonModel + public partial class ComputerTool : ResponseTool, IJsonModel { internal ComputerTool() : this(InternalToolType.ComputerUsePreview, null, default, default, default) { diff --git a/src/Generated/Models/Responses/FileCitationMessageAnnotation.Serialization.cs b/src/Generated/Models/Responses/FileCitationMessageAnnotation.Serialization.cs index 6b9536fc7..d4ea06223 100644 --- a/src/Generated/Models/Responses/FileCitationMessageAnnotation.Serialization.cs +++ b/src/Generated/Models/Responses/FileCitationMessageAnnotation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class FileCitationMessageAnnotation : IJsonModel + public partial class FileCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel { internal FileCitationMessageAnnotation() : this(ResponseMessageAnnotationKind.FileCitation, null, null, default) { diff --git a/src/Generated/Models/Responses/FilePathMessageAnnotation.Serialization.cs b/src/Generated/Models/Responses/FilePathMessageAnnotation.Serialization.cs index 5e9a43724..ad8c57169 100644 --- a/src/Generated/Models/Responses/FilePathMessageAnnotation.Serialization.cs +++ b/src/Generated/Models/Responses/FilePathMessageAnnotation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class FilePathMessageAnnotation : IJsonModel + public partial class FilePathMessageAnnotation : ResponseMessageAnnotation, IJsonModel { internal FilePathMessageAnnotation() : this(ResponseMessageAnnotationKind.FilePath, null, null, default) { diff --git a/src/Generated/Models/Responses/FileSearchCallResponseItem.Serialization.cs b/src/Generated/Models/Responses/FileSearchCallResponseItem.Serialization.cs index edeb18110..36acc46f6 100644 --- a/src/Generated/Models/Responses/FileSearchCallResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/FileSearchCallResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class FileSearchCallResponseItem : IJsonModel + public partial class FileSearchCallResponseItem : ResponseItem, IJsonModel { internal FileSearchCallResponseItem() : this(InternalItemType.FileSearchCall, null, null, default, null, null) { diff --git a/src/Generated/Models/Responses/FileSearchTool.Serialization.cs b/src/Generated/Models/Responses/FileSearchTool.Serialization.cs index 8f453e15d..5bad0310a 100644 --- a/src/Generated/Models/Responses/FileSearchTool.Serialization.cs +++ b/src/Generated/Models/Responses/FileSearchTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class FileSearchTool : IJsonModel + public partial class FileSearchTool : ResponseTool, IJsonModel { internal FileSearchTool() : this(InternalToolType.FileSearch, null, null, default, null, null) { diff --git a/src/Generated/Models/Responses/FunctionCallOutputResponseItem.Serialization.cs b/src/Generated/Models/Responses/FunctionCallOutputResponseItem.Serialization.cs index 9e0db6db5..4280f6c2e 100644 --- a/src/Generated/Models/Responses/FunctionCallOutputResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/FunctionCallOutputResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class FunctionCallOutputResponseItem : IJsonModel + public partial class FunctionCallOutputResponseItem : ResponseItem, IJsonModel { internal FunctionCallOutputResponseItem() : this(InternalItemType.FunctionCallOutput, null, null, default, null, null) { diff --git a/src/Generated/Models/Responses/FunctionCallResponseItem.Serialization.cs b/src/Generated/Models/Responses/FunctionCallResponseItem.Serialization.cs index 53e038079..2564316da 100644 --- a/src/Generated/Models/Responses/FunctionCallResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/FunctionCallResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class FunctionCallResponseItem : IJsonModel + public partial class FunctionCallResponseItem : ResponseItem, IJsonModel { internal FunctionCallResponseItem() : this(InternalItemType.FunctionCall, null, null, default, null, null, null) { diff --git a/src/Generated/Models/Responses/FunctionTool.Serialization.cs b/src/Generated/Models/Responses/FunctionTool.Serialization.cs index 92f3e8acf..e8be7ffa8 100644 --- a/src/Generated/Models/Responses/FunctionTool.Serialization.cs +++ b/src/Generated/Models/Responses/FunctionTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class FunctionTool : IJsonModel + public partial class FunctionTool : ResponseTool, IJsonModel { internal FunctionTool() : this(InternalToolType.Function, null, null, null, null, default) { diff --git a/src/Generated/Models/Responses/ImageGenerationCallResponseItem.Serialization.cs b/src/Generated/Models/Responses/ImageGenerationCallResponseItem.Serialization.cs index bcaf7213f..d452bff67 100644 --- a/src/Generated/Models/Responses/ImageGenerationCallResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/ImageGenerationCallResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ImageGenerationCallResponseItem : IJsonModel + public partial class ImageGenerationCallResponseItem : ResponseItem, IJsonModel { internal ImageGenerationCallResponseItem() : this(InternalItemType.ImageGenerationCall, null, null, default, null) { diff --git a/src/Generated/Models/Responses/ImageGenerationTool.Serialization.cs b/src/Generated/Models/Responses/ImageGenerationTool.Serialization.cs index db7307635..d5a7a8a13 100644 --- a/src/Generated/Models/Responses/ImageGenerationTool.Serialization.cs +++ b/src/Generated/Models/Responses/ImageGenerationTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ImageGenerationTool : IJsonModel + public partial class ImageGenerationTool : ResponseTool, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemParam.Serialization.cs index 1aee218e8..54c77965d 100644 --- a/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalCodeInterpreterToolCallItemParam : IJsonModel + internal partial class InternalCodeInterpreterToolCallItemParam : InternalItemParam, IJsonModel { internal InternalCodeInterpreterToolCallItemParam() : this(InternalItemType.CodeInterpreterCall, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalComparisonFilterEquals.Serialization.cs b/src/Generated/Models/Responses/InternalComparisonFilterEquals.Serialization.cs index 8083cdec8..9939c0e7d 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterEquals.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterEquals.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComparisonFilterEquals : IJsonModel + internal partial class InternalComparisonFilterEquals : InternalComparisonFilter, IJsonModel { internal InternalComparisonFilterEquals() : this(InternalComparisonFilterType.Eq, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalComparisonFilterGreaterThan.Serialization.cs b/src/Generated/Models/Responses/InternalComparisonFilterGreaterThan.Serialization.cs index 0db5038af..6f3cb90f0 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterGreaterThan.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterGreaterThan.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComparisonFilterGreaterThan : IJsonModel + internal partial class InternalComparisonFilterGreaterThan : InternalComparisonFilter, IJsonModel { internal InternalComparisonFilterGreaterThan() : this(InternalComparisonFilterType.Gt, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalComparisonFilterGreaterThanOrEquals.Serialization.cs b/src/Generated/Models/Responses/InternalComparisonFilterGreaterThanOrEquals.Serialization.cs index b56d642f5..941608fd0 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterGreaterThanOrEquals.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterGreaterThanOrEquals.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComparisonFilterGreaterThanOrEquals : IJsonModel + internal partial class InternalComparisonFilterGreaterThanOrEquals : InternalComparisonFilter, IJsonModel { internal InternalComparisonFilterGreaterThanOrEquals() : this(InternalComparisonFilterType.Gte, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalComparisonFilterLessThan.Serialization.cs b/src/Generated/Models/Responses/InternalComparisonFilterLessThan.Serialization.cs index e0eb98469..c9ee53430 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterLessThan.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterLessThan.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComparisonFilterLessThan : IJsonModel + internal partial class InternalComparisonFilterLessThan : InternalComparisonFilter, IJsonModel { internal InternalComparisonFilterLessThan() : this(InternalComparisonFilterType.Lt, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalComparisonFilterLessThanOrEquals.Serialization.cs b/src/Generated/Models/Responses/InternalComparisonFilterLessThanOrEquals.Serialization.cs index 8adb1fdb9..c045ce1ed 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterLessThanOrEquals.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterLessThanOrEquals.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComparisonFilterLessThanOrEquals : IJsonModel + internal partial class InternalComparisonFilterLessThanOrEquals : InternalComparisonFilter, IJsonModel { internal InternalComparisonFilterLessThanOrEquals() : this(InternalComparisonFilterType.Lte, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalComparisonFilterNotEquals.Serialization.cs b/src/Generated/Models/Responses/InternalComparisonFilterNotEquals.Serialization.cs index a8ba19697..c22ff0f0d 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterNotEquals.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterNotEquals.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComparisonFilterNotEquals : IJsonModel + internal partial class InternalComparisonFilterNotEquals : InternalComparisonFilter, IJsonModel { internal InternalComparisonFilterNotEquals() : this(InternalComparisonFilterType.Ne, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalCompoundFilterAnd.Serialization.cs b/src/Generated/Models/Responses/InternalCompoundFilterAnd.Serialization.cs index 27ce40a28..88819e9d0 100644 --- a/src/Generated/Models/Responses/InternalCompoundFilterAnd.Serialization.cs +++ b/src/Generated/Models/Responses/InternalCompoundFilterAnd.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalCompoundFilterAnd : IJsonModel + internal partial class InternalCompoundFilterAnd : InternalCompoundFilter, IJsonModel { internal InternalCompoundFilterAnd() : this(InternalCompoundFilterType.And, null, null) { diff --git a/src/Generated/Models/Responses/InternalCompoundFilterOr.Serialization.cs b/src/Generated/Models/Responses/InternalCompoundFilterOr.Serialization.cs index 4a348c523..45269a660 100644 --- a/src/Generated/Models/Responses/InternalCompoundFilterOr.Serialization.cs +++ b/src/Generated/Models/Responses/InternalCompoundFilterOr.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalCompoundFilterOr : IJsonModel + internal partial class InternalCompoundFilterOr : InternalCompoundFilter, IJsonModel { internal InternalCompoundFilterOr() : this(InternalCompoundFilterType.Or, null, null) { diff --git a/src/Generated/Models/Responses/InternalComputerActionClick.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionClick.Serialization.cs index 0c61cf382..dbac17e6c 100644 --- a/src/Generated/Models/Responses/InternalComputerActionClick.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionClick.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionClick : IJsonModel + internal partial class InternalComputerActionClick : ComputerCallAction, IJsonModel { internal InternalComputerActionClick() : this(ComputerCallActionKind.Click, null, default, default, default) { diff --git a/src/Generated/Models/Responses/InternalComputerActionDoubleClick.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionDoubleClick.Serialization.cs index e386fbacd..8ec9f46cc 100644 --- a/src/Generated/Models/Responses/InternalComputerActionDoubleClick.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionDoubleClick.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionDoubleClick : IJsonModel + internal partial class InternalComputerActionDoubleClick : ComputerCallAction, IJsonModel { internal InternalComputerActionDoubleClick() : this(ComputerCallActionKind.DoubleClick, null, default, default) { diff --git a/src/Generated/Models/Responses/InternalComputerActionDrag.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionDrag.Serialization.cs index c5ba48bd6..b8d7d8ce6 100644 --- a/src/Generated/Models/Responses/InternalComputerActionDrag.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionDrag.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionDrag : IJsonModel + internal partial class InternalComputerActionDrag : ComputerCallAction, IJsonModel { internal InternalComputerActionDrag() : this(ComputerCallActionKind.Drag, null, null) { diff --git a/src/Generated/Models/Responses/InternalComputerActionKeyPress.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionKeyPress.Serialization.cs index 4aa14190a..742277834 100644 --- a/src/Generated/Models/Responses/InternalComputerActionKeyPress.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionKeyPress.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionKeyPress : IJsonModel + internal partial class InternalComputerActionKeyPress : ComputerCallAction, IJsonModel { internal InternalComputerActionKeyPress() : this(ComputerCallActionKind.KeyPress, null, null) { diff --git a/src/Generated/Models/Responses/InternalComputerActionMove.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionMove.Serialization.cs index 8ae78d751..8cda9ef86 100644 --- a/src/Generated/Models/Responses/InternalComputerActionMove.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionMove.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionMove : IJsonModel + internal partial class InternalComputerActionMove : ComputerCallAction, IJsonModel { internal InternalComputerActionMove() : this(ComputerCallActionKind.Move, null, default, default) { diff --git a/src/Generated/Models/Responses/InternalComputerActionScreenshot.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionScreenshot.Serialization.cs index b9badc60a..6d00ef92e 100644 --- a/src/Generated/Models/Responses/InternalComputerActionScreenshot.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionScreenshot.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionScreenshot : IJsonModel + internal partial class InternalComputerActionScreenshot : ComputerCallAction, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalComputerActionScroll.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionScroll.Serialization.cs index 6a8369c3f..704766b2e 100644 --- a/src/Generated/Models/Responses/InternalComputerActionScroll.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionScroll.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionScroll : IJsonModel + internal partial class InternalComputerActionScroll : ComputerCallAction, IJsonModel { internal InternalComputerActionScroll() : this(ComputerCallActionKind.Scroll, null, default, default, default, default) { diff --git a/src/Generated/Models/Responses/InternalComputerActionTypeKeys.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionTypeKeys.Serialization.cs index 90fbd833e..a8241ff59 100644 --- a/src/Generated/Models/Responses/InternalComputerActionTypeKeys.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionTypeKeys.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionTypeKeys : IJsonModel + internal partial class InternalComputerActionTypeKeys : ComputerCallAction, IJsonModel { internal InternalComputerActionTypeKeys() : this(ComputerCallActionKind.Type, null, null) { diff --git a/src/Generated/Models/Responses/InternalComputerActionWait.Serialization.cs b/src/Generated/Models/Responses/InternalComputerActionWait.Serialization.cs index 5e913a6db..43d24e921 100644 --- a/src/Generated/Models/Responses/InternalComputerActionWait.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerActionWait.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerActionWait : IJsonModel + internal partial class InternalComputerActionWait : ComputerCallAction, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalComputerToolCallOutputItemOutputComputerScreenshot.Serialization.cs b/src/Generated/Models/Responses/InternalComputerToolCallOutputItemOutputComputerScreenshot.Serialization.cs index 16eade16b..767299cab 100644 --- a/src/Generated/Models/Responses/InternalComputerToolCallOutputItemOutputComputerScreenshot.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerToolCallOutputItemOutputComputerScreenshot.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerToolCallOutputItemOutputComputerScreenshot : IJsonModel + internal partial class InternalComputerToolCallOutputItemOutputComputerScreenshot : ComputerCallOutput, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallItemParam.Serialization.cs index e7695db6b..801116548 100644 --- a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerUsePreviewToolCallItemParam : IJsonModel + internal partial class InternalComputerUsePreviewToolCallItemParam : InternalItemParam, IJsonModel { internal InternalComputerUsePreviewToolCallItemParam() : this(InternalItemType.ComputerCall, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputItemParam.Serialization.cs index c1fa12fd2..514459bc1 100644 --- a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalComputerUsePreviewToolCallOutputItemParam : IJsonModel + internal partial class InternalComputerUsePreviewToolCallOutputItemParam : InternalItemParam, IJsonModel { internal InternalComputerUsePreviewToolCallOutputItemParam() : this(InternalItemType.ComputerCallOutput, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalFileSearchToolCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalFileSearchToolCallItemParam.Serialization.cs index b4df39b01..dac249fe9 100644 --- a/src/Generated/Models/Responses/InternalFileSearchToolCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalFileSearchToolCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalFileSearchToolCallItemParam : IJsonModel + internal partial class InternalFileSearchToolCallItemParam : InternalItemParam, IJsonModel { internal InternalFileSearchToolCallItemParam() : this(InternalItemType.FileSearchCall, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalFunctionToolCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalFunctionToolCallItemParam.Serialization.cs index 75386b40b..9ef484f65 100644 --- a/src/Generated/Models/Responses/InternalFunctionToolCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalFunctionToolCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalFunctionToolCallItemParam : IJsonModel + internal partial class InternalFunctionToolCallItemParam : InternalItemParam, IJsonModel { internal InternalFunctionToolCallItemParam() : this(InternalItemType.FunctionCall, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalFunctionToolCallOutputItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalFunctionToolCallOutputItemParam.Serialization.cs index 48d3e030c..2be7acafe 100644 --- a/src/Generated/Models/Responses/InternalFunctionToolCallOutputItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalFunctionToolCallOutputItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalFunctionToolCallOutputItemParam : IJsonModel + internal partial class InternalFunctionToolCallOutputItemParam : InternalItemParam, IJsonModel { internal InternalFunctionToolCallOutputItemParam() : this(InternalItemType.FunctionCallOutput, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalImageGenToolCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalImageGenToolCallItemParam.Serialization.cs index a03cb8f6a..ca426cee4 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalImageGenToolCallItemParam : IJsonModel + internal partial class InternalImageGenToolCallItemParam : InternalItemParam, IJsonModel { internal InternalImageGenToolCallItemParam() : this(InternalItemType.ImageGenerationCall, null, null) { diff --git a/src/Generated/Models/Responses/InternalItemContentInputAudio.Serialization.cs b/src/Generated/Models/Responses/InternalItemContentInputAudio.Serialization.cs index 8b218c4b5..dc0ec06ae 100644 --- a/src/Generated/Models/Responses/InternalItemContentInputAudio.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemContentInputAudio.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemContentInputAudio : IJsonModel + internal partial class InternalItemContentInputAudio : ResponseContentPart, IJsonModel { internal InternalItemContentInputAudio() : this(InternalItemContentType.InputAudio, null, null, default) { diff --git a/src/Generated/Models/Responses/InternalItemContentInputFile.Serialization.cs b/src/Generated/Models/Responses/InternalItemContentInputFile.Serialization.cs index eeede01ba..aa286ee3f 100644 --- a/src/Generated/Models/Responses/InternalItemContentInputFile.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemContentInputFile.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemContentInputFile : IJsonModel + internal partial class InternalItemContentInputFile : ResponseContentPart, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalItemContentInputImage.Serialization.cs b/src/Generated/Models/Responses/InternalItemContentInputImage.Serialization.cs index fc056604f..e3232dfca 100644 --- a/src/Generated/Models/Responses/InternalItemContentInputImage.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemContentInputImage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemContentInputImage : IJsonModel + internal partial class InternalItemContentInputImage : ResponseContentPart, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalItemContentInputText.Serialization.cs b/src/Generated/Models/Responses/InternalItemContentInputText.Serialization.cs index e7bf76fb3..5eab8ddf3 100644 --- a/src/Generated/Models/Responses/InternalItemContentInputText.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemContentInputText.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemContentInputText : IJsonModel + internal partial class InternalItemContentInputText : ResponseContentPart, IJsonModel { internal InternalItemContentInputText() : this(InternalItemContentType.InputText, null, null) { diff --git a/src/Generated/Models/Responses/InternalItemContentOutputAudio.Serialization.cs b/src/Generated/Models/Responses/InternalItemContentOutputAudio.Serialization.cs index 9f4d0ec32..7566ae61e 100644 --- a/src/Generated/Models/Responses/InternalItemContentOutputAudio.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemContentOutputAudio.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemContentOutputAudio : IJsonModel + internal partial class InternalItemContentOutputAudio : ResponseContentPart, IJsonModel { internal InternalItemContentOutputAudio() : this(InternalItemContentType.OutputAudio, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalItemContentOutputText.Serialization.cs b/src/Generated/Models/Responses/InternalItemContentOutputText.Serialization.cs index d72be216b..d5a58161d 100644 --- a/src/Generated/Models/Responses/InternalItemContentOutputText.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemContentOutputText.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemContentOutputText : IJsonModel + internal partial class InternalItemContentOutputText : ResponseContentPart, IJsonModel { internal InternalItemContentOutputText() : this(InternalItemContentType.OutputText, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalItemContentRefusal.Serialization.cs b/src/Generated/Models/Responses/InternalItemContentRefusal.Serialization.cs index a0bda25af..3170eee92 100644 --- a/src/Generated/Models/Responses/InternalItemContentRefusal.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemContentRefusal.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemContentRefusal : IJsonModel + internal partial class InternalItemContentRefusal : ResponseContentPart, IJsonModel { internal InternalItemContentRefusal() : this(InternalItemContentType.Refusal, null, null) { diff --git a/src/Generated/Models/Responses/InternalItemReferenceItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalItemReferenceItemParam.Serialization.cs index 97aa6c43d..9f2a0d6ea 100644 --- a/src/Generated/Models/Responses/InternalItemReferenceItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalItemReferenceItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalItemReferenceItemParam : IJsonModel + internal partial class InternalItemReferenceItemParam : InternalItemParam, IJsonModel { internal InternalItemReferenceItemParam() : this(InternalItemType.ItemReference, null, null) { diff --git a/src/Generated/Models/Responses/InternalLocalShellTool.Serialization.cs b/src/Generated/Models/Responses/InternalLocalShellTool.Serialization.cs index df3a0ac26..661c5ca67 100644 --- a/src/Generated/Models/Responses/InternalLocalShellTool.Serialization.cs +++ b/src/Generated/Models/Responses/InternalLocalShellTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalLocalShellTool : IJsonModel + internal partial class InternalLocalShellTool : ResponseTool, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallItemParam.Serialization.cs index 9300005f2..b6f5396cc 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalLocalShellToolCallItemParam : IJsonModel + internal partial class InternalLocalShellToolCallItemParam : InternalItemParam, IJsonModel { internal InternalLocalShellToolCallItemParam() : this(InternalItemType.LocalShellCall, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallItemResource.Serialization.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallItemResource.Serialization.cs index f3cd86f24..92bf509b3 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallItemResource.Serialization.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallItemResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalLocalShellToolCallItemResource : IJsonModel + internal partial class InternalLocalShellToolCallItemResource : ResponseItem, IJsonModel { internal InternalLocalShellToolCallItemResource() : this(InternalItemType.LocalShellCall, null, null, default, null, null) { diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemParam.Serialization.cs index 7d25dbe55..947cbf19c 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalLocalShellToolCallOutputItemParam : IJsonModel + internal partial class InternalLocalShellToolCallOutputItemParam : InternalItemParam, IJsonModel { internal InternalLocalShellToolCallOutputItemParam() : this(InternalItemType.LocalShellCallOutput, null, null) { diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResource.Serialization.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResource.Serialization.cs index 16fd27d93..1e0b164c7 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResource.Serialization.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalLocalShellToolCallOutputItemResource : IJsonModel + internal partial class InternalLocalShellToolCallOutputItemResource : ResponseItem, IJsonModel { internal InternalLocalShellToolCallOutputItemResource() : this(InternalItemType.LocalShellCallOutput, null, null, default, null) { diff --git a/src/Generated/Models/Responses/InternalMCPApprovalRequestItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalMCPApprovalRequestItemParam.Serialization.cs index d2a461d05..440f663d2 100644 --- a/src/Generated/Models/Responses/InternalMCPApprovalRequestItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalMCPApprovalRequestItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalMCPApprovalRequestItemParam : IJsonModel + internal partial class InternalMCPApprovalRequestItemParam : InternalItemParam, IJsonModel { internal InternalMCPApprovalRequestItemParam() : this(InternalItemType.McpApprovalRequest, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalMCPApprovalResponseItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalMCPApprovalResponseItemParam.Serialization.cs index a73c29348..9d978c13e 100644 --- a/src/Generated/Models/Responses/InternalMCPApprovalResponseItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalMCPApprovalResponseItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalMCPApprovalResponseItemParam : IJsonModel + internal partial class InternalMCPApprovalResponseItemParam : InternalItemParam, IJsonModel { internal InternalMCPApprovalResponseItemParam() : this(InternalItemType.McpApprovalResponse, null, null, default, null) { diff --git a/src/Generated/Models/Responses/InternalMCPCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalMCPCallItemParam.Serialization.cs index 75842b35f..083d7b17c 100644 --- a/src/Generated/Models/Responses/InternalMCPCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalMCPCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalMCPCallItemParam : IJsonModel + internal partial class InternalMCPCallItemParam : InternalItemParam, IJsonModel { internal InternalMCPCallItemParam() : this(InternalItemType.McpCall, null, null, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalMCPListToolsItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalMCPListToolsItemParam.Serialization.cs index d8e5a5553..c67663b79 100644 --- a/src/Generated/Models/Responses/InternalMCPListToolsItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalMCPListToolsItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalMCPListToolsItemParam : IJsonModel + internal partial class InternalMCPListToolsItemParam : InternalItemParam, IJsonModel { internal InternalMCPListToolsItemParam() : this(InternalItemType.McpListTools, null, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalReasoningItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalReasoningItemParam.Serialization.cs index 6e29efb3c..c5850a0e4 100644 --- a/src/Generated/Models/Responses/InternalReasoningItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalReasoningItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalReasoningItemParam : IJsonModel + internal partial class InternalReasoningItemParam : InternalItemParam, IJsonModel { internal InternalReasoningItemParam() : this(InternalItemType.Reasoning, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs b/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs index fd000f146..d43c2e9cf 100644 --- a/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseItemList.Serialization.cs @@ -188,7 +188,8 @@ protected virtual InternalResponseItemList PersistableModelCreateCore(BinaryData public static explicit operator InternalResponseItemList(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalResponseItemList(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Responses/InternalResponseReasoningDeltaEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningDeltaEvent.Serialization.cs index eab60b328..a594686df 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningDeltaEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningDeltaEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningDeltaEvent : IJsonModel + internal partial class InternalResponseReasoningDeltaEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningDeltaEvent() : this(InternalResponseStreamEventType.ResponseReasoningDelta, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponseReasoningDoneEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningDoneEvent.Serialization.cs index c29dbf18b..eaf59e9a7 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningDoneEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningDoneEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningDoneEvent : IJsonModel + internal partial class InternalResponseReasoningDoneEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningDoneEvent() : this(InternalResponseStreamEventType.ResponseReasoningDone, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponseReasoningSummaryDeltaEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningSummaryDeltaEvent.Serialization.cs index 41401a595..61ecbebbd 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningSummaryDeltaEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningSummaryDeltaEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningSummaryDeltaEvent : IJsonModel + internal partial class InternalResponseReasoningSummaryDeltaEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningSummaryDeltaEvent() : this(InternalResponseStreamEventType.ResponseReasoningSummaryDelta, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponseReasoningSummaryDoneEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningSummaryDoneEvent.Serialization.cs index ba2e613d7..5413c9226 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningSummaryDoneEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningSummaryDoneEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningSummaryDoneEvent : IJsonModel + internal partial class InternalResponseReasoningSummaryDoneEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningSummaryDoneEvent() : this(InternalResponseStreamEventType.ResponseReasoningSummaryDone, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartAddedEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartAddedEvent.Serialization.cs index 219631b92..9b9ba35b1 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartAddedEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartAddedEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningSummaryPartAddedEvent : IJsonModel + internal partial class InternalResponseReasoningSummaryPartAddedEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningSummaryPartAddedEvent() : this(InternalResponseStreamEventType.ResponseReasoningSummaryPartAdded, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartDoneEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartDoneEvent.Serialization.cs index 3e2fd237f..dca312de5 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartDoneEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningSummaryPartDoneEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningSummaryPartDoneEvent : IJsonModel + internal partial class InternalResponseReasoningSummaryPartDoneEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningSummaryPartDoneEvent() : this(InternalResponseStreamEventType.ResponseReasoningSummaryPartDone, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDeltaEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDeltaEvent.Serialization.cs index f5195a73a..eb1373d64 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDeltaEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDeltaEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningSummaryTextDeltaEvent : IJsonModel + internal partial class InternalResponseReasoningSummaryTextDeltaEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningSummaryTextDeltaEvent() : this(InternalResponseStreamEventType.ResponseReasoningSummaryTextDelta, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDoneEvent.Serialization.cs b/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDoneEvent.Serialization.cs index 3189cae50..958b3a950 100644 --- a/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDoneEvent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponseReasoningSummaryTextDoneEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponseReasoningSummaryTextDoneEvent : IJsonModel + internal partial class InternalResponseReasoningSummaryTextDoneEvent : StreamingResponseUpdate, IJsonModel { internal InternalResponseReasoningSummaryTextDoneEvent() : this(InternalResponseStreamEventType.ResponseReasoningSummaryTextDone, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesAssistantMessage.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesAssistantMessage.Serialization.cs index c25c2585d..daf296243 100644 --- a/src/Generated/Models/Responses/InternalResponsesAssistantMessage.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesAssistantMessage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesAssistantMessage : IJsonModel + internal partial class InternalResponsesAssistantMessage : MessageResponseItem, IJsonModel { internal InternalResponsesAssistantMessage() : this(default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesAssistantMessageItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesAssistantMessageItemParam.Serialization.cs index 33dc615ec..ff2434230 100644 --- a/src/Generated/Models/Responses/InternalResponsesAssistantMessageItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesAssistantMessageItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesAssistantMessageItemParam : IJsonModel + internal partial class InternalResponsesAssistantMessageItemParam : InternalResponsesMessageItemParam, IJsonModel { internal InternalResponsesAssistantMessageItemParam() : this(default, null, InternalResponsesMessageRole.Assistant, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesDeveloperMessage.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesDeveloperMessage.Serialization.cs index 051e5d602..c6c6b3981 100644 --- a/src/Generated/Models/Responses/InternalResponsesDeveloperMessage.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesDeveloperMessage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesDeveloperMessage : IJsonModel + internal partial class InternalResponsesDeveloperMessage : MessageResponseItem, IJsonModel { internal InternalResponsesDeveloperMessage() : this(default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesDeveloperMessageItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesDeveloperMessageItemParam.Serialization.cs index 57e68ae19..013633009 100644 --- a/src/Generated/Models/Responses/InternalResponsesDeveloperMessageItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesDeveloperMessageItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesDeveloperMessageItemParam : IJsonModel + internal partial class InternalResponsesDeveloperMessageItemParam : InternalResponsesMessageItemParam, IJsonModel { internal InternalResponsesDeveloperMessageItemParam() : this(default, null, InternalResponsesMessageRole.Developer, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesMessageItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesMessageItemParam.Serialization.cs index b9af81728..f13cfb61a 100644 --- a/src/Generated/Models/Responses/InternalResponsesMessageItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesMessageItemParam.Serialization.cs @@ -9,7 +9,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesMessageItemParam : IJsonModel + internal partial class InternalResponsesMessageItemParam : InternalItemParam, IJsonModel { internal InternalResponsesMessageItemParam() : this(InternalItemType.Message, null, default) { diff --git a/src/Generated/Models/Responses/InternalResponsesSystemMessage.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesSystemMessage.Serialization.cs index b3255b98b..bbc2099c6 100644 --- a/src/Generated/Models/Responses/InternalResponsesSystemMessage.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesSystemMessage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesSystemMessage : IJsonModel + internal partial class InternalResponsesSystemMessage : MessageResponseItem, IJsonModel { internal InternalResponsesSystemMessage() : this(default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesSystemMessageItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesSystemMessageItemParam.Serialization.cs index 9ec286894..3bcf3e1e8 100644 --- a/src/Generated/Models/Responses/InternalResponsesSystemMessageItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesSystemMessageItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesSystemMessageItemParam : IJsonModel + internal partial class InternalResponsesSystemMessageItemParam : InternalResponsesMessageItemParam, IJsonModel { internal InternalResponsesSystemMessageItemParam() : this(default, null, InternalResponsesMessageRole.System, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesTextFormatJsonObject.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesTextFormatJsonObject.Serialization.cs index 7e9f035e1..b7d23ae57 100644 --- a/src/Generated/Models/Responses/InternalResponsesTextFormatJsonObject.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesTextFormatJsonObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesTextFormatJsonObject : IJsonModel + internal partial class InternalResponsesTextFormatJsonObject : ResponseTextFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalResponsesTextFormatJsonSchema.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesTextFormatJsonSchema.Serialization.cs index 7884e0450..6ef5d86f4 100644 --- a/src/Generated/Models/Responses/InternalResponsesTextFormatJsonSchema.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesTextFormatJsonSchema.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesTextFormatJsonSchema : IJsonModel + internal partial class InternalResponsesTextFormatJsonSchema : ResponseTextFormat, IJsonModel { internal InternalResponsesTextFormatJsonSchema() : this(InternalResponsesTextFormatType.JsonSchema, null, null, null, null, default) { diff --git a/src/Generated/Models/Responses/InternalResponsesTextFormatText.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesTextFormatText.Serialization.cs index 3738966c6..fa921bd3f 100644 --- a/src/Generated/Models/Responses/InternalResponsesTextFormatText.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesTextFormatText.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesTextFormatText : IJsonModel + internal partial class InternalResponsesTextFormatText : ResponseTextFormat, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalResponsesUserMessage.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesUserMessage.Serialization.cs index 88d6350ae..1799df812 100644 --- a/src/Generated/Models/Responses/InternalResponsesUserMessage.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesUserMessage.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesUserMessage : IJsonModel + internal partial class InternalResponsesUserMessage : MessageResponseItem, IJsonModel { internal InternalResponsesUserMessage() : this(default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/InternalResponsesUserMessageItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalResponsesUserMessageItemParam.Serialization.cs index 412268394..53e3e25ae 100644 --- a/src/Generated/Models/Responses/InternalResponsesUserMessageItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalResponsesUserMessageItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalResponsesUserMessageItemParam : IJsonModel + internal partial class InternalResponsesUserMessageItemParam : InternalResponsesMessageItemParam, IJsonModel { internal InternalResponsesUserMessageItemParam() : this(default, null, InternalResponsesMessageRole.User, null) { diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectCodeInterpreter.Serialization.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectCodeInterpreter.Serialization.cs index d63fb521f..3ec484c4f 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectCodeInterpreter.Serialization.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectCodeInterpreter.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalToolChoiceObjectCodeInterpreter : IJsonModel + internal partial class InternalToolChoiceObjectCodeInterpreter : InternalToolChoiceObject, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectComputer.Serialization.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectComputer.Serialization.cs index e47c74188..64c036216 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectComputer.Serialization.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectComputer.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalToolChoiceObjectComputer : IJsonModel + internal partial class InternalToolChoiceObjectComputer : InternalToolChoiceObject, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectFileSearch.Serialization.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectFileSearch.Serialization.cs index dc94412a2..515b4d9f5 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectFileSearch.Serialization.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectFileSearch.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalToolChoiceObjectFileSearch : IJsonModel + internal partial class InternalToolChoiceObjectFileSearch : InternalToolChoiceObject, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectFunction.Serialization.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectFunction.Serialization.cs index feb716a07..fe16305de 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectFunction.Serialization.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectFunction.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalToolChoiceObjectFunction : IJsonModel + internal partial class InternalToolChoiceObjectFunction : InternalToolChoiceObject, IJsonModel { internal InternalToolChoiceObjectFunction() : this(InternalToolChoiceObjectType.Function, null, null) { diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectImageGen.Serialization.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectImageGen.Serialization.cs index 37a09ea10..5103b29f9 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectImageGen.Serialization.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectImageGen.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalToolChoiceObjectImageGen : IJsonModel + internal partial class InternalToolChoiceObjectImageGen : InternalToolChoiceObject, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectMCP.Serialization.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectMCP.Serialization.cs index 85eb24800..765df419b 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectMCP.Serialization.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectMCP.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalToolChoiceObjectMCP : IJsonModel + internal partial class InternalToolChoiceObjectMCP : InternalToolChoiceObject, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectWebSearch.Serialization.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectWebSearch.Serialization.cs index 56f7d7631..2882a4af3 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectWebSearch.Serialization.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectWebSearch.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalToolChoiceObjectWebSearch : IJsonModel + internal partial class InternalToolChoiceObjectWebSearch : InternalToolChoiceObject, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/InternalUnknownAnnotation.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownAnnotation.Serialization.cs index fdcf8bf2b..d979eacfe 100644 --- a/src/Generated/Models/Responses/InternalUnknownAnnotation.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownAnnotation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownAnnotation : IJsonModel + internal partial class InternalUnknownAnnotation : ResponseMessageAnnotation, IJsonModel { internal InternalUnknownAnnotation() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownCodeInterpreterContainerConfiguration.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownCodeInterpreterContainerConfiguration.Serialization.cs index e7ef2fc9c..f588839c3 100644 --- a/src/Generated/Models/Responses/InternalUnknownCodeInterpreterContainerConfiguration.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownCodeInterpreterContainerConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownCodeInterpreterContainerConfiguration : IJsonModel + internal partial class InternalUnknownCodeInterpreterContainerConfiguration : CodeInterpreterToolContainerConfiguration, IJsonModel { internal InternalUnknownCodeInterpreterContainerConfiguration() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownCodeInterpreterToolOutput.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownCodeInterpreterToolOutput.Serialization.cs index 34b477156..43555f658 100644 --- a/src/Generated/Models/Responses/InternalUnknownCodeInterpreterToolOutput.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownCodeInterpreterToolOutput.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownCodeInterpreterToolOutput : IJsonModel + internal partial class InternalUnknownCodeInterpreterToolOutput : CodeInterpreterCallOutput, IJsonModel { internal InternalUnknownCodeInterpreterToolOutput() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownComparisonFilter.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownComparisonFilter.Serialization.cs index fc39df610..fbd98af97 100644 --- a/src/Generated/Models/Responses/InternalUnknownComparisonFilter.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownComparisonFilter.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownComparisonFilter : IJsonModel + internal partial class InternalUnknownComparisonFilter : InternalComparisonFilter, IJsonModel { internal InternalUnknownComparisonFilter() : this(default, null, null, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownCompoundFilter.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownCompoundFilter.Serialization.cs index ecc158478..71efe2e80 100644 --- a/src/Generated/Models/Responses/InternalUnknownCompoundFilter.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownCompoundFilter.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownCompoundFilter : IJsonModel + internal partial class InternalUnknownCompoundFilter : InternalCompoundFilter, IJsonModel { internal InternalUnknownCompoundFilter() : this(default, null, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownComputerAction.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownComputerAction.Serialization.cs index 5e8747953..387135f0d 100644 --- a/src/Generated/Models/Responses/InternalUnknownComputerAction.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownComputerAction.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownComputerAction : IJsonModel + internal partial class InternalUnknownComputerAction : ComputerCallAction, IJsonModel { internal InternalUnknownComputerAction() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownComputerToolCallOutputItemOutput.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownComputerToolCallOutputItemOutput.Serialization.cs index 0c5d8bcef..c03af32d3 100644 --- a/src/Generated/Models/Responses/InternalUnknownComputerToolCallOutputItemOutput.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownComputerToolCallOutputItemOutput.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownComputerToolCallOutputItemOutput : IJsonModel + internal partial class InternalUnknownComputerToolCallOutputItemOutput : ComputerCallOutput, IJsonModel { internal InternalUnknownComputerToolCallOutputItemOutput() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownItemContent.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownItemContent.Serialization.cs index 524127e2d..e5c63fd2b 100644 --- a/src/Generated/Models/Responses/InternalUnknownItemContent.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownItemContent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownItemContent : IJsonModel + internal partial class InternalUnknownItemContent : ResponseContentPart, IJsonModel { internal InternalUnknownItemContent() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownItemParam.Serialization.cs index e875438ef..44c37da5d 100644 --- a/src/Generated/Models/Responses/InternalUnknownItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownItemParam : IJsonModel + internal partial class InternalUnknownItemParam : InternalItemParam, IJsonModel { internal InternalUnknownItemParam() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownItemResource.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownItemResource.Serialization.cs index c694c756c..22bbf9d16 100644 --- a/src/Generated/Models/Responses/InternalUnknownItemResource.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownItemResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownItemResource : IJsonModel + internal partial class InternalUnknownItemResource : ResponseItem, IJsonModel { internal InternalUnknownItemResource() : this(default, null, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownLocation.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownLocation.Serialization.cs index 6ab4ae197..cdaf800d2 100644 --- a/src/Generated/Models/Responses/InternalUnknownLocation.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownLocation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownLocation : IJsonModel + internal partial class InternalUnknownLocation : WebSearchToolLocation, IJsonModel { internal InternalUnknownLocation() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownReasoningItemSummaryPart.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownReasoningItemSummaryPart.Serialization.cs index ae1ccbba0..a2e340918 100644 --- a/src/Generated/Models/Responses/InternalUnknownReasoningItemSummaryPart.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownReasoningItemSummaryPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownReasoningItemSummaryPart : IJsonModel + internal partial class InternalUnknownReasoningItemSummaryPart : ReasoningSummaryPart, IJsonModel { internal InternalUnknownReasoningItemSummaryPart() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownResponseTextFormatConfiguration.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownResponseTextFormatConfiguration.Serialization.cs index 7410a7840..9fa300dbc 100644 --- a/src/Generated/Models/Responses/InternalUnknownResponseTextFormatConfiguration.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownResponseTextFormatConfiguration.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownResponseTextFormatConfiguration : IJsonModel + internal partial class InternalUnknownResponseTextFormatConfiguration : ResponseTextFormat, IJsonModel { internal InternalUnknownResponseTextFormatConfiguration() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResource.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResource.Serialization.cs index 67adf0679..c4d4bd8a6 100644 --- a/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResource.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResource.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownResponsesMessageItemResource : IJsonModel + internal partial class InternalUnknownResponsesMessageItemResource : MessageResponseItem, IJsonModel { internal InternalUnknownResponsesMessageItemResource() : this(default, null, null, default, default) { diff --git a/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResourceItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResourceItemParam.Serialization.cs index adca3e1a6..ba27f3a83 100644 --- a/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResourceItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownResponsesMessageItemResourceItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownResponsesMessageItemResourceItemParam : IJsonModel + internal partial class InternalUnknownResponsesMessageItemResourceItemParam : InternalResponsesMessageItemParam, IJsonModel { internal InternalUnknownResponsesMessageItemResourceItemParam() : this(default, null, default) { diff --git a/src/Generated/Models/Responses/InternalUnknownTool.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownTool.Serialization.cs index fcfe36f2e..1c79befa1 100644 --- a/src/Generated/Models/Responses/InternalUnknownTool.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownTool : IJsonModel + internal partial class InternalUnknownTool : ResponseTool, IJsonModel { internal InternalUnknownTool() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalUnknownToolChoiceObject.Serialization.cs b/src/Generated/Models/Responses/InternalUnknownToolChoiceObject.Serialization.cs index bc34ca7ad..398cf5a9b 100644 --- a/src/Generated/Models/Responses/InternalUnknownToolChoiceObject.Serialization.cs +++ b/src/Generated/Models/Responses/InternalUnknownToolChoiceObject.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalUnknownToolChoiceObject : IJsonModel + internal partial class InternalUnknownToolChoiceObject : InternalToolChoiceObject, IJsonModel { internal InternalUnknownToolChoiceObject() : this(default, null) { diff --git a/src/Generated/Models/Responses/InternalWebSearchToolCallItemParam.Serialization.cs b/src/Generated/Models/Responses/InternalWebSearchToolCallItemParam.Serialization.cs index 73731d854..0863d1015 100644 --- a/src/Generated/Models/Responses/InternalWebSearchToolCallItemParam.Serialization.cs +++ b/src/Generated/Models/Responses/InternalWebSearchToolCallItemParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class InternalWebSearchToolCallItemParam : IJsonModel + internal partial class InternalWebSearchToolCallItemParam : InternalItemParam, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/McpTool.Serialization.cs b/src/Generated/Models/Responses/McpTool.Serialization.cs index c28bfb2e2..200948933 100644 --- a/src/Generated/Models/Responses/McpTool.Serialization.cs +++ b/src/Generated/Models/Responses/McpTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class McpTool : IJsonModel + public partial class McpTool : ResponseTool, IJsonModel { internal McpTool() : this(InternalToolType.Mcp, null, null, null, default, null, null, null, null, null) { diff --git a/src/Generated/Models/Responses/McpToolCallApprovalRequestItem.Serialization.cs b/src/Generated/Models/Responses/McpToolCallApprovalRequestItem.Serialization.cs index 6d1c0e4f5..1d60018df 100644 --- a/src/Generated/Models/Responses/McpToolCallApprovalRequestItem.Serialization.cs +++ b/src/Generated/Models/Responses/McpToolCallApprovalRequestItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class McpToolCallApprovalRequestItem : IJsonModel + public partial class McpToolCallApprovalRequestItem : ResponseItem, IJsonModel { internal McpToolCallApprovalRequestItem() : this(InternalItemType.McpApprovalRequest, null, null, null, null, null) { diff --git a/src/Generated/Models/Responses/McpToolCallApprovalResponseItem.Serialization.cs b/src/Generated/Models/Responses/McpToolCallApprovalResponseItem.Serialization.cs index 0d4802499..5238a4310 100644 --- a/src/Generated/Models/Responses/McpToolCallApprovalResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/McpToolCallApprovalResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class McpToolCallApprovalResponseItem : IJsonModel + public partial class McpToolCallApprovalResponseItem : ResponseItem, IJsonModel { internal McpToolCallApprovalResponseItem() : this(InternalItemType.McpApprovalResponse, null, null, null, default, null) { diff --git a/src/Generated/Models/Responses/McpToolCallItem.Serialization.cs b/src/Generated/Models/Responses/McpToolCallItem.Serialization.cs index d316230ac..194804c38 100644 --- a/src/Generated/Models/Responses/McpToolCallItem.Serialization.cs +++ b/src/Generated/Models/Responses/McpToolCallItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class McpToolCallItem : IJsonModel + public partial class McpToolCallItem : ResponseItem, IJsonModel { internal McpToolCallItem() : this(InternalItemType.McpCall, null, null, null, null, null, null, null) { diff --git a/src/Generated/Models/Responses/McpToolDefinitionListItem.Serialization.cs b/src/Generated/Models/Responses/McpToolDefinitionListItem.Serialization.cs index 976ef0e0f..9c922b6ff 100644 --- a/src/Generated/Models/Responses/McpToolDefinitionListItem.Serialization.cs +++ b/src/Generated/Models/Responses/McpToolDefinitionListItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class McpToolDefinitionListItem : IJsonModel + public partial class McpToolDefinitionListItem : ResponseItem, IJsonModel { internal McpToolDefinitionListItem() : this(InternalItemType.McpListTools, null, null, null, null, null) { diff --git a/src/Generated/Models/Responses/MessageResponseItem.Serialization.cs b/src/Generated/Models/Responses/MessageResponseItem.Serialization.cs index d482eb1fa..ef725ecac 100644 --- a/src/Generated/Models/Responses/MessageResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/MessageResponseItem.Serialization.cs @@ -9,7 +9,7 @@ namespace OpenAI.Responses { - public partial class MessageResponseItem : IJsonModel + public partial class MessageResponseItem : ResponseItem, IJsonModel { internal MessageResponseItem() : this(InternalItemType.Message, null, null, default, default) { diff --git a/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs b/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs index 6e409249d..25215a503 100644 --- a/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs +++ b/src/Generated/Models/Responses/OpenAIResponse.Serialization.cs @@ -575,7 +575,8 @@ protected virtual OpenAIResponse PersistableModelCreateCore(BinaryData data, Mod public static explicit operator OpenAIResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeOpenAIResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Responses/ReasoningResponseItem.Serialization.cs b/src/Generated/Models/Responses/ReasoningResponseItem.Serialization.cs index 18d1e3777..65a54ca20 100644 --- a/src/Generated/Models/Responses/ReasoningResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/ReasoningResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ReasoningResponseItem : IJsonModel + public partial class ReasoningResponseItem : ResponseItem, IJsonModel { internal ReasoningResponseItem() : this(InternalItemType.Reasoning, null, null, default, null, null) { diff --git a/src/Generated/Models/Responses/ReasoningSummaryTextPart.Serialization.cs b/src/Generated/Models/Responses/ReasoningSummaryTextPart.Serialization.cs index 2e5261a78..3f086ba66 100644 --- a/src/Generated/Models/Responses/ReasoningSummaryTextPart.Serialization.cs +++ b/src/Generated/Models/Responses/ReasoningSummaryTextPart.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ReasoningSummaryTextPart : IJsonModel + public partial class ReasoningSummaryTextPart : ReasoningSummaryPart, IJsonModel { internal ReasoningSummaryTextPart() : this(InternalReasoningItemSummaryPartType.SummaryText, null, null) { diff --git a/src/Generated/Models/Responses/ReferenceResponseItem.Serialization.cs b/src/Generated/Models/Responses/ReferenceResponseItem.Serialization.cs index c532bc1e3..daa977824 100644 --- a/src/Generated/Models/Responses/ReferenceResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/ReferenceResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class ReferenceResponseItem : IJsonModel + public partial class ReferenceResponseItem : ResponseItem, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs b/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs index 5fea1bdec..9960b3f6a 100644 --- a/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs +++ b/src/Generated/Models/Responses/ResponseDeletionResult.Serialization.cs @@ -150,7 +150,8 @@ protected virtual ResponseDeletionResult PersistableModelCreateCore(BinaryData d public static explicit operator ResponseDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeResponseDeletionResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDeltaUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDeltaUpdate.Serialization.cs index 3c769c019..99f7016e4 100644 --- a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDeltaUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDeltaUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : IJsonModel + public partial class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseCodeInterpreterCallCodeDeltaUpdate() : this(InternalResponseStreamEventType.ResponseCodeInterpreterCallCodeDelta, default, null, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDoneUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDoneUpdate.Serialization.cs index 4aa2feacc..49354ee6e 100644 --- a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCodeDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseCodeInterpreterCallCodeDoneUpdate : IJsonModel + public partial class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseCodeInterpreterCallCodeDoneUpdate() : this(InternalResponseStreamEventType.ResponseCodeInterpreterCallCodeDone, default, null, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCompletedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCompletedUpdate.Serialization.cs index ee61be216..7a03b24d8 100644 --- a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCompletedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallCompletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseCodeInterpreterCallCompletedUpdate : IJsonModel + public partial class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseCodeInterpreterCallCompletedUpdate() : this(InternalResponseStreamEventType.ResponseCodeInterpreterCallCompleted, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInProgressUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInProgressUpdate.Serialization.cs index 30ff6aa34..dd8820959 100644 --- a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInProgressUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInProgressUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseCodeInterpreterCallInProgressUpdate : IJsonModel + public partial class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseCodeInterpreterCallInProgressUpdate() : this(InternalResponseStreamEventType.ResponseCodeInterpreterCallInProgress, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInterpretingUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInterpretingUpdate.Serialization.cs index ef679af2f..c621a68a1 100644 --- a/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInterpretingUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseCodeInterpreterCallInterpretingUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseCodeInterpreterCallInterpretingUpdate : IJsonModel + public partial class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseCodeInterpreterCallInterpretingUpdate() : this(InternalResponseStreamEventType.ResponseCodeInterpreterCallInterpreting, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseCompletedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseCompletedUpdate.Serialization.cs index 543bb5237..8258f0ccd 100644 --- a/src/Generated/Models/Responses/StreamingResponseCompletedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseCompletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseCompletedUpdate : IJsonModel + public partial class StreamingResponseCompletedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseCompletedUpdate() : this(InternalResponseStreamEventType.ResponseCompleted, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseContentPartAddedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseContentPartAddedUpdate.Serialization.cs index b11f2432c..1f717fd78 100644 --- a/src/Generated/Models/Responses/StreamingResponseContentPartAddedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseContentPartAddedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseContentPartAddedUpdate : IJsonModel + public partial class StreamingResponseContentPartAddedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseContentPartAddedUpdate() : this(InternalResponseStreamEventType.ResponseContentPartAdded, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseContentPartDoneUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseContentPartDoneUpdate.Serialization.cs index 28c67e4b5..7381c71bc 100644 --- a/src/Generated/Models/Responses/StreamingResponseContentPartDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseContentPartDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseContentPartDoneUpdate : IJsonModel + public partial class StreamingResponseContentPartDoneUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseContentPartDoneUpdate() : this(InternalResponseStreamEventType.ResponseContentPartDone, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseCreatedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseCreatedUpdate.Serialization.cs index 1c0ecc0d1..9df8856df 100644 --- a/src/Generated/Models/Responses/StreamingResponseCreatedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseCreatedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseCreatedUpdate : IJsonModel + public partial class StreamingResponseCreatedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseCreatedUpdate() : this(InternalResponseStreamEventType.ResponseCreated, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseErrorUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseErrorUpdate.Serialization.cs index 8f557d3c5..951dffddb 100644 --- a/src/Generated/Models/Responses/StreamingResponseErrorUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseErrorUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseErrorUpdate : IJsonModel + public partial class StreamingResponseErrorUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseErrorUpdate() : this(InternalResponseStreamEventType.Error, default, null, null, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseFailedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseFailedUpdate.Serialization.cs index bcb09ff34..dd0486cea 100644 --- a/src/Generated/Models/Responses/StreamingResponseFailedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseFailedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseFailedUpdate : IJsonModel + public partial class StreamingResponseFailedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseFailedUpdate() : this(InternalResponseStreamEventType.ResponseFailed, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseFileSearchCallCompletedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseFileSearchCallCompletedUpdate.Serialization.cs index 34c2b62a5..a3b1b1a40 100644 --- a/src/Generated/Models/Responses/StreamingResponseFileSearchCallCompletedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseFileSearchCallCompletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseFileSearchCallCompletedUpdate : IJsonModel + public partial class StreamingResponseFileSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseFileSearchCallCompletedUpdate() : this(InternalResponseStreamEventType.ResponseFileSearchCallCompleted, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseFileSearchCallInProgressUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseFileSearchCallInProgressUpdate.Serialization.cs index b8f292897..667174d91 100644 --- a/src/Generated/Models/Responses/StreamingResponseFileSearchCallInProgressUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseFileSearchCallInProgressUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseFileSearchCallInProgressUpdate : IJsonModel + public partial class StreamingResponseFileSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseFileSearchCallInProgressUpdate() : this(InternalResponseStreamEventType.ResponseFileSearchCallInProgress, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseFileSearchCallSearchingUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseFileSearchCallSearchingUpdate.Serialization.cs index 13ed24f41..4353333e6 100644 --- a/src/Generated/Models/Responses/StreamingResponseFileSearchCallSearchingUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseFileSearchCallSearchingUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseFileSearchCallSearchingUpdate : IJsonModel + public partial class StreamingResponseFileSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseFileSearchCallSearchingUpdate() : this(InternalResponseStreamEventType.ResponseFileSearchCallSearching, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDeltaUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDeltaUpdate.Serialization.cs index c10ace587..44ba3f18c 100644 --- a/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDeltaUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDeltaUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseFunctionCallArgumentsDeltaUpdate : IJsonModel + public partial class StreamingResponseFunctionCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseFunctionCallArgumentsDeltaUpdate() : this(InternalResponseStreamEventType.ResponseFunctionCallArgumentsDelta, default, null, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDoneUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDoneUpdate.Serialization.cs index bbbcd8cad..fa052a0fa 100644 --- a/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseFunctionCallArgumentsDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseFunctionCallArgumentsDoneUpdate : IJsonModel + public partial class StreamingResponseFunctionCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseFunctionCallArgumentsDoneUpdate() : this(InternalResponseStreamEventType.ResponseFunctionCallArgumentsDone, default, null, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallCompletedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallCompletedUpdate.Serialization.cs index b0ab82192..236f52a81 100644 --- a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallCompletedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallCompletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseImageGenerationCallCompletedUpdate : IJsonModel + public partial class StreamingResponseImageGenerationCallCompletedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseImageGenerationCallCompletedUpdate() : this(InternalResponseStreamEventType.ResponseImageGenerationCallCompleted, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallGeneratingUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallGeneratingUpdate.Serialization.cs index 5521fcbe2..54e7787a7 100644 --- a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallGeneratingUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallGeneratingUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseImageGenerationCallGeneratingUpdate : IJsonModel + public partial class StreamingResponseImageGenerationCallGeneratingUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseImageGenerationCallGeneratingUpdate() : this(InternalResponseStreamEventType.ResponseImageGenerationCallGenerating, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallInProgressUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallInProgressUpdate.Serialization.cs index 31171cc9b..f9f45602c 100644 --- a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallInProgressUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallInProgressUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseImageGenerationCallInProgressUpdate : IJsonModel + public partial class StreamingResponseImageGenerationCallInProgressUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseImageGenerationCallInProgressUpdate() : this(InternalResponseStreamEventType.ResponseImageGenerationCallInProgress, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallPartialImageUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallPartialImageUpdate.Serialization.cs index 2103805b4..8d1471e36 100644 --- a/src/Generated/Models/Responses/StreamingResponseImageGenerationCallPartialImageUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseImageGenerationCallPartialImageUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseImageGenerationCallPartialImageUpdate : IJsonModel + public partial class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseImageGenerationCallPartialImageUpdate() : this(InternalResponseStreamEventType.ResponseImageGenerationCallPartialImage, default, null, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseInProgressUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseInProgressUpdate.Serialization.cs index 0bf2a5db1..accaab180 100644 --- a/src/Generated/Models/Responses/StreamingResponseInProgressUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseInProgressUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseInProgressUpdate : IJsonModel + public partial class StreamingResponseInProgressUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseInProgressUpdate() : this(InternalResponseStreamEventType.ResponseInProgress, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseIncompleteUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseIncompleteUpdate.Serialization.cs index a1374259f..7036e4330 100644 --- a/src/Generated/Models/Responses/StreamingResponseIncompleteUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseIncompleteUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseIncompleteUpdate : IJsonModel + public partial class StreamingResponseIncompleteUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseIncompleteUpdate() : this(InternalResponseStreamEventType.ResponseIncomplete, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDeltaUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDeltaUpdate.Serialization.cs index 8af480e4a..57cf1b9b1 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDeltaUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDeltaUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpCallArgumentsDeltaUpdate : IJsonModel + public partial class StreamingResponseMcpCallArgumentsDeltaUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpCallArgumentsDeltaUpdate() : this(InternalResponseStreamEventType.ResponseMcpCallArgumentsDelta, default, null, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDoneUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDoneUpdate.Serialization.cs index 636a35e9b..efb3d2c6b 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpCallArgumentsDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpCallArgumentsDoneUpdate : IJsonModel + public partial class StreamingResponseMcpCallArgumentsDoneUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpCallArgumentsDoneUpdate() : this(InternalResponseStreamEventType.ResponseMcpCallArgumentsDone, default, null, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpCallCompletedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpCallCompletedUpdate.Serialization.cs index f04a305c6..d51dc9d0d 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpCallCompletedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpCallCompletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpCallCompletedUpdate : IJsonModel + public partial class StreamingResponseMcpCallCompletedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpCallCompletedUpdate() : this(InternalResponseStreamEventType.ResponseMcpCallCompleted, default, null, null, default) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpCallFailedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpCallFailedUpdate.Serialization.cs index 4ad8a9069..e7c03a9d9 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpCallFailedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpCallFailedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpCallFailedUpdate : IJsonModel + public partial class StreamingResponseMcpCallFailedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpCallFailedUpdate() : this(InternalResponseStreamEventType.ResponseMcpCallFailed, default, null, null, default) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpCallInProgressUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpCallInProgressUpdate.Serialization.cs index 4d379f8a3..b8ccc4c3b 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpCallInProgressUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpCallInProgressUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpCallInProgressUpdate : IJsonModel + public partial class StreamingResponseMcpCallInProgressUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpCallInProgressUpdate() : this(InternalResponseStreamEventType.ResponseMcpCallInProgress, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpListToolsCompletedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpListToolsCompletedUpdate.Serialization.cs index 8c538ecb9..f153af8cb 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpListToolsCompletedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpListToolsCompletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpListToolsCompletedUpdate : IJsonModel + public partial class StreamingResponseMcpListToolsCompletedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpListToolsCompletedUpdate() : this(InternalResponseStreamEventType.ResponseMcpListToolsCompleted, default, null, null, default) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpListToolsFailedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpListToolsFailedUpdate.Serialization.cs index a1506305e..452a41a86 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpListToolsFailedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpListToolsFailedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpListToolsFailedUpdate : IJsonModel + public partial class StreamingResponseMcpListToolsFailedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpListToolsFailedUpdate() : this(InternalResponseStreamEventType.ResponseMcpListToolsFailed, default, null, null, default) { diff --git a/src/Generated/Models/Responses/StreamingResponseMcpListToolsInProgressUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseMcpListToolsInProgressUpdate.Serialization.cs index 367d1601d..2c74113c8 100644 --- a/src/Generated/Models/Responses/StreamingResponseMcpListToolsInProgressUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseMcpListToolsInProgressUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseMcpListToolsInProgressUpdate : IJsonModel + public partial class StreamingResponseMcpListToolsInProgressUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseMcpListToolsInProgressUpdate() : this(InternalResponseStreamEventType.ResponseMcpListToolsInProgress, default, null, null, default) { diff --git a/src/Generated/Models/Responses/StreamingResponseOutputItemAddedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseOutputItemAddedUpdate.Serialization.cs index d04f79da6..015ca00c6 100644 --- a/src/Generated/Models/Responses/StreamingResponseOutputItemAddedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseOutputItemAddedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseOutputItemAddedUpdate : IJsonModel + public partial class StreamingResponseOutputItemAddedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseOutputItemAddedUpdate() : this(InternalResponseStreamEventType.ResponseOutputItemAdded, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseOutputItemDoneUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseOutputItemDoneUpdate.Serialization.cs index cb4948441..455aba09d 100644 --- a/src/Generated/Models/Responses/StreamingResponseOutputItemDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseOutputItemDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseOutputItemDoneUpdate : IJsonModel + public partial class StreamingResponseOutputItemDoneUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseOutputItemDoneUpdate() : this(InternalResponseStreamEventType.ResponseOutputItemDone, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseOutputTextDeltaUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseOutputTextDeltaUpdate.Serialization.cs index de9b96213..d9f82a92a 100644 --- a/src/Generated/Models/Responses/StreamingResponseOutputTextDeltaUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseOutputTextDeltaUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseOutputTextDeltaUpdate : IJsonModel + public partial class StreamingResponseOutputTextDeltaUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseOutputTextDeltaUpdate() : this(InternalResponseStreamEventType.ResponseOutputTextDelta, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseOutputTextDoneUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseOutputTextDoneUpdate.Serialization.cs index 7a6ca1f9e..1947353e6 100644 --- a/src/Generated/Models/Responses/StreamingResponseOutputTextDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseOutputTextDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseOutputTextDoneUpdate : IJsonModel + public partial class StreamingResponseOutputTextDoneUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseOutputTextDoneUpdate() : this(InternalResponseStreamEventType.ResponseOutputTextDone, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseQueuedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseQueuedUpdate.Serialization.cs index e5c1d208f..8f04d3fab 100644 --- a/src/Generated/Models/Responses/StreamingResponseQueuedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseQueuedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseQueuedUpdate : IJsonModel + public partial class StreamingResponseQueuedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseQueuedUpdate() : this(InternalResponseStreamEventType.ResponseQueued, default, null, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseRefusalDeltaUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseRefusalDeltaUpdate.Serialization.cs index b1b7e98c4..76177d78b 100644 --- a/src/Generated/Models/Responses/StreamingResponseRefusalDeltaUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseRefusalDeltaUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseRefusalDeltaUpdate : IJsonModel + public partial class StreamingResponseRefusalDeltaUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseRefusalDeltaUpdate() : this(InternalResponseStreamEventType.ResponseRefusalDelta, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseRefusalDoneUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseRefusalDoneUpdate.Serialization.cs index bbaa1110b..21e5ce354 100644 --- a/src/Generated/Models/Responses/StreamingResponseRefusalDoneUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseRefusalDoneUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseRefusalDoneUpdate : IJsonModel + public partial class StreamingResponseRefusalDoneUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseRefusalDoneUpdate() : this(InternalResponseStreamEventType.ResponseRefusalDone, default, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseTextAnnotationAddedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseTextAnnotationAddedUpdate.Serialization.cs index a259aba9d..9270f17aa 100644 --- a/src/Generated/Models/Responses/StreamingResponseTextAnnotationAddedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseTextAnnotationAddedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseTextAnnotationAddedUpdate : IJsonModel + public partial class StreamingResponseTextAnnotationAddedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseTextAnnotationAddedUpdate() : this(InternalResponseStreamEventType.ResponseOutputTextAnnotationAdded, default, null, null, default, default, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseWebSearchCallCompletedUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseWebSearchCallCompletedUpdate.Serialization.cs index 314e832f9..cbf37558b 100644 --- a/src/Generated/Models/Responses/StreamingResponseWebSearchCallCompletedUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseWebSearchCallCompletedUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseWebSearchCallCompletedUpdate : IJsonModel + public partial class StreamingResponseWebSearchCallCompletedUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseWebSearchCallCompletedUpdate() : this(InternalResponseStreamEventType.ResponseWebSearchCallCompleted, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseWebSearchCallInProgressUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseWebSearchCallInProgressUpdate.Serialization.cs index c51c8286f..69be1c5ce 100644 --- a/src/Generated/Models/Responses/StreamingResponseWebSearchCallInProgressUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseWebSearchCallInProgressUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseWebSearchCallInProgressUpdate : IJsonModel + public partial class StreamingResponseWebSearchCallInProgressUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseWebSearchCallInProgressUpdate() : this(InternalResponseStreamEventType.ResponseWebSearchCallInProgress, default, null, default, null) { diff --git a/src/Generated/Models/Responses/StreamingResponseWebSearchCallSearchingUpdate.Serialization.cs b/src/Generated/Models/Responses/StreamingResponseWebSearchCallSearchingUpdate.Serialization.cs index 98ba90932..a229c1b9c 100644 --- a/src/Generated/Models/Responses/StreamingResponseWebSearchCallSearchingUpdate.Serialization.cs +++ b/src/Generated/Models/Responses/StreamingResponseWebSearchCallSearchingUpdate.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class StreamingResponseWebSearchCallSearchingUpdate : IJsonModel + public partial class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUpdate, IJsonModel { internal StreamingResponseWebSearchCallSearchingUpdate() : this(InternalResponseStreamEventType.ResponseWebSearchCallSearching, default, null, default, null) { diff --git a/src/Generated/Models/Responses/UnknownResponseStreamEvent.Serialization.cs b/src/Generated/Models/Responses/UnknownResponseStreamEvent.Serialization.cs index 4c19e5357..5e620f4cb 100644 --- a/src/Generated/Models/Responses/UnknownResponseStreamEvent.Serialization.cs +++ b/src/Generated/Models/Responses/UnknownResponseStreamEvent.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - internal partial class UnknownResponseStreamEvent : IJsonModel + internal partial class UnknownResponseStreamEvent : StreamingResponseUpdate, IJsonModel { internal UnknownResponseStreamEvent() : this(default, default, null) { diff --git a/src/Generated/Models/Responses/UriCitationMessageAnnotation.Serialization.cs b/src/Generated/Models/Responses/UriCitationMessageAnnotation.Serialization.cs index 4bf0ea69a..a720a35d3 100644 --- a/src/Generated/Models/Responses/UriCitationMessageAnnotation.Serialization.cs +++ b/src/Generated/Models/Responses/UriCitationMessageAnnotation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class UriCitationMessageAnnotation : IJsonModel + public partial class UriCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel { internal UriCitationMessageAnnotation() : this(ResponseMessageAnnotationKind.UriCitation, null, null, default, default, null) { diff --git a/src/Generated/Models/Responses/WebSearchCallResponseItem.Serialization.cs b/src/Generated/Models/Responses/WebSearchCallResponseItem.Serialization.cs index cf553c375..ee6322bca 100644 --- a/src/Generated/Models/Responses/WebSearchCallResponseItem.Serialization.cs +++ b/src/Generated/Models/Responses/WebSearchCallResponseItem.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class WebSearchCallResponseItem : IJsonModel + public partial class WebSearchCallResponseItem : ResponseItem, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/WebSearchTool.Serialization.cs b/src/Generated/Models/Responses/WebSearchTool.Serialization.cs index e24f5082e..fe7504f55 100644 --- a/src/Generated/Models/Responses/WebSearchTool.Serialization.cs +++ b/src/Generated/Models/Responses/WebSearchTool.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class WebSearchTool : IJsonModel + public partial class WebSearchTool : ResponseTool, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/Responses/WebSearchToolApproximateLocation.Serialization.cs b/src/Generated/Models/Responses/WebSearchToolApproximateLocation.Serialization.cs index e252c1570..a64cbf52c 100644 --- a/src/Generated/Models/Responses/WebSearchToolApproximateLocation.Serialization.cs +++ b/src/Generated/Models/Responses/WebSearchToolApproximateLocation.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { - public partial class WebSearchToolApproximateLocation : IJsonModel + public partial class WebSearchToolApproximateLocation : WebSearchToolLocation, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs b/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs index c5515fc35..a480523b9 100644 --- a/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs +++ b/src/Generated/Models/VectorStores/FileFromStoreRemovalResult.Serialization.cs @@ -150,7 +150,8 @@ protected virtual FileFromStoreRemovalResult PersistableModelCreateCore(BinaryDa public static explicit operator FileFromStoreRemovalResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeFileFromStoreRemovalResult(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/InternalAutoChunkingStrategyRequestParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalAutoChunkingStrategyRequestParam.Serialization.cs index b4d7a5656..a88bcfb9f 100644 --- a/src/Generated/Models/VectorStores/InternalAutoChunkingStrategyRequestParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalAutoChunkingStrategyRequestParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalAutoChunkingStrategyRequestParam : IJsonModel + internal partial class InternalAutoChunkingStrategyRequestParam : InternalChunkingStrategyRequestParam, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/VectorStores/InternalDotNetCombinedAutoChunkingStrategyParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalDotNetCombinedAutoChunkingStrategyParam.Serialization.cs index ce33f81f8..c5a24b3cd 100644 --- a/src/Generated/Models/VectorStores/InternalDotNetCombinedAutoChunkingStrategyParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalDotNetCombinedAutoChunkingStrategyParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalDotNetCombinedAutoChunkingStrategyParam : IJsonModel + internal partial class InternalDotNetCombinedAutoChunkingStrategyParam : FileChunkingStrategy, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/VectorStores/InternalDotNetCombinedOtherChunkingStrategyParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalDotNetCombinedOtherChunkingStrategyParam.Serialization.cs index 8aa468737..9bbfcb5c1 100644 --- a/src/Generated/Models/VectorStores/InternalDotNetCombinedOtherChunkingStrategyParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalDotNetCombinedOtherChunkingStrategyParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalDotNetCombinedOtherChunkingStrategyParam : IJsonModel + internal partial class InternalDotNetCombinedOtherChunkingStrategyParam : FileChunkingStrategy, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs b/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs index 79accdc5a..b5e7f0f4c 100644 --- a/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalListVectorStoreFilesResponse.Serialization.cs @@ -189,7 +189,8 @@ protected virtual InternalListVectorStoreFilesResponse PersistableModelCreateCor public static explicit operator InternalListVectorStoreFilesResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 c4442b048..4b47c56e9 100644 --- a/src/Generated/Models/VectorStores/InternalListVectorStoresResponse.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalListVectorStoresResponse.Serialization.cs @@ -189,7 +189,8 @@ protected virtual InternalListVectorStoresResponse PersistableModelCreateCore(Bi public static explicit operator InternalListVectorStoresResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalListVectorStoresResponse(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/InternalOtherChunkingStrategyResponseParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalOtherChunkingStrategyResponseParam.Serialization.cs index 9ff58cff2..aaa540abb 100644 --- a/src/Generated/Models/VectorStores/InternalOtherChunkingStrategyResponseParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalOtherChunkingStrategyResponseParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalOtherChunkingStrategyResponseParam : IJsonModel + internal partial class InternalOtherChunkingStrategyResponseParam : InternalChunkingStrategyResponseParam, IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { diff --git a/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyRequestParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyRequestParam.Serialization.cs index 47219e5b5..27923b9e0 100644 --- a/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyRequestParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyRequestParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalStaticChunkingStrategyRequestParam : IJsonModel + internal partial class InternalStaticChunkingStrategyRequestParam : InternalChunkingStrategyRequestParam, IJsonModel { internal InternalStaticChunkingStrategyRequestParam() : this(InternalChunkingStrategyRequestParamType.Static, null, null) { diff --git a/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyResponseParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyResponseParam.Serialization.cs index e1b81d338..583eb11ad 100644 --- a/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyResponseParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalStaticChunkingStrategyResponseParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalStaticChunkingStrategyResponseParam : IJsonModel + internal partial class InternalStaticChunkingStrategyResponseParam : InternalChunkingStrategyResponseParam, IJsonModel { internal InternalStaticChunkingStrategyResponseParam() : this(InternalChunkingStrategyResponseParamType.Static, null, null) { diff --git a/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyRequestParamProxy.Serialization.cs b/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyRequestParamProxy.Serialization.cs index 526f5bbdb..c00eb3a15 100644 --- a/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyRequestParamProxy.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyRequestParamProxy.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalUnknownChunkingStrategyRequestParamProxy : IJsonModel + internal partial class InternalUnknownChunkingStrategyRequestParamProxy : InternalChunkingStrategyRequestParam, IJsonModel { internal InternalUnknownChunkingStrategyRequestParamProxy() : this(default, null) { diff --git a/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyResponseParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyResponseParam.Serialization.cs index 60036f0fb..c8286da65 100644 --- a/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyResponseParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalUnknownChunkingStrategyResponseParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalUnknownChunkingStrategyResponseParam : IJsonModel + internal partial class InternalUnknownChunkingStrategyResponseParam : InternalChunkingStrategyResponseParam, IJsonModel { internal InternalUnknownChunkingStrategyResponseParam() : this(default, null) { diff --git a/src/Generated/Models/VectorStores/InternalUnknownDotNetCombinedChunkingStrategyParam.Serialization.cs b/src/Generated/Models/VectorStores/InternalUnknownDotNetCombinedChunkingStrategyParam.Serialization.cs index bedd2c5cc..c4fc0a20e 100644 --- a/src/Generated/Models/VectorStores/InternalUnknownDotNetCombinedChunkingStrategyParam.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalUnknownDotNetCombinedChunkingStrategyParam.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - internal partial class InternalUnknownDotNetCombinedChunkingStrategyParam : IJsonModel + internal partial class InternalUnknownDotNetCombinedChunkingStrategyParam : FileChunkingStrategy, IJsonModel { internal InternalUnknownDotNetCombinedChunkingStrategyParam() : this(default, null) { diff --git a/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs b/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs index 8cc2e1074..0d846ed4b 100644 --- a/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalVectorStoreFileContentResponse.Serialization.cs @@ -183,7 +183,8 @@ protected virtual InternalVectorStoreFileContentResponse PersistableModelCreateC public static explicit operator InternalVectorStoreFileContentResponse(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 0f4363bcb..081e1b2ef 100644 --- a/src/Generated/Models/VectorStores/InternalVectorStoreSearchResultsPage.Serialization.cs +++ b/src/Generated/Models/VectorStores/InternalVectorStoreSearchResultsPage.Serialization.cs @@ -222,7 +222,8 @@ protected virtual InternalVectorStoreSearchResultsPage PersistableModelCreateCor public static explicit operator InternalVectorStoreSearchResultsPage(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeInternalVectorStoreSearchResultsPage(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/Generated/Models/VectorStores/StaticFileChunkingStrategy.Serialization.cs b/src/Generated/Models/VectorStores/StaticFileChunkingStrategy.Serialization.cs index 1c53bc0a0..be362813c 100644 --- a/src/Generated/Models/VectorStores/StaticFileChunkingStrategy.Serialization.cs +++ b/src/Generated/Models/VectorStores/StaticFileChunkingStrategy.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - public partial class StaticFileChunkingStrategy : IJsonModel + public partial class StaticFileChunkingStrategy : FileChunkingStrategy, IJsonModel { internal StaticFileChunkingStrategy() : this(InternalDotNetCombinedChunkingStrategyParamType.Static, null, null) { diff --git a/src/Generated/Models/VectorStores/VectorStore.Serialization.cs b/src/Generated/Models/VectorStores/VectorStore.Serialization.cs index a2532f264..cc4a3f686 100644 --- a/src/Generated/Models/VectorStores/VectorStore.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStore.Serialization.cs @@ -300,7 +300,8 @@ protected virtual VectorStore PersistableModelCreateCore(BinaryData data, ModelR public static explicit operator VectorStore(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 3ac57fb24..84ef465f5 100644 --- a/src/Generated/Models/VectorStores/VectorStoreDeletionResult.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStoreDeletionResult.Serialization.cs @@ -150,7 +150,8 @@ protected virtual VectorStoreDeletionResult PersistableModelCreateCore(BinaryDat public static explicit operator VectorStoreDeletionResult(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 9c5797630..7807b03f5 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFile.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFile.Serialization.cs @@ -276,7 +276,8 @@ protected virtual VectorStoreFile PersistableModelCreateCore(BinaryData data, Mo public static explicit operator VectorStoreFile(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); 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 e4c3124b1..97903ed13 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileBatch.Serialization.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileBatch.Serialization.cs @@ -190,7 +190,8 @@ protected virtual VectorStoreFileBatch PersistableModelCreateCore(BinaryData dat public static explicit operator VectorStoreFileBatch(ClientResult result) { using PipelineResponse response = result.GetRawResponse(); - using JsonDocument document = JsonDocument.Parse(response.Content); + BinaryData data = response.Content; + using JsonDocument document = JsonDocument.Parse(data); return DeserializeVectorStoreFileBatch(document.RootElement, ModelSerializationExtensions.WireOptions); } } diff --git a/src/OpenAI.csproj b/src/OpenAI.csproj index 25c0990fb..4111686ec 100644 --- a/src/OpenAI.csproj +++ b/src/OpenAI.csproj @@ -81,7 +81,7 @@ - +