KellanM / OpenAI-Api-Unreal

Integration for the OpenAI Api in Unreal Engine
MIT License
672 stars 150 forks source link

Api error or apikey is not set #15

Closed StephaneMichel closed 1 year ago

StephaneMichel commented 1 year ago

I get the same error whenever I play in mode PIE, I had already create a new key but not worked

imaekgames commented 1 year ago

I'm getting "Api error" as well, I've tried creating several API keys and trying them, no luck

KellanM commented 1 year ago

Can you please review your output log and post the debug message that includes the exact API error you are encountering?

Chris9178 commented 1 year ago

Hello, thanks a lot for your work, however I'm getting API errors also. I'm using UE 5.1.1 and using last version of your plugin :

image image image

Thanks a lot for help!

Dekelelz commented 1 year ago

To fix it you can change Davinci to TextDavinci 003 for example.

cramirez0318 commented 1 year ago

OpenAI's API requires a valid payment method to be added to the account in order to use the service, UE Log should say API Error if this is true add CC.

paulvanvulpen commented 1 year ago

As Cramirez0318 says, your output log will tell you the following:

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

After you connected a credit card to your billing information at the official open AI website the error disappears and the example works.