OkGoDoIt / OpenAI-API-dotnet

An unofficial C#/.NET SDK for accessing the OpenAI GPT-3 API
https://www.nuget.org/packages/OpenAI/
Other
1.85k stars 428 forks source link

Current Version not building (4/28/2024) #204

Open PrisonerZERO opened 5 months ago

PrisonerZERO commented 5 months ago

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)
zeecorleone commented 4 months ago

@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 commented 4 months ago

Submitted this PR as a fix to this problem