Describe the bug
The new TryResolve{Property}Array methods currently generate ModelReaderWriter.Write(collection, options);, which causes AOT trimming error in OpenAI as it's expecting ModelReaderWriter.Write(collection, options, OpenAIContext.Default);
This ModelReaderWriter.Write call is being generated correctly with the needed OpenAIContext.Default argument everywhere else.
Reproduction
Upgrade OpenAI to newest generator version, run Invoke_Codegen, and then run dotnet build.
Checklist
Describe the bug
The new TryResolve{Property}Array methods currently generate
ModelReaderWriter.Write(collection, options);, which causes AOT trimming error in OpenAI as it's expectingModelReaderWriter.Write(collection, options, OpenAIContext.Default);This
ModelReaderWriter.Writecall is being generated correctly with the neededOpenAIContext.Defaultargument everywhere else.Reproduction
Upgrade OpenAI to newest generator version, run Invoke_Codegen, and then run dotnet build.
Checklist