I created client library for C#.
Nuget package.
HigLabo.OpenAI
GitHub
You can find HigLabo.OpenAI project in Net7 or Net8 folder.
You can see how to use.
Feedback is always appriciated!!!
I created client library for C#.
Nuget package.
HigLabo.OpenAI
GitHub
You can find HigLabo.OpenAI project in Net7 or Net8 folder.
You can see how to use.
Feedback is always appriciated!!!
Hey this may really help me as i’m using the assistants api in unity but cant use python directly so resorted to using a flask web server but your library may allow me to use c# with assistants api in unity, i will try it tomorrow and give you feedback
Edit: sadly Unity does not support .Net 7 or .Net 8
Hi.
HigLabo.OpenAI may work on .Net6.
You can backward from source code on GitHub.
I think it may make you slightly work but probably it is not hard.
I’m working to create HigLabo.OpenAI for .NET6.
Please wait for few days.
That might help some but unfortunately doesn’t help Unity users. It supports the pretty ancient .Net 2.1 !
I just uploaded HigLabo.OpenAI 6.0.0.0 to Nuget.
I don’t test this version but I should work.
You must add reference to
HigLabo.Core 6.4.0.2
HigLabo.NewtonsoftJson 6.0.0.0
to use HigLabo.OpenAI.
Now, I realized that .NET2.1 needed for Unity.
Okey, I’ll try to create for .NET2.1 version.
Hi Cristian74!
I released HigLabo.OpenAI 2.1.0.0 to Nuget.
Amazing, thankyou! It’s late here now, will try it tomorrow then give you some feedback
Sir, I am sorry, VS 2022 is telling me this when I try to install your package -
"Severity Code Description Project File Line Suppression State
Error Could not install package ‘HigLabo.OpenAI 2.1.0’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.7.1’, but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
"
In the Unity Editor it tells me I am using .NET 2.1 so not sure what is going on but it looks like .NET 4.71 is the version needed for Unity 2022.3.0f1. Again, my sincere apologies for wasting your time.
Hi.
Unity may have some setting to specify netstandard2.1 or .net4.7.
Please confirm your setting.
regards.
Hi,
In Unity I have this setting -
.
.
.
In Visual Studio 2022 I have this setting -
.NET standard 2.0 may exists in Api Compatibility Level.
If you set .Net standard2.0, you can reference my library. maybe…
The only option in Unity is .NET Framework and .NET Standard 2.1, I tried both and got this error in Visual Studio :
"Severity Code Description Project File Line Suppression State
Error Could not install package ‘HigLabo.OpenAI 2.1.0’. You are trying to install this package into a project that targets ‘.NETFramework,Version=v4.7.1’, but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. "
Can you crete a class library project that work on your environment?
Please send me that project file to me.
I try investigate if i could get a time to work for it.
regards.
Sorry, what do you mean exactly by create a class library? I don’t have a lot of coding experience. I can copy and paste some classes here from my Unity project if that is what you mean?
I think a lot of people would use this. Unity does support .net 4 and I use regular old c sharp libraries with no problems.
For a full on plugin here’s the general situation: