diff --git a/codegen/generator/src/OpenAI.Library.Plugin.csproj b/codegen/generator/src/OpenAI.Library.Plugin.csproj index bfae1a1f9..f412cc428 100644 --- a/codegen/generator/src/OpenAI.Library.Plugin.csproj +++ b/codegen/generator/src/OpenAI.Library.Plugin.csproj @@ -8,7 +8,7 @@ - + @@ -24,3 +24,4 @@ + diff --git a/codegen/package.json b/codegen/package.json index bdfeb8a4a..b40231da0 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.20250918.1", "@typespec/http": "1.4.0", "@typespec/openapi": "1.4.0" }, diff --git a/package-lock.json b/package-lock.json index 4741b23a8..4fdafbece 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.20250918.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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.0.tgz", + "integrity": "sha512-VxDYCDqOaR7NXzAtvRx7G1u54d2kEHopb28YH/pKzY6y0qmogP3gG7CSiWsq9WvDFxOQMpNEyjVAHZFXfH3o/A==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.0.tgz", + "integrity": "sha512-pqDirm8koABIKvzL59YI9W9DWbRlTX7RWhN+auR8HXJxo89m4mjqbah7nJZjeKNTNYopqL+yGg+0mhCpf3xZtQ==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.0.tgz", + "integrity": "sha512-YCdWlY/8ltN6H78HnMsRHYlPiKvqKagBP1r+D7SSylxX+HnsgXGCmLiV3Y4nSyY9hW8qr8U9LDUx/Lo7M6MfmQ==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.0.tgz", + "integrity": "sha512-z4nw6y1j+OOSGzuVbSWdIp1IUks9qNw4dc7z7lWuWDKojY38VMWBlEN7F9jk5UXOkUcp97vA1N213DF+Lz8BRg==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.0.tgz", + "integrity": "sha512-Q/dv9Yvyr5rKlK8WQJZVrp5g2SOYeZUs9u/t2f9cQ2E0gJjYB/BWoedXfUT0EcDJefi2zzVfhcOj8drWCzTviw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.0.tgz", + "integrity": "sha512-kdBsLs4Uile/fbjZVvCRcKB4q64R+1mUq0Yd7oU1CMm1Av336ajIFqNFovByipciuUQjBCPMxwJhCgfG2re3rg==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.0.tgz", + "integrity": "sha512-aL6hRwu0k7MTUESgkg7QHY6CoqPgr6gdQXRJI1/VbFlUMwsSzPGSR7sG5d+MCbYnJmJwThc2ol3nixj1fvI/zQ==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.0.tgz", + "integrity": "sha512-BTs0M5s1EJejgIBJhCeiFo7GZZ2IXWkFGcyZhxX4+8usnIo5Mti57108vjXFIQmmJaRyDwmV59Tw64Ap1dkwMw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.0.tgz", + "integrity": "sha512-uj672IVOU9m08DBGvoPKPi/J8jlVgjh12C9GmjjBxCTQc3XtVmRkRKyeHSmIKQpvJ7fIm1EJieBUcnGSzDVFyw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.0.tgz", + "integrity": "sha512-/+IVbeDMDCtB/HP/wiWsSzduD10SEGzIZX2945KSgZRNi4TSkjHqRJtNTVtVb8IRwhJ65ssI56krlLik+zFWkw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.0.tgz", + "integrity": "sha512-U1vVzvSWtSMWKKrGoROPBXMh3Vwn93TA9V35PldokHGqiUbF6erSzox/5qrSMKp6SzakvyjcPiVF8yB1xKr9Pg==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.0.tgz", + "integrity": "sha512-X/4WfuBAdQRH8cK3DYl8zC00XEE6aM472W+QCycpQJeLWVnHfkv7RyBFVaTqNUMsTgIX8ihMjCvFF9OUgeABzw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.0.tgz", + "integrity": "sha512-xIRYc58HfWDBZoLmWfWXg2Sq8VCa2iJ32B7mqfWnkx5mekekl0tMe7FHpY8I72RXEcUkaWawRvl3qA55og+cwQ==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.0.tgz", + "integrity": "sha512-mbsoUey05WJIOz8U1WzNdf+6UMYGwE3fZZnQqsM22FZ3wh1N887HT6jAOjXs6CNEK3Ntu2OBsyQDXfIjouI4dw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.0.tgz", + "integrity": "sha512-qP6aP970bucEi5KKKR4AuPFd8aTx9EF6BvutvYxmZuWLJHmnq4LvBfp0U+yFDMGwJ+AIJEH5sIP+SNypauMWzg==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.0.tgz", + "integrity": "sha512-nmSVN+F2i1yKZ7rJNKO3G7ZzmxJgoQBQZ/6c4MuS553Grmr7WqR7LLDcYG53Z2m9409z3JLt4sCOhLdbKQ3HmA==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.0.tgz", + "integrity": "sha512-2d0qRo33G6TfQVjaMR71P+yJVGODrt5V6+T0BDYH4EMfGgdC/2HWDVjSSFw888GSzAZUwuska3+zxNUCDco6rQ==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.0.tgz", + "integrity": "sha512-A1JalX4MOaFAAyGgpO7XP5khquv/7xKzLIyLmhNrbiCxWpMlnsTYr8dnsWM7sEeotNmxvSOEL7F65j0HXFcFsw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.0.tgz", + "integrity": "sha512-YQugafP/rH0eOOHGjmNgDURrpYHrIX0yuojOI8bwCyXwxC9ZdTd3vYkmddPX0oHONLXu9Rb1dDmT0VNpjkzGGw==", "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.0.tgz", + "integrity": "sha512-zYdUYhi3Qe2fndujBqL5FjAFzvNeLxtIqfzNEVKD1I7C37/chv1VxhscWSQHTNfjPCrBFQMnynwA3kpZpZ8w4A==", "cpu": [ "ia32" ], @@ -1418,10 +1418,24 @@ "win32" ] }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.52.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.0.tgz", + "integrity": "sha512-fGk03kQylNaCOQ96HDMeT7E2n91EqvCDd3RwvT5k+xNdFCeMGnj5b5hEgTGrQuyidqSsD3zJDQ21QIaxXqTBJw==", + "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.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.0.tgz", + "integrity": "sha512-6iKDCVSIUQ8jPMoIV0OytRKniaYyy5EbY/RRydmLW8ZR3cEBhxbWl5ro0rkUNe0ef6sScvhbY79HrjRm8i3vDQ==", "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.20250918.1", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250918.1.tgz", + "integrity": "sha512-Yy5FOOjC6XgQdHO3f1iIMby8yRjE93i6ZeALfyq7PgCNee2Kf7ucmzfkZaM4QgiiGLba1ibCqO1nbn99zeb04Q==", "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.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.0.tgz", + "integrity": "sha512-+IuescNkTJQgX7AkIDtITipZdIGcWF0pnVvZTWStiazUmcGA2ag8dfg0urest2XlXUi9kuhfQ+qmdc5Stc3z7g==", "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.0", + "@rollup/rollup-android-arm64": "4.52.0", + "@rollup/rollup-darwin-arm64": "4.52.0", + "@rollup/rollup-darwin-x64": "4.52.0", + "@rollup/rollup-freebsd-arm64": "4.52.0", + "@rollup/rollup-freebsd-x64": "4.52.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.52.0", + "@rollup/rollup-linux-arm-musleabihf": "4.52.0", + "@rollup/rollup-linux-arm64-gnu": "4.52.0", + "@rollup/rollup-linux-arm64-musl": "4.52.0", + "@rollup/rollup-linux-loong64-gnu": "4.52.0", + "@rollup/rollup-linux-ppc64-gnu": "4.52.0", + "@rollup/rollup-linux-riscv64-gnu": "4.52.0", + "@rollup/rollup-linux-riscv64-musl": "4.52.0", + "@rollup/rollup-linux-s390x-gnu": "4.52.0", + "@rollup/rollup-linux-x64-gnu": "4.52.0", + "@rollup/rollup-linux-x64-musl": "4.52.0", + "@rollup/rollup-openharmony-arm64": "4.52.0", + "@rollup/rollup-win32-arm64-msvc": "4.52.0", + "@rollup/rollup-win32-ia32-msvc": "4.52.0", + "@rollup/rollup-win32-x64-gnu": "4.52.0", + "@rollup/rollup-win32-x64-msvc": "4.52.0", "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.4.4", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.4.tgz", + "integrity": "sha512-O1z7ajPkjTgEgmTGz0v9X4eqeEXTDREPTO77pVC1Nbs86feBU1Zhdg+edzavPmYW1olxkwsqA2v4uOw6E8LeDg==", "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/AssistantCollectionOrder.cs b/src/Generated/Models/Assistants/AssistantCollectionOrder.cs index 81c2c07da..0e640d968 100644 --- a/src/Generated/Models/Assistants/AssistantCollectionOrder.cs +++ b/src/Generated/Models/Assistants/AssistantCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct AssistantCollectionOrder : IEquatable + public readonly partial struct AssistantCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Assistants/FileSearchRanker.cs b/src/Generated/Models/Assistants/FileSearchRanker.cs index a2f6cdd2f..5473ce4e4 100644 --- a/src/Generated/Models/Assistants/FileSearchRanker.cs +++ b/src/Generated/Models/Assistants/FileSearchRanker.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct FileSearchRanker : IEquatable + public readonly partial struct FileSearchRanker : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; 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/InternalAssistantSupportedModels.cs b/src/Generated/Models/Assistants/InternalAssistantSupportedModels.cs index f6342b535..fee2e74e2 100644 --- a/src/Generated/Models/Assistants/InternalAssistantSupportedModels.cs +++ b/src/Generated/Models/Assistants/InternalAssistantSupportedModels.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalAssistantSupportedModels : IEquatable + internal readonly partial struct InternalAssistantSupportedModels : ValueType, IEquatable { private readonly string _value; private const string Gpt41Value = "gpt-4.1"; diff --git a/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs b/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs index 888d93adf..38ec96c64 100644 --- a/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs +++ b/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalAssistantToolDefinitionType : IEquatable + internal readonly partial struct InternalAssistantToolDefinitionType : ValueType, IEquatable { private readonly string _value; private const string CodeInterpreterValue = "code_interpreter"; diff --git a/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs b/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs index c19460440..141731356 100644 --- a/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs +++ b/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalAssistantsNamedToolChoiceType : IEquatable + internal readonly partial struct InternalAssistantsNamedToolChoiceType : ValueType, IEquatable { private readonly string _value; private const string FunctionValue = "function"; diff --git a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs index 93c10a07d..4118c6adb 100644 --- a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs +++ b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalCreateThreadAndRunRequestModel : IEquatable + internal readonly partial struct InternalCreateThreadAndRunRequestModel : ValueType, IEquatable { private readonly string _value; private const string Gpt41Value = "gpt-4.1"; diff --git a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs index 262138c3e..77d2e7fa9 100644 --- a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs +++ b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalCreateThreadAndRunRequestToolChoice : IEquatable + internal readonly partial struct InternalCreateThreadAndRunRequestToolChoice : ValueType, IEquatable { private readonly string _value; private const string NoneValue = "none"; diff --git a/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs b/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs index a2452de75..24801a719 100644 --- a/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs +++ b/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalIncludedRunStepProperty : IEquatable + internal readonly partial struct InternalIncludedRunStepProperty : ValueType, IEquatable { private readonly string _value; private const string FileSearchResultContentValue = "step_details.tool_calls[*].file_search.results[*].content"; diff --git a/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs b/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs index 7d9fa906e..56ea2d7e2 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageContentImageFileObjectImageFileDetail : IEquatable + internal readonly partial struct InternalMessageContentImageFileObjectImageFileDetail : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs b/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs index 136fc25c2..5cce49190 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageContentImageUrlObjectImageUrlDetail : IEquatable + internal readonly partial struct InternalMessageContentImageUrlObjectImageUrlDetail : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs index f51e9f042..f636fb887 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageContentTextAnnotationType : IEquatable + internal readonly partial struct InternalMessageContentTextAnnotationType : ValueType, IEquatable { private readonly string _value; private const string FileCitationValue = "file_citation"; diff --git a/src/Generated/Models/Assistants/InternalMessageContentType.cs b/src/Generated/Models/Assistants/InternalMessageContentType.cs index bbf5f9b4f..8a0f22436 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentType.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageContentType : IEquatable + internal readonly partial struct InternalMessageContentType : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs index 331214cae..14844a159 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageDeltaContentImageFileObjectImageFileDetail : IEquatable + internal readonly partial struct InternalMessageDeltaContentImageFileObjectImageFileDetail : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs index 2851de157..dd398cfd5 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageDeltaContentImageUrlObjectImageUrlDetail : IEquatable + internal readonly partial struct InternalMessageDeltaContentImageUrlObjectImageUrlDetail : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs index 246cb166e..e364ac1f4 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageDeltaObjectDeltaRole : IEquatable + internal readonly partial struct InternalMessageDeltaObjectDeltaRole : ValueType, IEquatable { private readonly string _value; private const string UserValue = "user"; diff --git a/src/Generated/Models/Assistants/InternalMessageObjectRole.cs b/src/Generated/Models/Assistants/InternalMessageObjectRole.cs index 6ae5cc61f..ab0002a12 100644 --- a/src/Generated/Models/Assistants/InternalMessageObjectRole.cs +++ b/src/Generated/Models/Assistants/InternalMessageObjectRole.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalMessageObjectRole : IEquatable + internal readonly partial struct InternalMessageObjectRole : ValueType, IEquatable { private readonly string _value; private const string UserValue = "user"; diff --git a/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.Serialization.cs b/src/Generated/Models/Assistants/InternalRequiredFunctionToolCall.Serialization.cs index 6e21b3d4c..e6e6273de 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() { @@ -23,13 +23,14 @@ void IJsonModel.Write(Utf8JsonWriter writer, M writer.WriteEndObject(); } - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(InternalRequiredFunctionToolCall)} does not support writing '{format}' format."); } + base.JsonModelWriteCore(writer, options); if (_additionalBinaryDataProperties?.ContainsKey("id") != true) { writer.WritePropertyName("id"u8); @@ -67,9 +68,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - InternalRequiredFunctionToolCall IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + InternalRequiredFunctionToolCall IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (InternalRequiredFunctionToolCall)JsonModelCreateCore(ref reader, options); - protected virtual InternalRequiredFunctionToolCall JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected override object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -115,7 +116,7 @@ internal static InternalRequiredFunctionToolCall DeserializeInternalRequiredFunc BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) @@ -127,9 +128,9 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - InternalRequiredFunctionToolCall IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + InternalRequiredFunctionToolCall IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (InternalRequiredFunctionToolCall)PersistableModelCreateCore(data, options); - protected virtual InternalRequiredFunctionToolCall PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected override object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/InternalRunStepDetailsCodeInterpreterOutputType.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsCodeInterpreterOutputType.cs index f5c8b1782..20b52cc8c 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsCodeInterpreterOutputType.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsCodeInterpreterOutputType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalRunStepDetailsCodeInterpreterOutputType : IEquatable + internal readonly partial struct InternalRunStepDetailsCodeInterpreterOutputType : ValueType, IEquatable { private readonly string _value; private const string LogsValue = "logs"; 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/InternalRunStepDetailsType.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsType.cs index ed890b3ba..696a394c8 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsType.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalRunStepDetailsType : IEquatable + internal readonly partial struct InternalRunStepDetailsType : ValueType, IEquatable { private readonly string _value; private const string MessageCreationValue = "message_creation"; diff --git a/src/Generated/Models/Assistants/InternalTruncationObjectType.cs b/src/Generated/Models/Assistants/InternalTruncationObjectType.cs index b48cf8351..c74f9b598 100644 --- a/src/Generated/Models/Assistants/InternalTruncationObjectType.cs +++ b/src/Generated/Models/Assistants/InternalTruncationObjectType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Assistants { - internal readonly partial struct InternalTruncationObjectType : IEquatable + internal readonly partial struct InternalTruncationObjectType : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Assistants/MessageCollectionOrder.cs b/src/Generated/Models/Assistants/MessageCollectionOrder.cs index 675aa4115..b6867c5f2 100644 --- a/src/Generated/Models/Assistants/MessageCollectionOrder.cs +++ b/src/Generated/Models/Assistants/MessageCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct MessageCollectionOrder : IEquatable + public readonly partial struct MessageCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Assistants/MessageFailureReason.cs b/src/Generated/Models/Assistants/MessageFailureReason.cs index ae565dcd7..996fb65b5 100644 --- a/src/Generated/Models/Assistants/MessageFailureReason.cs +++ b/src/Generated/Models/Assistants/MessageFailureReason.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct MessageFailureReason : IEquatable + public readonly partial struct MessageFailureReason : ValueType, IEquatable { private readonly string _value; private const string ContentFilterValue = "content_filter"; diff --git a/src/Generated/Models/Assistants/MessageStatus.cs b/src/Generated/Models/Assistants/MessageStatus.cs index 75a785404..c1857e5e8 100644 --- a/src/Generated/Models/Assistants/MessageStatus.cs +++ b/src/Generated/Models/Assistants/MessageStatus.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct MessageStatus : IEquatable + public readonly partial struct MessageStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/Assistants/RunCollectionOrder.cs b/src/Generated/Models/Assistants/RunCollectionOrder.cs index 35b4de590..1c8f91baf 100644 --- a/src/Generated/Models/Assistants/RunCollectionOrder.cs +++ b/src/Generated/Models/Assistants/RunCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct RunCollectionOrder : IEquatable + public readonly partial struct RunCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Assistants/RunErrorCode.cs b/src/Generated/Models/Assistants/RunErrorCode.cs index 6e716acdb..acd3436ca 100644 --- a/src/Generated/Models/Assistants/RunErrorCode.cs +++ b/src/Generated/Models/Assistants/RunErrorCode.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct RunErrorCode : IEquatable + public readonly partial struct RunErrorCode : ValueType, IEquatable { private readonly string _value; private const string ServerErrorValue = "server_error"; diff --git a/src/Generated/Models/Assistants/RunIncompleteReason.cs b/src/Generated/Models/Assistants/RunIncompleteReason.cs index 5f281b571..1fb0e6e36 100644 --- a/src/Generated/Models/Assistants/RunIncompleteReason.cs +++ b/src/Generated/Models/Assistants/RunIncompleteReason.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct RunIncompleteReason : IEquatable + public readonly partial struct RunIncompleteReason : ValueType, IEquatable { private readonly string _value; private const string MaxCompletionTokensValue = "max_completion_tokens"; diff --git a/src/Generated/Models/Assistants/RunStatus.cs b/src/Generated/Models/Assistants/RunStatus.cs index 27e18fe83..3cb132e01 100644 --- a/src/Generated/Models/Assistants/RunStatus.cs +++ b/src/Generated/Models/Assistants/RunStatus.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct RunStatus : IEquatable + public readonly partial struct RunStatus : ValueType, IEquatable { private readonly string _value; private const string QueuedValue = "queued"; diff --git a/src/Generated/Models/Assistants/RunStepCollectionOrder.cs b/src/Generated/Models/Assistants/RunStepCollectionOrder.cs index ee3c91c31..06206c2ef 100644 --- a/src/Generated/Models/Assistants/RunStepCollectionOrder.cs +++ b/src/Generated/Models/Assistants/RunStepCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct RunStepCollectionOrder : IEquatable + public readonly partial struct RunStepCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Assistants/RunStepErrorCode.cs b/src/Generated/Models/Assistants/RunStepErrorCode.cs index 57ea7a8dc..270d9cc00 100644 --- a/src/Generated/Models/Assistants/RunStepErrorCode.cs +++ b/src/Generated/Models/Assistants/RunStepErrorCode.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct RunStepErrorCode : IEquatable + public readonly partial struct RunStepErrorCode : ValueType, IEquatable { private readonly string _value; private const string ServerErrorValue = "server_error"; diff --git a/src/Generated/Models/Assistants/RunStepStatus.cs b/src/Generated/Models/Assistants/RunStepStatus.cs index 498c12059..395b2adfe 100644 --- a/src/Generated/Models/Assistants/RunStepStatus.cs +++ b/src/Generated/Models/Assistants/RunStepStatus.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { [Experimental("OPENAI001")] - public readonly partial struct RunStepStatus : IEquatable + public readonly partial struct RunStepStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/Audio/AudioTranscriptionFormat.cs b/src/Generated/Models/Audio/AudioTranscriptionFormat.cs index 9090c46b4..676c30b3f 100644 --- a/src/Generated/Models/Audio/AudioTranscriptionFormat.cs +++ b/src/Generated/Models/Audio/AudioTranscriptionFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - public readonly partial struct AudioTranscriptionFormat : IEquatable + public readonly partial struct AudioTranscriptionFormat : ValueType, IEquatable { private readonly string _value; private const string JsonValue = "json"; diff --git a/src/Generated/Models/Audio/AudioTranslationFormat.cs b/src/Generated/Models/Audio/AudioTranslationFormat.cs index fbad90604..f76938070 100644 --- a/src/Generated/Models/Audio/AudioTranslationFormat.cs +++ b/src/Generated/Models/Audio/AudioTranslationFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - public readonly partial struct AudioTranslationFormat : IEquatable + public readonly partial struct AudioTranslationFormat : ValueType, IEquatable { private readonly string _value; private const string JsonValue = "json"; diff --git a/src/Generated/Models/Audio/GeneratedSpeechFormat.cs b/src/Generated/Models/Audio/GeneratedSpeechFormat.cs index 0b6ae85c1..b03a18dea 100644 --- a/src/Generated/Models/Audio/GeneratedSpeechFormat.cs +++ b/src/Generated/Models/Audio/GeneratedSpeechFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - public readonly partial struct GeneratedSpeechFormat : IEquatable + public readonly partial struct GeneratedSpeechFormat : ValueType, IEquatable { private readonly string _value; private const string Mp3Value = "mp3"; diff --git a/src/Generated/Models/Audio/GeneratedSpeechVoice.cs b/src/Generated/Models/Audio/GeneratedSpeechVoice.cs index 4a6eff3ce..03d56e9ea 100644 --- a/src/Generated/Models/Audio/GeneratedSpeechVoice.cs +++ b/src/Generated/Models/Audio/GeneratedSpeechVoice.cs @@ -9,7 +9,7 @@ namespace OpenAI.Audio { - public readonly partial struct GeneratedSpeechVoice : IEquatable + public readonly partial struct GeneratedSpeechVoice : ValueType, IEquatable { private readonly string _value; private const string AlloyValue = "alloy"; diff --git a/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs b/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs index 5a2b6442e..93377597a 100644 --- a/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs +++ b/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - internal readonly partial struct InternalCreateSpeechRequestModel : IEquatable + internal readonly partial struct InternalCreateSpeechRequestModel : ValueType, IEquatable { private readonly string _value; private const string Tts1Value = "tts-1"; diff --git a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs index c77a6b5a3..14fd47761 100644 --- a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs +++ b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - internal readonly partial struct InternalCreateTranscriptionRequestAccept : IEquatable + internal readonly partial struct InternalCreateTranscriptionRequestAccept : ValueType, IEquatable { private readonly string _value; private const string ApplicationJsonValue = "application/json"; diff --git a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs index a5ccde37d..758950c01 100644 --- a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs +++ b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - internal readonly partial struct InternalCreateTranscriptionRequestModel : IEquatable + internal readonly partial struct InternalCreateTranscriptionRequestModel : ValueType, IEquatable { private readonly string _value; private const string Whisper1Value = "whisper-1"; diff --git a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs index c0c86d759..4fea3603a 100644 --- a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs +++ b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - internal readonly partial struct InternalCreateTranscriptionRequestTimestampGranularities : IEquatable + internal readonly partial struct InternalCreateTranscriptionRequestTimestampGranularities : ValueType, IEquatable { private readonly string _value; private const string WordValue = "word"; diff --git a/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs b/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs index 4168c421c..da192ac37 100644 --- a/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs +++ b/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - internal readonly partial struct InternalCreateTranslationRequestModel : IEquatable + internal readonly partial struct InternalCreateTranslationRequestModel : ValueType, IEquatable { private readonly string _value; private const string Whisper1Value = "whisper-1"; diff --git a/src/Generated/Models/Audio/InternalTranscriptionInclude.cs b/src/Generated/Models/Audio/InternalTranscriptionInclude.cs index 2535af909..81ead8356 100644 --- a/src/Generated/Models/Audio/InternalTranscriptionInclude.cs +++ b/src/Generated/Models/Audio/InternalTranscriptionInclude.cs @@ -8,7 +8,7 @@ namespace OpenAI.Audio { - internal readonly partial struct InternalTranscriptionInclude : IEquatable + internal readonly partial struct InternalTranscriptionInclude : ValueType, IEquatable { private readonly string _value; private const string LogprobsValue = "logprobs"; diff --git a/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs b/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs index 10dd578f6..b1ddf3de9 100644 --- a/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs +++ b/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs @@ -10,7 +10,7 @@ namespace OpenAI.Audio { [Experimental("OPENAI001")] - public readonly partial struct StreamingAudioTranscriptionUpdateKind : IEquatable + public readonly partial struct StreamingAudioTranscriptionUpdateKind : ValueType, IEquatable { private readonly string _value; private const string TranscriptTextDeltaValue = "transcript.text.delta"; diff --git a/src/Generated/Models/Audio/TranscribedSegment.Serialization.cs b/src/Generated/Models/Audio/TranscribedSegment.Serialization.cs index 85090a7e5..ec590340c 100644 --- a/src/Generated/Models/Audio/TranscribedSegment.Serialization.cs +++ b/src/Generated/Models/Audio/TranscribedSegment.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Audio { - public readonly partial struct TranscribedSegment : IJsonModel, IJsonModel + public readonly partial struct TranscribedSegment : ValueType, IJsonModel, IJsonModel { public TranscribedSegment() { @@ -107,9 +107,9 @@ private void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions } } - TranscribedSegment IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + TranscribedSegment IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (TranscribedSegment)JsonModelCreateCore(ref reader, options); - private TranscribedSegment JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + private object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -231,9 +231,9 @@ private BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) } } - TranscribedSegment IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + TranscribedSegment IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (TranscribedSegment)PersistableModelCreateCore(data, options); - private TranscribedSegment PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + private object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) diff --git a/src/Generated/Models/Audio/TranscribedSegment.cs b/src/Generated/Models/Audio/TranscribedSegment.cs index 9e40adbae..ef3c34ec5 100644 --- a/src/Generated/Models/Audio/TranscribedSegment.cs +++ b/src/Generated/Models/Audio/TranscribedSegment.cs @@ -7,7 +7,7 @@ namespace OpenAI.Audio { - public readonly partial struct TranscribedSegment + public readonly partial struct TranscribedSegment : ValueType { private readonly IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/Audio/TranscribedWord.Serialization.cs b/src/Generated/Models/Audio/TranscribedWord.Serialization.cs index 07f28627b..8c6a27eb2 100644 --- a/src/Generated/Models/Audio/TranscribedWord.Serialization.cs +++ b/src/Generated/Models/Audio/TranscribedWord.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.Audio { - public readonly partial struct TranscribedWord : IJsonModel, IJsonModel + public readonly partial struct TranscribedWord : ValueType, IJsonModel, IJsonModel { public TranscribedWord() { @@ -67,9 +67,9 @@ private void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions } } - TranscribedWord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + TranscribedWord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (TranscribedWord)JsonModelCreateCore(ref reader, options); - private TranscribedWord JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + private object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -127,9 +127,9 @@ private BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) } } - TranscribedWord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + TranscribedWord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (TranscribedWord)PersistableModelCreateCore(data, options); - private TranscribedWord PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + private object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) diff --git a/src/Generated/Models/Audio/TranscribedWord.cs b/src/Generated/Models/Audio/TranscribedWord.cs index c52ca8d49..08c97b4e5 100644 --- a/src/Generated/Models/Audio/TranscribedWord.cs +++ b/src/Generated/Models/Audio/TranscribedWord.cs @@ -7,7 +7,7 @@ namespace OpenAI.Audio { - public readonly partial struct TranscribedWord + public readonly partial struct TranscribedWord : ValueType { private readonly IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/Batch/InternalBatchStatus.cs b/src/Generated/Models/Batch/InternalBatchStatus.cs index a245918df..a772d7887 100644 --- a/src/Generated/Models/Batch/InternalBatchStatus.cs +++ b/src/Generated/Models/Batch/InternalBatchStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Batch { - internal readonly partial struct InternalBatchStatus : IEquatable + internal readonly partial struct InternalBatchStatus : ValueType, IEquatable { private readonly string _value; private const string ValidatingValue = "validating"; diff --git a/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs b/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs index 068d9c173..9245edf30 100644 --- a/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs +++ b/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs @@ -8,7 +8,7 @@ namespace OpenAI.Batch { - internal readonly partial struct InternalCreateBatchRequestEndpoint : IEquatable + internal readonly partial struct InternalCreateBatchRequestEndpoint : ValueType, IEquatable { private readonly string _value; private const string V1ChatCompletionsValue = "/v1/chat/completions"; 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/ChatCompletionCollectionOrder.cs b/src/Generated/Models/Chat/ChatCompletionCollectionOrder.cs index 1f43a98b6..956159839 100644 --- a/src/Generated/Models/Chat/ChatCompletionCollectionOrder.cs +++ b/src/Generated/Models/Chat/ChatCompletionCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { [Experimental("OPENAI001")] - public readonly partial struct ChatCompletionCollectionOrder : IEquatable + public readonly partial struct ChatCompletionCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs b/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs index 67e4d5851..859135343 100644 --- a/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs +++ b/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { [Experimental("OPENAI001")] - public readonly partial struct ChatCompletionMessageCollectionOrder : IEquatable + public readonly partial struct ChatCompletionMessageCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Chat/ChatImageDetailLevel.cs b/src/Generated/Models/Chat/ChatImageDetailLevel.cs index 94b204dc2..29e14a08b 100644 --- a/src/Generated/Models/Chat/ChatImageDetailLevel.cs +++ b/src/Generated/Models/Chat/ChatImageDetailLevel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Chat { - public readonly partial struct ChatImageDetailLevel : IEquatable + public readonly partial struct ChatImageDetailLevel : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Chat/ChatInputAudioFormat.cs b/src/Generated/Models/Chat/ChatInputAudioFormat.cs index d7d62fba8..1ba15c767 100644 --- a/src/Generated/Models/Chat/ChatInputAudioFormat.cs +++ b/src/Generated/Models/Chat/ChatInputAudioFormat.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { [Experimental("OPENAI001")] - public readonly partial struct ChatInputAudioFormat : IEquatable + public readonly partial struct ChatInputAudioFormat : ValueType, IEquatable { private readonly string _value; private const string WavValue = "wav"; diff --git a/src/Generated/Models/Chat/ChatOutputAudioFormat.cs b/src/Generated/Models/Chat/ChatOutputAudioFormat.cs index 4be3cf1e7..e1f3f8d61 100644 --- a/src/Generated/Models/Chat/ChatOutputAudioFormat.cs +++ b/src/Generated/Models/Chat/ChatOutputAudioFormat.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { [Experimental("OPENAI001")] - public readonly partial struct ChatOutputAudioFormat : IEquatable + public readonly partial struct ChatOutputAudioFormat : ValueType, IEquatable { private readonly string _value; private const string WavValue = "wav"; diff --git a/src/Generated/Models/Chat/ChatOutputAudioVoice.cs b/src/Generated/Models/Chat/ChatOutputAudioVoice.cs index 06521148c..80f8a97e2 100644 --- a/src/Generated/Models/Chat/ChatOutputAudioVoice.cs +++ b/src/Generated/Models/Chat/ChatOutputAudioVoice.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { [Experimental("OPENAI001")] - public readonly partial struct ChatOutputAudioVoice : IEquatable + public readonly partial struct ChatOutputAudioVoice : ValueType, IEquatable { private readonly string _value; private const string AlloyValue = "alloy"; diff --git a/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs b/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs index 27653e2ff..5c1b69062 100644 --- a/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs +++ b/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { [Experimental("OPENAI001")] - public readonly partial struct ChatReasoningEffortLevel : IEquatable + public readonly partial struct ChatReasoningEffortLevel : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Chat/ChatServiceTier.cs b/src/Generated/Models/Chat/ChatServiceTier.cs index f1ca12ca5..36ad6bb2e 100644 --- a/src/Generated/Models/Chat/ChatServiceTier.cs +++ b/src/Generated/Models/Chat/ChatServiceTier.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { [Experimental("OPENAI001")] - public readonly partial struct ChatServiceTier : IEquatable + public readonly partial struct ChatServiceTier : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; 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/InternalChatOutputPredictionKind.cs b/src/Generated/Models/Chat/InternalChatOutputPredictionKind.cs index 8e78f1966..30ac717cb 100644 --- a/src/Generated/Models/Chat/InternalChatOutputPredictionKind.cs +++ b/src/Generated/Models/Chat/InternalChatOutputPredictionKind.cs @@ -8,7 +8,7 @@ namespace OpenAI.Chat { - internal readonly partial struct InternalChatOutputPredictionKind : IEquatable + internal readonly partial struct InternalChatOutputPredictionKind : ValueType, IEquatable { private readonly string _value; private const string StaticContentValue = "content"; diff --git a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs index 762f761c5..4c7df6c4a 100644 --- a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs +++ b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs @@ -8,7 +8,7 @@ namespace OpenAI.Chat { - internal readonly partial struct InternalCreateChatCompletionRequestModality : IEquatable + internal readonly partial struct InternalCreateChatCompletionRequestModality : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs index 3ea21055d..be7e05193 100644 --- a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs +++ b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs @@ -8,7 +8,7 @@ namespace OpenAI.Chat { - internal readonly partial struct InternalCreateChatCompletionRequestToolChoice : IEquatable + internal readonly partial struct InternalCreateChatCompletionRequestToolChoice : ValueType, IEquatable { private readonly string _value; private const string NoneValue = "none"; diff --git a/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs b/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs index 9d5790093..894080a4d 100644 --- a/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs +++ b/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs @@ -8,7 +8,7 @@ namespace OpenAI.Chat { - internal readonly partial struct InternalCreateChatCompletionStreamResponseChoiceFinishReason : IEquatable + internal readonly partial struct InternalCreateChatCompletionStreamResponseChoiceFinishReason : ValueType, IEquatable { private readonly string _value; private const string StopValue = "stop"; 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/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/ContainerCollectionOrder.cs b/src/Generated/Models/Containers/ContainerCollectionOrder.cs index e438a0fbf..875a43b28 100644 --- a/src/Generated/Models/Containers/ContainerCollectionOrder.cs +++ b/src/Generated/Models/Containers/ContainerCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Containers { [Experimental("OPENAI001")] - public readonly partial struct ContainerCollectionOrder : IEquatable + public readonly partial struct ContainerCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs index ae1221046..ae13ebdc3 100644 --- a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs +++ b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Embeddings { - internal readonly partial struct InternalCreateEmbeddingRequestEncodingFormat : IEquatable + internal readonly partial struct InternalCreateEmbeddingRequestEncodingFormat : ValueType, IEquatable { private readonly string _value; private const string FloatValue = "float"; diff --git a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs index 1412fbec7..d18151097 100644 --- a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs +++ b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Embeddings { - internal readonly partial struct InternalCreateEmbeddingRequestModel : IEquatable + internal readonly partial struct InternalCreateEmbeddingRequestModel : ValueType, IEquatable { private readonly string _value; private const string TextEmbeddingAda002Value = "text-embedding-ada-002"; diff --git a/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs b/src/Generated/Models/Embeddings/OpenAIEmbeddingCollection.Serialization.cs index fd5fc1551..6bcbefd71 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) @@ -58,10 +59,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - OpenAIEmbeddingCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + OpenAIEmbeddingCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (OpenAIEmbeddingCollection)JsonModelCreateCore(ref reader, options); [Experimental("OPENAI001")] - protected virtual OpenAIEmbeddingCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected virtual object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -87,10 +88,10 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - OpenAIEmbeddingCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + OpenAIEmbeddingCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (OpenAIEmbeddingCollection)PersistableModelCreateCore(data, options); [Experimental("OPENAI001")] - protected virtual OpenAIEmbeddingCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/InternalEvalDataSourceConfigType.cs b/src/Generated/Models/Evals/InternalEvalDataSourceConfigType.cs index 0691a2e1a..37850fdf3 100644 --- a/src/Generated/Models/Evals/InternalEvalDataSourceConfigType.cs +++ b/src/Generated/Models/Evals/InternalEvalDataSourceConfigType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalEvalDataSourceConfigType : IEquatable + internal readonly partial struct InternalEvalDataSourceConfigType : ValueType, IEquatable { private readonly string _value; private const string CustomValue = "custom"; diff --git a/src/Generated/Models/Evals/InternalEvalItemContentType.cs b/src/Generated/Models/Evals/InternalEvalItemContentType.cs index 51aadc3d5..94ae117e9 100644 --- a/src/Generated/Models/Evals/InternalEvalItemContentType.cs +++ b/src/Generated/Models/Evals/InternalEvalItemContentType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalEvalItemContentType : IEquatable + internal readonly partial struct InternalEvalItemContentType : ValueType, IEquatable { private readonly string _value; private const string InputTextValue = "input_text"; diff --git a/src/Generated/Models/Evals/InternalEvalItemRole.cs b/src/Generated/Models/Evals/InternalEvalItemRole.cs index 725dd6453..16c7ff77d 100644 --- a/src/Generated/Models/Evals/InternalEvalItemRole.cs +++ b/src/Generated/Models/Evals/InternalEvalItemRole.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalEvalItemRole : IEquatable + internal readonly partial struct InternalEvalItemRole : ValueType, IEquatable { private readonly string _value; private const string UserValue = "user"; diff --git a/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs b/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs index f01c6940e..c6da30571 100644 --- a/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs +++ b/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalEvalRunDataContentSourceType : IEquatable + internal readonly partial struct InternalEvalRunDataContentSourceType : ValueType, IEquatable { private readonly string _value; private const string FileIdValue = "file_id"; diff --git a/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs b/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs index 6f855c0cc..163115867 100644 --- a/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs +++ b/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalEvalRunDataSourceType : IEquatable + internal readonly partial struct InternalEvalRunDataSourceType : ValueType, IEquatable { private readonly string _value; private const string JsonlValue = "jsonl"; diff --git a/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs b/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs index 561251643..52846d6a2 100644 --- a/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs +++ b/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalGetEvalRunOutputItemsRequestStatus : IEquatable + internal readonly partial struct InternalGetEvalRunOutputItemsRequestStatus : ValueType, IEquatable { private readonly string _value; private const string FailValue = "fail"; diff --git a/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs b/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs index 8ed9a2a78..3be710156 100644 --- a/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs +++ b/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalGetEvalRunsRequestStatus : IEquatable + internal readonly partial struct InternalGetEvalRunsRequestStatus : ValueType, IEquatable { private readonly string _value; private const string QueuedValue = "queued"; diff --git a/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs b/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs index 4d21353ed..3cd6199d1 100644 --- a/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs +++ b/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs @@ -8,7 +8,7 @@ namespace OpenAI.Evals { - internal readonly partial struct InternalListEvalsRequestOrderBy : IEquatable + internal readonly partial struct InternalListEvalsRequestOrderBy : ValueType, IEquatable { private readonly string _value; private const string CreatedAtValue = "created_at"; diff --git a/src/Generated/Models/Files/FileUploadPurpose.cs b/src/Generated/Models/Files/FileUploadPurpose.cs index 5da1b63a8..4140f80e3 100644 --- a/src/Generated/Models/Files/FileUploadPurpose.cs +++ b/src/Generated/Models/Files/FileUploadPurpose.cs @@ -8,7 +8,7 @@ namespace OpenAI.Files { - public readonly partial struct FileUploadPurpose : IEquatable + public readonly partial struct FileUploadPurpose : ValueType, IEquatable { private readonly string _value; private const string AssistantsValue = "assistants"; diff --git a/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs b/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs index e01900b26..624ccfc77 100644 --- a/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs +++ b/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs @@ -8,7 +8,7 @@ namespace OpenAI.Files { - internal readonly partial struct InternalCreateUploadRequestPurpose : IEquatable + internal readonly partial struct InternalCreateUploadRequestPurpose : ValueType, IEquatable { private readonly string _value; private const string AssistantsValue = "assistants"; diff --git a/src/Generated/Models/Files/InternalUploadStatus.cs b/src/Generated/Models/Files/InternalUploadStatus.cs index 7f1f1c4ee..fdd09f820 100644 --- a/src/Generated/Models/Files/InternalUploadStatus.cs +++ b/src/Generated/Models/Files/InternalUploadStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Files { - internal readonly partial struct InternalUploadStatus : IEquatable + internal readonly partial struct InternalUploadStatus : ValueType, IEquatable { private readonly string _value; private const string PendingValue = "pending"; diff --git a/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs b/src/Generated/Models/Files/OpenAIFileCollection.Serialization.cs index 9e67bea00..f03c9b4c4 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) @@ -63,10 +64,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - OpenAIFileCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + OpenAIFileCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (OpenAIFileCollection)JsonModelCreateCore(ref reader, options); [Experimental("OPENAI001")] - protected virtual OpenAIFileCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected virtual object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -92,10 +93,10 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - OpenAIFileCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + OpenAIFileCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (OpenAIFileCollection)PersistableModelCreateCore(data, options); [Experimental("OPENAI001")] - protected virtual OpenAIFileCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/FineTuningHyperparameters.Serialization.cs b/src/Generated/Models/FineTuning/FineTuningHyperparameters.Serialization.cs index e5108a6e6..101ec418a 100644 --- a/src/Generated/Models/FineTuning/FineTuningHyperparameters.Serialization.cs +++ b/src/Generated/Models/FineTuning/FineTuningHyperparameters.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { - public readonly partial struct FineTuningHyperparameters : IJsonModel, IJsonModel + public readonly partial struct FineTuningHyperparameters : ValueType, IJsonModel, IJsonModel { public FineTuningHyperparameters() { @@ -88,9 +88,9 @@ private void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions } } - FineTuningHyperparameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + FineTuningHyperparameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (FineTuningHyperparameters)JsonModelCreateCore(ref reader, options); - private FineTuningHyperparameters JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + private object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -161,9 +161,9 @@ private BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) } } - FineTuningHyperparameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + FineTuningHyperparameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (FineTuningHyperparameters)PersistableModelCreateCore(data, options); - private FineTuningHyperparameters PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + private object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) diff --git a/src/Generated/Models/FineTuning/FineTuningHyperparameters.cs b/src/Generated/Models/FineTuning/FineTuningHyperparameters.cs index bb1f8c425..429966ad2 100644 --- a/src/Generated/Models/FineTuning/FineTuningHyperparameters.cs +++ b/src/Generated/Models/FineTuning/FineTuningHyperparameters.cs @@ -9,7 +9,7 @@ namespace OpenAI.FineTuning { [Experimental("OPENAI001")] - public readonly partial struct FineTuningHyperparameters + public readonly partial struct FineTuningHyperparameters : ValueType { private readonly IDictionary _additionalBinaryDataProperties; diff --git a/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs b/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs index 722d5cdec..3d8ad816e 100644 --- a/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs +++ b/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { [Experimental("OPENAI001")] - public readonly partial struct FineTuningJobEventKind : IEquatable + public readonly partial struct FineTuningJobEventKind : ValueType, IEquatable { private readonly string _value; private const string MessageValue = "message"; diff --git a/src/Generated/Models/FineTuning/FineTuningStatus.cs b/src/Generated/Models/FineTuning/FineTuningStatus.cs index af437823d..74472c5e9 100644 --- a/src/Generated/Models/FineTuning/FineTuningStatus.cs +++ b/src/Generated/Models/FineTuning/FineTuningStatus.cs @@ -10,7 +10,7 @@ namespace OpenAI.FineTuning { [Experimental("OPENAI001")] - public readonly partial struct FineTuningStatus : IEquatable + public readonly partial struct FineTuningStatus : ValueType, IEquatable { private readonly string _value; private const string ValidatingFilesValue = "validating_files"; diff --git a/src/Generated/Models/FineTuning/HyperparametersForDPO.Serialization.cs b/src/Generated/Models/FineTuning/HyperparametersForDPO.Serialization.cs index ff6fd3725..8376f6329 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) { @@ -19,13 +19,14 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW writer.WriteEndObject(); } - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(HyperparametersForDPO)} does not support writing '{format}' format."); } + base.JsonModelWriteCore(writer, options); if (Optional.IsDefined(_Beta) && _additionalBinaryDataProperties?.ContainsKey("beta") != true) { writer.WritePropertyName("beta"u8); @@ -96,9 +97,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - HyperparametersForDPO IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + HyperparametersForDPO IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HyperparametersForDPO)JsonModelCreateCore(ref reader, options); - protected virtual HyperparametersForDPO JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected override object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -166,7 +167,7 @@ internal static HyperparametersForDPO DeserializeHyperparametersForDPO(JsonEleme BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) @@ -178,9 +179,9 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - HyperparametersForDPO IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + HyperparametersForDPO IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HyperparametersForDPO)PersistableModelCreateCore(data, options); - protected virtual HyperparametersForDPO PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected override object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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..7c2f7c79a 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) { @@ -19,13 +19,14 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model writer.WriteEndObject(); } - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(HyperparametersForSupervised)} does not support writing '{format}' format."); } + base.JsonModelWriteCore(writer, options); if (Optional.IsDefined(_BatchSize) && _additionalBinaryDataProperties?.ContainsKey("batch_size") != true) { writer.WritePropertyName("batch_size"u8); @@ -84,9 +85,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - HyperparametersForSupervised IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + HyperparametersForSupervised IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (HyperparametersForSupervised)JsonModelCreateCore(ref reader, options); - protected virtual HyperparametersForSupervised JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected override object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -144,7 +145,7 @@ internal static HyperparametersForSupervised DeserializeHyperparametersForSuperv BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) @@ -156,9 +157,9 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - HyperparametersForSupervised IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + HyperparametersForSupervised IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (HyperparametersForSupervised)PersistableModelCreateCore(data, options); - protected virtual HyperparametersForSupervised PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected override object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs index 7d5f724a0..d1afa9f5e 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum : IEquatable + internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs index 92d700e2d..2c5d217a9 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum : IEquatable + internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs index 5100803cc..1fedf0deb 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum : IEquatable + internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs index 45c6b322d..b440a797f 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum : IEquatable + internal readonly partial struct InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs index 5d9551e33..906eafece 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalCreateFineTuningJobRequestIntegrationType : IEquatable + internal readonly partial struct InternalCreateFineTuningJobRequestIntegrationType : ValueType, IEquatable { private readonly string _value; private const string WandbValue = "wandb"; diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs index b836a6e6f..4d8b3a70d 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalCreateFineTuningJobRequestModel : IEquatable + internal readonly partial struct InternalCreateFineTuningJobRequestModel : ValueType, IEquatable { private readonly string _value; private const string Babbage002Value = "babbage-002"; diff --git a/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs b/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs index aae787060..bd976c2eb 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalFineTuneChatCompletionRequestAssistantMessageWeight : IEquatable + internal readonly partial struct InternalFineTuneChatCompletionRequestAssistantMessageWeight : ValueType, IEquatable { private readonly string _value; private const string _0Value = "0"; diff --git a/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs b/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs index ac56d23c5..94de4c729 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalFineTuneMethodType : IEquatable + internal readonly partial struct InternalFineTuneMethodType : ValueType, IEquatable { private readonly string _value; private const string SupervisedValue = "supervised"; diff --git a/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs b/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs index c668255ec..dfcd58ea3 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalFineTuneReinforcementHyperparametersReasoningEffort : IEquatable + internal readonly partial struct InternalFineTuneReinforcementHyperparametersReasoningEffort : ValueType, IEquatable { private readonly string _value; private const string DefaultValue = "default"; diff --git a/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs b/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs index f2afc14cb..2f513ee4b 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs @@ -8,7 +8,7 @@ namespace OpenAI.FineTuning { - internal readonly partial struct InternalFineTuningIntegrationType : IEquatable + internal readonly partial struct InternalFineTuningIntegrationType : ValueType, IEquatable { private readonly string _value; private const string WandbValue = "wandb"; diff --git a/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.Serialization.cs b/src/Generated/Models/FineTuning/InternalFineTuningJobsPageToken.Serialization.cs index e95d81178..0ef70f781 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) { @@ -19,13 +20,14 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mo writer.WriteEndObject(); } - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { throw new FormatException($"The model {nameof(InternalFineTuningJobsPageToken)} does not support writing '{format}' format."); } + base.JsonModelWriteCore(writer, options); if (Optional.IsDefined(Limit) && _additionalBinaryDataProperties?.ContainsKey("limit") != true) { writer.WritePropertyName("limit"u8); @@ -58,9 +60,9 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - InternalFineTuningJobsPageToken IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + InternalFineTuningJobsPageToken IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (InternalFineTuningJobsPageToken)JsonModelCreateCore(ref reader, options); - protected virtual InternalFineTuningJobsPageToken JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected override object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -104,7 +106,7 @@ internal static InternalFineTuningJobsPageToken DeserializeInternalFineTuningJob BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); - protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) @@ -116,9 +118,9 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - InternalFineTuningJobsPageToken IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + InternalFineTuningJobsPageToken IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (InternalFineTuningJobsPageToken)PersistableModelCreateCore(data, options); - protected virtual InternalFineTuningJobsPageToken PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected override object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/Graders/GraderStringCheckOperation.cs b/src/Generated/Models/Graders/GraderStringCheckOperation.cs index 8f9b9302a..8d4f42263 100644 --- a/src/Generated/Models/Graders/GraderStringCheckOperation.cs +++ b/src/Generated/Models/Graders/GraderStringCheckOperation.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { [Experimental("OPENAI001")] - public readonly partial struct GraderStringCheckOperation : IEquatable + public readonly partial struct GraderStringCheckOperation : ValueType, IEquatable { private readonly string _value; private const string EqValue = "eq"; diff --git a/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs b/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs index a5bc4c382..25403d740 100644 --- a/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs +++ b/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { [Experimental("OPENAI001")] - public readonly partial struct GraderTextSimilarityEvaluationMetric : IEquatable + public readonly partial struct GraderTextSimilarityEvaluationMetric : ValueType, IEquatable { private readonly string _value; private const string FuzzyMatchValue = "fuzzy_match"; diff --git a/src/Generated/Models/Graders/GraderType.cs b/src/Generated/Models/Graders/GraderType.cs index 65109d59d..4bea3161f 100644 --- a/src/Generated/Models/Graders/GraderType.cs +++ b/src/Generated/Models/Graders/GraderType.cs @@ -10,7 +10,7 @@ namespace OpenAI.Graders { [Experimental("OPENAI001")] - public readonly partial struct GraderType : IEquatable + public readonly partial struct GraderType : ValueType, IEquatable { private readonly string _value; private const string StringCheckValue = "string_check"; diff --git a/src/Generated/Models/Images/GeneratedImageBackground.cs b/src/Generated/Models/Images/GeneratedImageBackground.cs index 6c5671e6a..81295f1b4 100644 --- a/src/Generated/Models/Images/GeneratedImageBackground.cs +++ b/src/Generated/Models/Images/GeneratedImageBackground.cs @@ -10,7 +10,7 @@ namespace OpenAI.Images { [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageBackground : IEquatable + public readonly partial struct GeneratedImageBackground : ValueType, IEquatable { private readonly string _value; private const string TransparentValue = "transparent"; diff --git a/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs b/src/Generated/Models/Images/GeneratedImageCollection.Serialization.cs index bfe64edca..ca8b0b80b 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) { @@ -71,10 +72,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - GeneratedImageCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + GeneratedImageCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (GeneratedImageCollection)JsonModelCreateCore(ref reader, options); [Experimental("OPENAI001")] - protected virtual GeneratedImageCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected virtual object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -146,10 +147,10 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - GeneratedImageCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + GeneratedImageCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (GeneratedImageCollection)PersistableModelCreateCore(data, options); [Experimental("OPENAI001")] - protected virtual GeneratedImageCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/Images/GeneratedImageFileFormat.cs b/src/Generated/Models/Images/GeneratedImageFileFormat.cs index 293c15e0f..35a9ab16b 100644 --- a/src/Generated/Models/Images/GeneratedImageFileFormat.cs +++ b/src/Generated/Models/Images/GeneratedImageFileFormat.cs @@ -10,7 +10,7 @@ namespace OpenAI.Images { [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageFileFormat : IEquatable + public readonly partial struct GeneratedImageFileFormat : ValueType, IEquatable { private readonly string _value; private const string PngValue = "png"; diff --git a/src/Generated/Models/Images/GeneratedImageFormat.cs b/src/Generated/Models/Images/GeneratedImageFormat.cs index 48d37e31f..878f34d54 100644 --- a/src/Generated/Models/Images/GeneratedImageFormat.cs +++ b/src/Generated/Models/Images/GeneratedImageFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - public readonly partial struct GeneratedImageFormat : IEquatable + public readonly partial struct GeneratedImageFormat : ValueType, IEquatable { private readonly string _value; private const string UrlValue = "url"; diff --git a/src/Generated/Models/Images/GeneratedImageModerationLevel.cs b/src/Generated/Models/Images/GeneratedImageModerationLevel.cs index 073d63bfe..89ffd5e62 100644 --- a/src/Generated/Models/Images/GeneratedImageModerationLevel.cs +++ b/src/Generated/Models/Images/GeneratedImageModerationLevel.cs @@ -10,7 +10,7 @@ namespace OpenAI.Images { [Experimental("OPENAI001")] - public readonly partial struct GeneratedImageModerationLevel : IEquatable + public readonly partial struct GeneratedImageModerationLevel : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Images/GeneratedImageQuality.cs b/src/Generated/Models/Images/GeneratedImageQuality.cs index 9f45c4a5b..72b9d8cbc 100644 --- a/src/Generated/Models/Images/GeneratedImageQuality.cs +++ b/src/Generated/Models/Images/GeneratedImageQuality.cs @@ -9,7 +9,7 @@ namespace OpenAI.Images { - public readonly partial struct GeneratedImageQuality : IEquatable + public readonly partial struct GeneratedImageQuality : ValueType, IEquatable { private readonly string _value; private const string StandardValue = "standard"; diff --git a/src/Generated/Models/Images/GeneratedImageSize.cs b/src/Generated/Models/Images/GeneratedImageSize.cs index cee33b7cc..7aed2cf7a 100644 --- a/src/Generated/Models/Images/GeneratedImageSize.cs +++ b/src/Generated/Models/Images/GeneratedImageSize.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - public readonly partial struct GeneratedImageSize : IEquatable + public readonly partial struct GeneratedImageSize : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Images/GeneratedImageStyle.cs b/src/Generated/Models/Images/GeneratedImageStyle.cs index 4c72a8849..4b51aa31d 100644 --- a/src/Generated/Models/Images/GeneratedImageStyle.cs +++ b/src/Generated/Models/Images/GeneratedImageStyle.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - public readonly partial struct GeneratedImageStyle : IEquatable + public readonly partial struct GeneratedImageStyle : ValueType, IEquatable { private readonly string _value; private const string VividValue = "vivid"; diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs index 00bcd664d..e12f18596 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageEditRequestBackground : IEquatable + internal readonly partial struct InternalCreateImageEditRequestBackground : ValueType, IEquatable { private readonly string _value; private const string TransparentValue = "transparent"; diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs index 31b68a63c..16aeb5b53 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageEditRequestModel : IEquatable + internal readonly partial struct InternalCreateImageEditRequestModel : ValueType, IEquatable { private readonly string _value; private const string DallE2Value = "dall-e-2"; diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs index d4459857d..a60188394 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageEditRequestQuality : IEquatable + internal readonly partial struct InternalCreateImageEditRequestQuality : ValueType, IEquatable { private readonly string _value; private const string StandardValue = "standard"; diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs index 5650984c3..94c8b5c26 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageEditRequestResponseFormat : IEquatable + internal readonly partial struct InternalCreateImageEditRequestResponseFormat : ValueType, IEquatable { private readonly string _value; private const string UrlValue = "url"; diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs index cada2600a..6d9851141 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageEditRequestSize : IEquatable + internal readonly partial struct InternalCreateImageEditRequestSize : ValueType, IEquatable { private readonly string _value; private const string _256x256Value = "256x256"; diff --git a/src/Generated/Models/Images/InternalCreateImageRequestModel.cs b/src/Generated/Models/Images/InternalCreateImageRequestModel.cs index 570816e6f..cf5d58114 100644 --- a/src/Generated/Models/Images/InternalCreateImageRequestModel.cs +++ b/src/Generated/Models/Images/InternalCreateImageRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageRequestModel : IEquatable + internal readonly partial struct InternalCreateImageRequestModel : ValueType, IEquatable { private readonly string _value; private const string DallE2Value = "dall-e-2"; diff --git a/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs b/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs index 6881b4baf..ca0c192be 100644 --- a/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs +++ b/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageVariationRequestModel : IEquatable + internal readonly partial struct InternalCreateImageVariationRequestModel : ValueType, IEquatable { private readonly string _value; private const string DallE2Value = "dall-e-2"; diff --git a/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs b/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs index 81c23ec2c..c0f05c63c 100644 --- a/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs +++ b/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageVariationRequestResponseFormat : IEquatable + internal readonly partial struct InternalCreateImageVariationRequestResponseFormat : ValueType, IEquatable { private readonly string _value; private const string UrlValue = "url"; diff --git a/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs b/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs index 7b965c05d..be52674fb 100644 --- a/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs +++ b/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs @@ -8,7 +8,7 @@ namespace OpenAI.Images { - internal readonly partial struct InternalCreateImageVariationRequestSize : IEquatable + internal readonly partial struct InternalCreateImageVariationRequestSize : ValueType, IEquatable { private readonly string _value; private const string _256x256Value = "256x256"; diff --git a/src/Generated/Models/Internal/InternalModelIdsShared.cs b/src/Generated/Models/Internal/InternalModelIdsShared.cs index b7c24f2b2..bcce7bd9d 100644 --- a/src/Generated/Models/Internal/InternalModelIdsShared.cs +++ b/src/Generated/Models/Internal/InternalModelIdsShared.cs @@ -8,7 +8,7 @@ namespace OpenAI.Internal { - internal readonly partial struct InternalModelIdsShared : IEquatable + internal readonly partial struct InternalModelIdsShared : ValueType, IEquatable { private readonly string _value; private const string Gpt41Value = "gpt-4.1"; diff --git a/src/Generated/Models/Internal/InternalResponseFormatType.cs b/src/Generated/Models/Internal/InternalResponseFormatType.cs index a0cea6dd5..409f5652a 100644 --- a/src/Generated/Models/Internal/InternalResponseFormatType.cs +++ b/src/Generated/Models/Internal/InternalResponseFormatType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Internal { - internal readonly partial struct InternalResponseFormatType : IEquatable + internal readonly partial struct InternalResponseFormatType : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Internal/InternalVoiceIdsShared.cs b/src/Generated/Models/Internal/InternalVoiceIdsShared.cs index 95b6f9252..2ac72da54 100644 --- a/src/Generated/Models/Internal/InternalVoiceIdsShared.cs +++ b/src/Generated/Models/Internal/InternalVoiceIdsShared.cs @@ -8,7 +8,7 @@ namespace OpenAI.Internal { - internal readonly partial struct InternalVoiceIdsShared : IEquatable + internal readonly partial struct InternalVoiceIdsShared : ValueType, IEquatable { private readonly string _value; private const string AlloyValue = "alloy"; diff --git a/src/Generated/Models/Internal/InternalWebSearchContextSize.cs b/src/Generated/Models/Internal/InternalWebSearchContextSize.cs index 1bf58b98b..86cf1c5eb 100644 --- a/src/Generated/Models/Internal/InternalWebSearchContextSize.cs +++ b/src/Generated/Models/Internal/InternalWebSearchContextSize.cs @@ -8,7 +8,7 @@ namespace OpenAI.Internal { - internal readonly partial struct InternalWebSearchContextSize : IEquatable + internal readonly partial struct InternalWebSearchContextSize : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs index cceec977b..fa462fe09 100644 --- a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs +++ b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.LegacyCompletions { - internal readonly partial struct InternalCreateCompletionRequestModel : IEquatable + internal readonly partial struct InternalCreateCompletionRequestModel : ValueType, IEquatable { private readonly string _value; private const string Gpt35TurboInstructValue = "gpt-3.5-turbo-instruct"; diff --git a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs index 69013e210..7b11d2612 100644 --- a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs +++ b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs @@ -8,7 +8,7 @@ namespace OpenAI.LegacyCompletions { - internal readonly partial struct InternalCreateCompletionResponseChoiceFinishReason : IEquatable + internal readonly partial struct InternalCreateCompletionResponseChoiceFinishReason : ValueType, IEquatable { private readonly string _value; private const string StopValue = "stop"; diff --git a/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs b/src/Generated/Models/Models/OpenAIModelCollection.Serialization.cs index 6c1eed2fe..825dcd654 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) @@ -48,10 +49,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - OpenAIModelCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + OpenAIModelCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (OpenAIModelCollection)JsonModelCreateCore(ref reader, options); [Experimental("OPENAI001")] - protected virtual OpenAIModelCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected virtual object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -77,10 +78,10 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - OpenAIModelCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + OpenAIModelCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (OpenAIModelCollection)PersistableModelCreateCore(data, options); [Experimental("OPENAI001")] - protected virtual OpenAIModelCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/InternalCreateModerationRequestModel.cs b/src/Generated/Models/Moderations/InternalCreateModerationRequestModel.cs index e5d3cf650..5c7c2bc27 100644 --- a/src/Generated/Models/Moderations/InternalCreateModerationRequestModel.cs +++ b/src/Generated/Models/Moderations/InternalCreateModerationRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Moderations { - internal readonly partial struct InternalCreateModerationRequestModel : IEquatable + internal readonly partial struct InternalCreateModerationRequestModel : ValueType, IEquatable { private readonly string _value; private const string OmniModerationLatestValue = "omni-moderation-latest"; diff --git a/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs b/src/Generated/Models/Moderations/ModerationResultCollection.Serialization.cs index e4ac419b4..d5b71dfc6 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) @@ -53,10 +54,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ModerationResultCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + ModerationResultCollection IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => (ModerationResultCollection)JsonModelCreateCore(ref reader, options); [Experimental("OPENAI001")] - protected virtual ModerationResultCollection JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + protected virtual object JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -82,10 +83,10 @@ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions } } - ModerationResultCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + ModerationResultCollection IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => (ModerationResultCollection)PersistableModelCreateCore(data, options); [Experimental("OPENAI001")] - protected virtual ModerationResultCollection PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + protected virtual object PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) { string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) 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/ConversationContentPartKind.cs b/src/Generated/Models/Realtime/ConversationContentPartKind.cs index 676dc5dd5..c4903f162 100644 --- a/src/Generated/Models/Realtime/ConversationContentPartKind.cs +++ b/src/Generated/Models/Realtime/ConversationContentPartKind.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ConversationContentPartKind : IEquatable + public readonly partial struct ConversationContentPartKind : ValueType, IEquatable { private readonly string _value; private const string InputTextValue = "input_text"; 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/ConversationIncompleteReason.cs b/src/Generated/Models/Realtime/ConversationIncompleteReason.cs index 8c39406a1..9da490f7a 100644 --- a/src/Generated/Models/Realtime/ConversationIncompleteReason.cs +++ b/src/Generated/Models/Realtime/ConversationIncompleteReason.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ConversationIncompleteReason : IEquatable + public readonly partial struct ConversationIncompleteReason : ValueType, IEquatable { private readonly string _value; private const string TurnDetectedValue = "turn_detected"; diff --git a/src/Generated/Models/Realtime/ConversationItemStatus.cs b/src/Generated/Models/Realtime/ConversationItemStatus.cs index c8023bb58..0fa064d4b 100644 --- a/src/Generated/Models/Realtime/ConversationItemStatus.cs +++ b/src/Generated/Models/Realtime/ConversationItemStatus.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ConversationItemStatus : IEquatable + public readonly partial struct ConversationItemStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/Realtime/ConversationMessageRole.cs b/src/Generated/Models/Realtime/ConversationMessageRole.cs index 27b3cffe2..6c1cd15f8 100644 --- a/src/Generated/Models/Realtime/ConversationMessageRole.cs +++ b/src/Generated/Models/Realtime/ConversationMessageRole.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ConversationMessageRole : IEquatable + public readonly partial struct ConversationMessageRole : ValueType, IEquatable { private readonly string _value; private const string SystemValue = "system"; diff --git a/src/Generated/Models/Realtime/ConversationStatus.cs b/src/Generated/Models/Realtime/ConversationStatus.cs index 97cce22e4..ad27a5b0a 100644 --- a/src/Generated/Models/Realtime/ConversationStatus.cs +++ b/src/Generated/Models/Realtime/ConversationStatus.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ConversationStatus : IEquatable + public readonly partial struct ConversationStatus : ValueType, IEquatable { private readonly string _value; private const string CompletedValue = "completed"; diff --git a/src/Generated/Models/Realtime/ConversationToolKind.cs b/src/Generated/Models/Realtime/ConversationToolKind.cs index 255a1f8fb..c346c00c4 100644 --- a/src/Generated/Models/Realtime/ConversationToolKind.cs +++ b/src/Generated/Models/Realtime/ConversationToolKind.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ConversationToolKind : IEquatable + public readonly partial struct ConversationToolKind : ValueType, IEquatable { private readonly string _value; private const string FunctionValue = "function"; diff --git a/src/Generated/Models/Realtime/ConversationVoice.cs b/src/Generated/Models/Realtime/ConversationVoice.cs index 3a1e04e5f..28d50a07e 100644 --- a/src/Generated/Models/Realtime/ConversationVoice.cs +++ b/src/Generated/Models/Realtime/ConversationVoice.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ConversationVoice : IEquatable + public readonly partial struct ConversationVoice : ValueType, IEquatable { private readonly string _value; private const string AlloyValue = "alloy"; diff --git a/src/Generated/Models/Realtime/InputTranscriptionModel.cs b/src/Generated/Models/Realtime/InputTranscriptionModel.cs index 48561aec3..7ab4f5efb 100644 --- a/src/Generated/Models/Realtime/InputTranscriptionModel.cs +++ b/src/Generated/Models/Realtime/InputTranscriptionModel.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct InputTranscriptionModel : IEquatable + public readonly partial struct InputTranscriptionModel : ValueType, IEquatable { private readonly string _value; private const string Whisper1Value = "whisper-1"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs index 9ade3bbaa..6e0c10a3d 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeClientEventType : IEquatable + internal readonly partial struct InternalRealtimeClientEventType : ValueType, IEquatable { private readonly string _value; private const string SessionUpdateValue = "session.update"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeItemType.cs b/src/Generated/Models/Realtime/InternalRealtimeItemType.cs index 6e895964a..b6ad3301c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeItemType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeItemType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeItemType : IEquatable + internal readonly partial struct InternalRealtimeItemType : ValueType, IEquatable { private readonly string _value; private const string MessageValue = "message"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs index 3b9b5d99c..516808873 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeRequestSessionModality : IEquatable + internal readonly partial struct InternalRealtimeRequestSessionModality : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs index e05751103..6a2bba9d5 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeRequestSessionModel : IEquatable + internal readonly partial struct InternalRealtimeRequestSessionModel : ValueType, IEquatable { private readonly string _value; private const string Gpt4oRealtimePreviewValue = "gpt-4o-realtime-preview"; 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/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/InternalRealtimeResponseModality.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseModality.cs index 28ab69871..a52f68382 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseModality.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeResponseModality : IEquatable + internal readonly partial struct InternalRealtimeResponseModality : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs index 7333e9ef6..adb76d6a0 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeResponseOutputAudioFormat : IEquatable + internal readonly partial struct InternalRealtimeResponseOutputAudioFormat : ValueType, IEquatable { private readonly string _value; private const string Pcm16Value = "pcm16"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs index 24d9798e3..e53b4a961 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeResponseStatusDetailsType : IEquatable + internal readonly partial struct InternalRealtimeResponseStatusDetailsType : ValueType, IEquatable { private readonly string _value; private const string CompletedValue = "completed"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs index 05d957fa8..dd32887b9 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType : IEquatable + internal readonly partial struct InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType : ValueType, IEquatable { private readonly string _value; private const string NearFieldValue = "near_field"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs index 814ccf22f..c5c278487 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeSessionCreateRequestModel : IEquatable + internal readonly partial struct InternalRealtimeSessionCreateRequestModel : ValueType, IEquatable { private readonly string _value; private const string Gpt4oRealtimePreviewValue = "gpt-4o-realtime-preview"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs index 0065381db..404ea2fab 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeSessionCreateRequestTurnDetectionEagerness : IEquatable + internal readonly partial struct InternalRealtimeSessionCreateRequestTurnDetectionEagerness : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs index b4b3b071e..15cb1547f 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeSessionCreateRequestTurnDetectionType : IEquatable + internal readonly partial struct InternalRealtimeSessionCreateRequestTurnDetectionType : ValueType, IEquatable { private readonly string _value; private const string ServerVadValue = "server_vad"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs index 8a05fb885..ee82351f5 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat : ValueType, IEquatable { private readonly string _value; private const string Pcm16Value = "pcm16"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs index 4a9cdfca2..4e3acd80d 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType : ValueType, IEquatable { private readonly string _value; private const string NearFieldValue = "near_field"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs index 3411c1138..a1bdfffb6 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel : ValueType, IEquatable { private readonly string _value; private const string Gpt4oTranscribeValue = "gpt-4o-transcribe"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs index 672c3d982..86f1c425b 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestModality : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestModality : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs index 8c771b10c..7c31ac86a 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs index 5cd63aa9c..a19478b38 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType : ValueType, IEquatable { private readonly string _value; private const string ServerVadValue = "server_vad"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs index a006ca7a3..2782558d4 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel : ValueType, IEquatable { private readonly string _value; private const string Gpt4oTranscribeValue = "gpt-4o-transcribe"; diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs index 100b5c25d..23d6eaa10 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs @@ -8,7 +8,7 @@ namespace OpenAI.Realtime { - internal readonly partial struct InternalRealtimeTranscriptionSessionCreateResponseModality : IEquatable + internal readonly partial struct InternalRealtimeTranscriptionSessionCreateResponseModality : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Realtime/RealtimeAudioFormat.cs b/src/Generated/Models/Realtime/RealtimeAudioFormat.cs index 36192fcf1..7a9e403f8 100644 --- a/src/Generated/Models/Realtime/RealtimeAudioFormat.cs +++ b/src/Generated/Models/Realtime/RealtimeAudioFormat.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct RealtimeAudioFormat : IEquatable + public readonly partial struct RealtimeAudioFormat : ValueType, IEquatable { private readonly string _value; private const string Pcm16Value = "pcm16"; diff --git a/src/Generated/Models/Realtime/ResponseConversationSelection.cs b/src/Generated/Models/Realtime/ResponseConversationSelection.cs index ce31b62d7..3adb72570 100644 --- a/src/Generated/Models/Realtime/ResponseConversationSelection.cs +++ b/src/Generated/Models/Realtime/ResponseConversationSelection.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct ResponseConversationSelection : IEquatable + public readonly partial struct ResponseConversationSelection : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Realtime/SemanticEagernessLevel.cs b/src/Generated/Models/Realtime/SemanticEagernessLevel.cs index a551d2622..e03b52e2e 100644 --- a/src/Generated/Models/Realtime/SemanticEagernessLevel.cs +++ b/src/Generated/Models/Realtime/SemanticEagernessLevel.cs @@ -10,7 +10,7 @@ namespace OpenAI.Realtime { [Experimental("OPENAI002")] - public readonly partial struct SemanticEagernessLevel : IEquatable + public readonly partial struct SemanticEagernessLevel : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Responses/ComputerToolEnvironment.cs b/src/Generated/Models/Responses/ComputerToolEnvironment.cs index 274593179..2e0bf19e8 100644 --- a/src/Generated/Models/Responses/ComputerToolEnvironment.cs +++ b/src/Generated/Models/Responses/ComputerToolEnvironment.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAICUA001")] - public readonly partial struct ComputerToolEnvironment : IEquatable + public readonly partial struct ComputerToolEnvironment : ValueType, IEquatable { private readonly string _value; private const string WindowsValue = "windows"; diff --git a/src/Generated/Models/Responses/FileSearchToolRanker.cs b/src/Generated/Models/Responses/FileSearchToolRanker.cs index 419f2af69..ae1d54702 100644 --- a/src/Generated/Models/Responses/FileSearchToolRanker.cs +++ b/src/Generated/Models/Responses/FileSearchToolRanker.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct FileSearchToolRanker : IEquatable + public readonly partial struct FileSearchToolRanker : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Responses/GlobalMcpToolCallApprovalPolicy.cs b/src/Generated/Models/Responses/GlobalMcpToolCallApprovalPolicy.cs index e56a70e43..1cd233def 100644 --- a/src/Generated/Models/Responses/GlobalMcpToolCallApprovalPolicy.cs +++ b/src/Generated/Models/Responses/GlobalMcpToolCallApprovalPolicy.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct GlobalMcpToolCallApprovalPolicy : IEquatable + public readonly partial struct GlobalMcpToolCallApprovalPolicy : ValueType, IEquatable { private readonly string _value; private const string AlwaysRequireApprovalValue = "always"; diff --git a/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs b/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs index a80e50098..3be93793e 100644 --- a/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalCodeInterpreterToolCallItemResourceStatus : IEquatable + internal readonly partial struct InternalCodeInterpreterToolCallItemResourceStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/Responses/InternalComparisonFilterType.cs b/src/Generated/Models/Responses/InternalComparisonFilterType.cs index af4b2d413..c739e0fe6 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterType.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalComparisonFilterType : IEquatable + internal readonly partial struct InternalComparisonFilterType : ValueType, IEquatable { private readonly string _value; private const string EqValue = "eq"; diff --git a/src/Generated/Models/Responses/InternalCompoundFilterType.cs b/src/Generated/Models/Responses/InternalCompoundFilterType.cs index 8705ddbb8..d390158c7 100644 --- a/src/Generated/Models/Responses/InternalCompoundFilterType.cs +++ b/src/Generated/Models/Responses/InternalCompoundFilterType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalCompoundFilterType : IEquatable + internal readonly partial struct InternalCompoundFilterType : ValueType, IEquatable { private readonly string _value; private const string AndValue = "and"; diff --git a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs index e4ba02fba..b492ec1cb 100644 --- a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs +++ b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalComputerUsePreviewToolCallOutputOutputType : IEquatable + internal readonly partial struct InternalComputerUsePreviewToolCallOutputOutputType : ValueType, IEquatable { private readonly string _value; private const string ScreenshotValue = "computer_screenshot"; diff --git a/src/Generated/Models/Responses/InternalImageGenToolBackground.cs b/src/Generated/Models/Responses/InternalImageGenToolBackground.cs index 51f5b974b..f392c624f 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolBackground.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolBackground.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalImageGenToolBackground : IEquatable + internal readonly partial struct InternalImageGenToolBackground : ValueType, IEquatable { private readonly string _value; private const string TransparentValue = "transparent"; diff --git a/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs b/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs index 3a616e6bf..621efd31c 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalImageGenToolCallItemResourceStatus : IEquatable + internal readonly partial struct InternalImageGenToolCallItemResourceStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/Responses/InternalImageGenToolModeration.cs b/src/Generated/Models/Responses/InternalImageGenToolModeration.cs index fdbd0d196..ef69e638e 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolModeration.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolModeration.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalImageGenToolModeration : IEquatable + internal readonly partial struct InternalImageGenToolModeration : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs b/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs index 2c90defd2..a521ffa43 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalImageGenToolOutputFormat : IEquatable + internal readonly partial struct InternalImageGenToolOutputFormat : ValueType, IEquatable { private readonly string _value; private const string PngValue = "png"; diff --git a/src/Generated/Models/Responses/InternalImageGenToolQuality.cs b/src/Generated/Models/Responses/InternalImageGenToolQuality.cs index 91dbe534b..6422794eb 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolQuality.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolQuality.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalImageGenToolQuality : IEquatable + internal readonly partial struct InternalImageGenToolQuality : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Responses/InternalImageGenToolSize.cs b/src/Generated/Models/Responses/InternalImageGenToolSize.cs index 57f31013f..b9783ef57 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolSize.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolSize.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalImageGenToolSize : IEquatable + internal readonly partial struct InternalImageGenToolSize : ValueType, IEquatable { private readonly string _value; private const string _1024x1024Value = "1024x1024"; diff --git a/src/Generated/Models/Responses/InternalIncludable.cs b/src/Generated/Models/Responses/InternalIncludable.cs index 180691347..a272a3a5f 100644 --- a/src/Generated/Models/Responses/InternalIncludable.cs +++ b/src/Generated/Models/Responses/InternalIncludable.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalIncludable : IEquatable + internal readonly partial struct InternalIncludable : ValueType, IEquatable { private readonly string _value; private const string FileSearchCallResultsValue = "file_search_call.results"; diff --git a/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs b/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs index 6233c63b6..ea10e2cdf 100644 --- a/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs +++ b/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalItemContentInputAudioFormat : IEquatable + internal readonly partial struct InternalItemContentInputAudioFormat : ValueType, IEquatable { private readonly string _value; private const string Mp3Value = "mp3"; diff --git a/src/Generated/Models/Responses/InternalItemContentType.cs b/src/Generated/Models/Responses/InternalItemContentType.cs index bd4f6f938..34d7df272 100644 --- a/src/Generated/Models/Responses/InternalItemContentType.cs +++ b/src/Generated/Models/Responses/InternalItemContentType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalItemContentType : IEquatable + internal readonly partial struct InternalItemContentType : ValueType, IEquatable { private readonly string _value; private const string InputTextValue = "input_text"; diff --git a/src/Generated/Models/Responses/InternalItemType.cs b/src/Generated/Models/Responses/InternalItemType.cs index df4fe61da..95d690c33 100644 --- a/src/Generated/Models/Responses/InternalItemType.cs +++ b/src/Generated/Models/Responses/InternalItemType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalItemType : IEquatable + internal readonly partial struct InternalItemType : ValueType, IEquatable { private readonly string _value; private const string MessageValue = "message"; diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs index 01f6c1ddf..79e72b3ac 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalLocalShellToolCallItemResourceStatus : IEquatable + internal readonly partial struct InternalLocalShellToolCallItemResourceStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs index da9a54d7b..b7c0c5c20 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalLocalShellToolCallOutputItemResourceStatus : IEquatable + internal readonly partial struct InternalLocalShellToolCallOutputItemResourceStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/Responses/InternalModelIdsResponses.cs b/src/Generated/Models/Responses/InternalModelIdsResponses.cs index 8098a6cee..74228ffe9 100644 --- a/src/Generated/Models/Responses/InternalModelIdsResponses.cs +++ b/src/Generated/Models/Responses/InternalModelIdsResponses.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalModelIdsResponses : IEquatable + internal readonly partial struct InternalModelIdsResponses : ValueType, IEquatable { private readonly string _value; private const string Gpt41Value = "gpt-4.1"; diff --git a/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs b/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs index 3188b2b21..a99b0a7dd 100644 --- a/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs +++ b/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalReasoningGenerateSummary : IEquatable + internal readonly partial struct InternalReasoningGenerateSummary : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs b/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs index 0eb4bce31..43e5b7cec 100644 --- a/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs +++ b/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalReasoningItemSummaryPartType : IEquatable + internal readonly partial struct InternalReasoningItemSummaryPartType : ValueType, IEquatable { private readonly string _value; private const string SummaryTextValue = "summary_text"; diff --git a/src/Generated/Models/Responses/InternalResponseStreamEventType.cs b/src/Generated/Models/Responses/InternalResponseStreamEventType.cs index b6760a347..a7ad14af8 100644 --- a/src/Generated/Models/Responses/InternalResponseStreamEventType.cs +++ b/src/Generated/Models/Responses/InternalResponseStreamEventType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalResponseStreamEventType : IEquatable + internal readonly partial struct InternalResponseStreamEventType : ValueType, IEquatable { private readonly string _value; private const string ResponseAudioDeltaValue = "response.audio.delta"; diff --git a/src/Generated/Models/Responses/InternalResponsesMessageRole.cs b/src/Generated/Models/Responses/InternalResponsesMessageRole.cs index 971b3abf9..06a73064e 100644 --- a/src/Generated/Models/Responses/InternalResponsesMessageRole.cs +++ b/src/Generated/Models/Responses/InternalResponsesMessageRole.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalResponsesMessageRole : IEquatable + internal readonly partial struct InternalResponsesMessageRole : ValueType, IEquatable { private readonly string _value; private const string SystemValue = "system"; diff --git a/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs b/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs index 0fb3ce5d0..206fe9c26 100644 --- a/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs +++ b/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalResponsesTextFormatType : IEquatable + internal readonly partial struct InternalResponsesTextFormatType : ValueType, IEquatable { private readonly string _value; private const string TextValue = "text"; diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs index 29335d120..630241d3c 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalToolChoiceObjectType : IEquatable + internal readonly partial struct InternalToolChoiceObjectType : ValueType, IEquatable { private readonly string _value; private const string FileSearchValue = "file_search"; diff --git a/src/Generated/Models/Responses/InternalToolChoiceOptions.cs b/src/Generated/Models/Responses/InternalToolChoiceOptions.cs index 6ec69fb14..19dd6ecdb 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceOptions.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceOptions.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalToolChoiceOptions : IEquatable + internal readonly partial struct InternalToolChoiceOptions : ValueType, IEquatable { private readonly string _value; private const string NoneValue = "none"; diff --git a/src/Generated/Models/Responses/InternalToolType.cs b/src/Generated/Models/Responses/InternalToolType.cs index cfd98ad1f..f79711cf3 100644 --- a/src/Generated/Models/Responses/InternalToolType.cs +++ b/src/Generated/Models/Responses/InternalToolType.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalToolType : IEquatable + internal readonly partial struct InternalToolType : ValueType, IEquatable { private readonly string _value; private const string FileSearchValue = "file_search"; diff --git a/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs b/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs index 01ab23e5c..ae703d10a 100644 --- a/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs +++ b/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs @@ -8,7 +8,7 @@ namespace OpenAI.Responses { - internal readonly partial struct InternalWebSearchUserLocationKind : IEquatable + internal readonly partial struct InternalWebSearchUserLocationKind : ValueType, IEquatable { private readonly string _value; private const string ApproximateValue = "approximate"; diff --git a/src/Generated/Models/Responses/ResponseErrorCode.cs b/src/Generated/Models/Responses/ResponseErrorCode.cs index c03de0a41..739968106 100644 --- a/src/Generated/Models/Responses/ResponseErrorCode.cs +++ b/src/Generated/Models/Responses/ResponseErrorCode.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseErrorCode : IEquatable + public readonly partial struct ResponseErrorCode : ValueType, IEquatable { private readonly string _value; private const string ServerErrorValue = "server_error"; diff --git a/src/Generated/Models/Responses/ResponseImageDetailLevel.cs b/src/Generated/Models/Responses/ResponseImageDetailLevel.cs index 0ea5cb39c..852cdb876 100644 --- a/src/Generated/Models/Responses/ResponseImageDetailLevel.cs +++ b/src/Generated/Models/Responses/ResponseImageDetailLevel.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseImageDetailLevel : IEquatable + public readonly partial struct ResponseImageDetailLevel : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs b/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs index 662296dc6..8def0021d 100644 --- a/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs +++ b/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseIncompleteStatusReason : IEquatable + public readonly partial struct ResponseIncompleteStatusReason : ValueType, IEquatable { private readonly string _value; private const string MaxOutputTokensValue = "max_output_tokens"; diff --git a/src/Generated/Models/Responses/ResponseItemCollectionOrder.cs b/src/Generated/Models/Responses/ResponseItemCollectionOrder.cs index 61ed32b22..d1f029c13 100644 --- a/src/Generated/Models/Responses/ResponseItemCollectionOrder.cs +++ b/src/Generated/Models/Responses/ResponseItemCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseItemCollectionOrder : IEquatable + public readonly partial struct ResponseItemCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs b/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs index 4fedd2456..9b0c096cc 100644 --- a/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs +++ b/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseReasoningEffortLevel : IEquatable + public readonly partial struct ResponseReasoningEffortLevel : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs b/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs index c7093172d..69c5f6d8f 100644 --- a/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs +++ b/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseReasoningSummaryVerbosity : IEquatable + public readonly partial struct ResponseReasoningSummaryVerbosity : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Responses/ResponseServiceTier.cs b/src/Generated/Models/Responses/ResponseServiceTier.cs index 45e24d62a..eac64770f 100644 --- a/src/Generated/Models/Responses/ResponseServiceTier.cs +++ b/src/Generated/Models/Responses/ResponseServiceTier.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseServiceTier : IEquatable + public readonly partial struct ResponseServiceTier : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/Responses/ResponseTruncationMode.cs b/src/Generated/Models/Responses/ResponseTruncationMode.cs index bb4db2703..f3c1f6592 100644 --- a/src/Generated/Models/Responses/ResponseTruncationMode.cs +++ b/src/Generated/Models/Responses/ResponseTruncationMode.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct ResponseTruncationMode : IEquatable + public readonly partial struct ResponseTruncationMode : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; 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/WebSearchToolContextSize.cs b/src/Generated/Models/Responses/WebSearchToolContextSize.cs index 440579a1a..34f7f315e 100644 --- a/src/Generated/Models/Responses/WebSearchToolContextSize.cs +++ b/src/Generated/Models/Responses/WebSearchToolContextSize.cs @@ -10,7 +10,7 @@ namespace OpenAI.Responses { [Experimental("OPENAI001")] - public readonly partial struct WebSearchToolContextSize : IEquatable + public readonly partial struct WebSearchToolContextSize : ValueType, IEquatable { private readonly string _value; private const string LowValue = "low"; diff --git a/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs b/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs index bd388a4bf..a2543115e 100644 --- a/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs +++ b/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs @@ -8,7 +8,7 @@ namespace OpenAI.VectorStores { - internal readonly partial struct InternalChunkingStrategyRequestParamType : IEquatable + internal readonly partial struct InternalChunkingStrategyRequestParamType : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs b/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs index e34367a8d..a95f5e9e7 100644 --- a/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs +++ b/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs @@ -8,7 +8,7 @@ namespace OpenAI.VectorStores { - internal readonly partial struct InternalChunkingStrategyResponseParamType : IEquatable + internal readonly partial struct InternalChunkingStrategyResponseParamType : ValueType, IEquatable { private readonly string _value; private const string StaticValue = "static"; diff --git a/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs b/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs index cf36e94ed..e19d7ad41 100644 --- a/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs +++ b/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs @@ -8,7 +8,7 @@ namespace OpenAI.VectorStores { - internal readonly partial struct InternalDotNetCombinedChunkingStrategyParamType : IEquatable + internal readonly partial struct InternalDotNetCombinedChunkingStrategyParamType : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; diff --git a/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs b/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs index e47dfddc2..0888f4b8d 100644 --- a/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs +++ b/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs @@ -8,7 +8,7 @@ namespace OpenAI.VectorStores { - internal readonly partial struct InternalVectorStoreSearchRequestRankingOptionsRanker : IEquatable + internal readonly partial struct InternalVectorStoreSearchRequestRankingOptionsRanker : ValueType, IEquatable { private readonly string _value; private const string AutoValue = "auto"; 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/VectorStoreCollectionOrder.cs b/src/Generated/Models/VectorStores/VectorStoreCollectionOrder.cs index f551a974e..b30da8d07 100644 --- a/src/Generated/Models/VectorStores/VectorStoreCollectionOrder.cs +++ b/src/Generated/Models/VectorStores/VectorStoreCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { [Experimental("OPENAI001")] - public readonly partial struct VectorStoreCollectionOrder : IEquatable + public readonly partial struct VectorStoreCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscValue = "asc"; diff --git a/src/Generated/Models/VectorStores/VectorStoreFileBatchStatus.cs b/src/Generated/Models/VectorStores/VectorStoreFileBatchStatus.cs index d74cbaad3..48bf3e0af 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileBatchStatus.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileBatchStatus.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileBatchStatus : IEquatable + public readonly partial struct VectorStoreFileBatchStatus : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress"; diff --git a/src/Generated/Models/VectorStores/VectorStoreFileCollectionOrder.cs b/src/Generated/Models/VectorStores/VectorStoreFileCollectionOrder.cs index d58ee7201..08b1064e2 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileCollectionOrder.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileCollectionOrder.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileCollectionOrder : IEquatable + public readonly partial struct VectorStoreFileCollectionOrder : ValueType, IEquatable { private readonly string _value; private const string AscendingValue = "asc"; diff --git a/src/Generated/Models/VectorStores/VectorStoreFileErrorCode.cs b/src/Generated/Models/VectorStores/VectorStoreFileErrorCode.cs index f3b1789fb..09bfb0e4f 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileErrorCode.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileErrorCode.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileErrorCode : IEquatable + public readonly partial struct VectorStoreFileErrorCode : ValueType, IEquatable { private readonly string _value; private const string ServerErrorValue = "server_error"; diff --git a/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs b/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs index 9c3fd2ce3..1d624362a 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { [Experimental("OPENAI001")] - public readonly partial struct VectorStoreFileStatusFilter : IEquatable + public readonly partial struct VectorStoreFileStatusFilter : ValueType, IEquatable { private readonly string _value; private const string InProgressValue = "in_progress";