KellanM / OpenAI-Api-Unreal

Integration for the OpenAI Api in Unreal Engine
MIT License
649 stars 143 forks source link

Missing Function and node #37

Closed krabakov96 closed 1 year ago

krabakov96 commented 1 year ago

Hi there ! I was following the tutorial by MetaHumanSDK for integrating Chat GPT to a metahuman. For some reason I'm missing the "Open AICall GPT3" function and nodes. I tried reinstalling the plugin, created new project (5.1.1).. still missing them. Everything shows up as it should except these functions and nodes. Can you assist with that please?

Also what I'm trying to do is not text to speech as the tutorial shows, but whisper/audio to speech. Basically talking to the metahuman and he talking back to me. Possible to get any help on that too ? I will strongly appreciate it. I'm just playing around with these new technologies. Thanks.

krabakov96 commented 1 year ago

image

amanchauhan2432 commented 1 year ago

You can try 2nd node which is "Open AICall Completions". It will work.

krabakov96 commented 1 year ago

image

Yes, but then I need "Make GPT3Settings" Which is also missing... I have the ones I'm showing on the image, but they are not the same as in the tutorial

KellanM commented 1 year ago

@krabakov96 MetahumanSDK was using an old version of the plugin when they created their tutorial. The OpenAICallGPT3 nodes have since been renamed to OpenAICallCompletions. The node you’re looking for is MakeCompletionsSettings.

krabakov96 commented 1 year ago

I see, thanks. But I am not sure what to do after that as there is no tutorial with the new version and the new nodes are kinda different. Is there going to be any updated tutorial soon or is it possible to get the older version of the plugin? I am just playing around so the version is not so important as log as it works.

KellanM commented 1 year ago

Yep! I’m in the process of creating a new tutorial. In the meantime you can recreate the completions example shown at the bottom of the project’s README Just swap out any instance of “GPT-3” with “Completions” and it will work

https://github.com/KellanM/OpenAI-Api-Unreal#usage

krabakov96 commented 1 year ago

image Hi, again! I think I properly followed and managed to replace the nodes, but now it is not working at all. When I type something, the AI is not responding at all for some reason. Am I missing something?

charlo06 commented 1 year ago

Try printing the error message when the branch fails. Maybe you didn't set the api key ?

krabakov96 commented 1 year ago

image So here is what I figured out, that if it's just like that, the AI WORKS, doesn't reply to all questions properly, but still works. And then when I add the new code/nodes that I showed in the image above, it stops working completely. So something in the nodes above is wrong.

krabakov96 commented 1 year ago

So I did print it when the branch fails and it says "API Error". But I have an API key already. I also generated a new one multiple times and It keeps showing that message.

KellanM commented 1 year ago

Can you please show me what appears in your output log when you get the API Error?

krabakov96 commented 1 year ago

LogTemp: Warning: { "error": { "message": "Incorrect API key provided: f16f8226****9127. You can find your API key at https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" } }

krabakov96 commented 1 year ago

LogTemp: Warning: { "error": { "message": "You exceeded your current quota, please check your plan and billing details.", "type": "insufficient_quota", "param": null, "code": null } }

And this is when I try to generate a new key on the open AI website

KellanM commented 1 year ago

@krabakov96 this is expected behavior. You can increase your current quota here: https://platform.openai.com/account/billing/limits