Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PrisonerZERO opened this issue Apr 28, 2024 · 2 comments
Open

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

PrisonerZERO opened this issue Apr 28, 2024 · 2 comments

Comments

@PrisonerZERO
Copy link

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
@zeecorleone
Copy link

@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 added a commit to zeecorleone/OpenAI-API-dotnet that referenced this issue May 6, 2024
1. Improved ImageGenerationEndpointTests by introducing ImageSize construction helper method in orther to retain access level of ImageSize constructor.
2. Corrected EndpointBase constructor access level (changed to 'protected') in order to support HttpClientResolutionTests
@zeecorleone
Copy link

Submitted this PR as a fix to this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants