OpenAI-API-dotnet icon indicating copy to clipboard operation
OpenAI-API-dotnet copied to clipboard

Current Version not building (4/28/2024)

Open PrisonerZERO opened this issue 9 months ago • 2 comments

Just thought I would let you know the current version is not building & I am getting the follwing errors:

  1. One instance of 'EndpointBase' does not contain a constructor that takes 1 arguments (in HttpClientResolutionTests.cs)
  2. Three instances of 'ImageSize' does not contain a constructor that takes 1 arguments (in HttpClientResolutionTests.cs)
  • All packages are installed
  • I am running Visual Studio 2022
  • Visual Studio 2022 automatically installed .NET Core 3.1
  • Restarting Visual Studio 2022 did not solve the issue

PrisonerZERO avatar Apr 28 '24 16:04 PrisonerZERO

@PrisonerZERO , the error message is misleading. The actual problem is the access level of the constructors of EndpointBase and ImageSize is internal, hence the references in OpenAI_Tests assembly will show this error.

zeecorleone avatar May 06 '24 16:05 zeecorleone

Submitted this PR as a fix to this problem

zeecorleone avatar May 06 '24 17:05 zeecorleone