Skip to content

Commit c0ab789

Browse files
committed
Merge branch 'main' of https://github.com/openai/openai-dotnet into shreja/Issue_637_VectorLRO
2 parents 05c89b7 + 936e698 commit c0ab789

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

codegen/generator/src/OpenAI.Library.Plugin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20250829.4" />
11+
<PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20250903.1" />
1212
</ItemGroup>
1313

1414
<!-- Copy output to package dist path for local execution and -->

codegen/generator/src/Visitors/ExperimentalAttributeVisitor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ public class ExperimentalAttributeVisitor : ScmLibraryVisitor
664664

665665
if (!_stableMethods.Contains(lookupName))
666666
{
667-
methodProvider.Update(
668-
attributes: [.. methodProvider.Attributes,
667+
methodProvider.Signature.Update(
668+
attributes: [.. methodProvider.Signature.Attributes,
669669
methodProvider.EnclosingType.Type.Namespace.StartsWith(_realtimeNamespace) || (methodProvider.Signature.ReturnType?.Namespace.StartsWith(_realtimeNamespace) ?? false) ?
670670
_experimental002Attribute :
671671
_experimental001Attribute]);

codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@open-ai/plugin": "file:",
3232
"@azure-tools/typespec-client-generator-core": "0.59.0",
3333
"@azure-tools/typespec-azure-core": "0.59.0",
34-
"@typespec/http-client-csharp": "1.0.0-alpha.20250829.4",
34+
"@typespec/http-client-csharp": "1.0.0-alpha.20250903.1",
3535
"@typespec/http": "1.3.0",
3636
"@typespec/openapi": "1.3.0"
3737
},

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/Invoke-CodeGen.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,17 @@ Push-Location $repoRootPath
269269

270270
try {
271271
Invoke-ScriptWithLogging { npm ci }
272+
if ($LASTEXITCODE -ne 0) {
273+
exit $LASTEXITCODE
274+
}
275+
272276
Invoke-ScriptWithLogging { npm run build -w $codegenFolderPath }
277+
if ($LASTEXITCODE -ne 0) {
278+
exit $LASTEXITCODE
279+
}
273280

274281
Set-Location $specificationFolderPath
275-
Invoke-ScriptWithLogging { npm exec --no -- tsp compile . }
282+
Invoke-ScriptWithLogging { npx tsp compile . --stats --trace @typespec/http-client-csharp }
276283
}
277284
finally {
278285
Pop-Location

scripts/Submit-GeneratorUpdatePr.ps1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,16 @@ try {
215215
}
216216
Pop-Location
217217

218-
# Export the API
219-
Write-Log "Updating API"
218+
# Build the updated library
219+
Write-Log "Building the library"
220220
Push-Location "."
221221
try {
222-
pwsh scripts/Export-Api.ps1
222+
& dotnet build src/OpenAI.csproj
223+
if ($LASTEXITCODE -ne 0) {
224+
throw "Build failed with exit code $LASTEXITCODE"
225+
}
223226
} catch {
224-
Write-Warning-Log "Exporting API failed: $_"
227+
Write-Warning-Log "Building the library failed: $_"
225228
}
226229
Pop-Location
227230

0 commit comments

Comments
 (0)