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

IHttpClientFactory Missing a "using" from source code #176

Open
Rahios opened this issue Nov 2, 2023 · 1 comment
Open

IHttpClientFactory Missing a "using" from source code #176

Rahios opened this issue Nov 2, 2023 · 1 comment

Comments

@Rahios
Copy link

Rahios commented Nov 2, 2023

Hello, this is my first time doing an issue report, so sorry if any info is missing.

I'm following the tutorial from: https://www.youtube.com/watch?v=gI9QSHpiMW0
I'm working with Unity and I'm integrating OpenIA to my project.
The procedure is as follows:

  1. Download source file
  2. Unzip it
  3. Put it in the project folder

Then I get the following problem:
Compiler Error CS0246 :
The type or namespace name 'type/namespace' could not be found (are you missing a using directive or an assembly reference?)

image

I don't know how to fix it, but I will simply just not use it I think, and comment it out.
But maybe just using a library could fix it ?

Those are the suggestions for the fix.
image

@NITechLabs
Copy link

I had the same issue. I solved it in the following way:

  1. On Github go to https://github.com/GlitchEnzo/NuGetForUnity
  2. Go to the Releases and download the Unity Package.
  3. Install it as a package in Unity. This adds a nice NuGet Manager for Unity!
  4. In the menu go to: NuGet-Manage PAckages
  5. In the search box type: Microsoft.Extensions.DependencyInjection and install it
  6. In the search box type: Microsoft.Extensions.Http and install it
  7. In the search box type: Newtonsoft.Json and install it
    Now the OpenAI will not generate any errors anymore when you drop it into your project!

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