hexthedev / OpenAi-Api-Unity

Integration for the OpenAi Api in Unity
MIT License
327 stars 71 forks source link

Completion object models not implemented #39

Open hexthedev opened 3 years ago

hexthedev commented 3 years ago

The completion parameter can come through as a string id, or as a more complex object with a lot of meta data about the completion. Currently, only the string id version is supported. The more complex object needs to be written and added as an OR type in completion JSON resolution.

whtcorpsinc commented 2 years ago

I was thinking about Strings and Syntactically Parseable Turing Complete Languages using DaVinci. What are its limitations when it comes to the packing of utf8 padding across seemingly uninterruptible failover? Is it possible to break the system by hacking the Unicode? Can it distinguish between different kind of strings that is? I mean, a string is a string is a string but will it bend?

codes4free commented 2 years ago

NullReferenceException: Object reference not set to an instance of an object OpenAi.Unity.V1.OpenAiCompleterV1.Complete (System.String prompt, System.Action1[T] onResponse, System.Action1[T] onError) (at Library/PackageCache/com.openai.api.unity@534438bef3/Runtime/Scripts/Unity/V1/Completer/OpenAiCompleterV1.cs:61) OpenAi.Examples.ExampleOpenAiApiRuntime.DoApiCompletion () (at Library/PackageCache/com.openai.api.unity@534438bef3/Runtime/Scripts/Examples/ExampleOpenAiApiRuntime.cs:25) UnityEngine.Events.InvokableCall.Invoke () (at <3be1a7ff939c43f181c0a10b5a0189ac>:0) UnityEngine.Events.UnityEvent.Invoke () (at <3be1a7ff939c43f181c0a10b5a0189ac>:0) UnityEngine.UI.Button.Press () (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:68) UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/Button.cs:110) UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:50) UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/ExecuteEvents.cs:262) UnityEngine.EventSystems.EventSystem:Update() (at Library/PackageCache/com.unity.ugui@1.0.0/Runtime/EventSystem/EventSystem.cs:385)