• Resolved staalegismervik

    (@staalegismervik)


    I’ve tried to figure this out. I saw someone else posting a topic and it was marked as resolved even though it wasn’t. I also have a paid ChatGPT account. Can’t see any way to deposit anything anywhere since a paid account is just linked to a credit card and the draw $20.00 each month. And the error seems to reflect that there is a missing URL somewhere, but I have no idea where to put it. I’ve tried several of the models available in the plugin, but they all give the same result (Claude and ChatGPT 3.5 as well).

    To me it seems the plugin doesn’t work, but I guess many have made it work. I know the API key is correct, because if I change it it gives an error about wrong API key.

    Has anyone figured this out? I installed the plugin a couple of days ago and updated it today to the latest version, but the result is the same.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Just to make sure, you are using 2.2.56?

    Thread Starter staalegismervik

    (@staalegismervik)

    Yes, that is correct. By the way. I get the same error on the “test”-AI under Chatbots as I do if I place it on a page. I guess they are the same anyway, but in case they are not.

    Plugin Author Jordy Meow

    (@tigroumeow)

    They are the same, yeah.

    What is the exact message? Can you take a screenshot? By any chance, can you also check your PHP Error Logs?

    And in the case you use embeddings, can you make sure you have a server set up for Pinecone, if you use it?

    Thread Starter staalegismervik

    (@staalegismervik)

    Here’s the screenshot. I don’t know what Pinecone is and not sure what you mean by embeddings. Not quite sure how to check the PHP error logs, but I’ll see if I can find out.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Mmm, I am not sure why it happens.

    I have just tried to create a brand new WordPress install (with nothing inside it). Latest version of AI Engine. I didn’t do anything else than going in the Settings, simply added my OpenAI key, went to the first chatbot which is there by default, say “Hello” and got a reply right away.

    If you want to help me further to debug this, do you think you can try to edit one of the files of the plugin?

    In /classes/engines/openai.php, search for this line:

    throw new Exception( 'The model\'s API URL was not found.' );

    Then replace it by:

    throw new Exception( 'The model\'s API URL was not found: ' . $url );

    It’s currently at the line 355. That might help in understanding the issue a bit more ??

    Thread Starter staalegismervik

    (@staalegismervik)

    Got a new error message. I’ve set the model currently to GPT-4

    Plugin Author Jordy Meow

    (@tigroumeow)

    Mmm, actually this error is really sent by OpenAI; so AI Engine seems to work. But in the case of your account, something is off. I know you said you added a credit card and you paid something, but can you read this again?

    After you have made a successful payment of $5 or more (usage tier 1), you’ll be able to access the GPT-4 and GPT-4 Turbo via the OpenAI API. Learn more about adding credit to your OpenAI account.

    • This reply was modified 1 year ago by Jordy Meow.
    Thread Starter staalegismervik

    (@staalegismervik)

    It does seem I do have to make a payment according to that link. Plus users should be able to use it, but I don’t know if it can distinguish between GPT-4 and my Plus account. I might just have to see if I can add some credit to my OpenAI account.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Plus is something else (it’s the ChatGPT service); you need to have a credit card, and some credits on your API account: https://platform.openai.com/account/billing/overview

    Thread Starter staalegismervik

    (@staalegismervik)

    Yes, I think I figured it out now. Thanks for answering so quickly. Perhaps you can say something about this in the instructions. It wasn’t very clear (at least for me) what to do. I’ve paid $10 now and it seems I just have to wait until they register me as a “tier 1” user. Currently it still says current tier “free”, but that might be due to that I’ve just paid and it takes some time to process.

    Thanks again. I hope this will solve it. I haven’t looked into all that this could do yet, but I was hoping it could look through my website and answer questions based on the content there. But I’m not sure I want to pay for all visitors who searches either. Just an experiment for now ??

    Thread Starter staalegismervik

    (@staalegismervik)

    It works! Fantastic! I checked again and I’m now in “tier 1” and it works ?? Thanks again.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Yeah, unfortunately they change their rules all the time; and the error messages weren’t clear at all on their end. I am also not only supporting OpenAI, but also Google, Anthropic, OpenRouter and HuggingFace, and they all have their own things going on. It’s a bit difficult to document everything, but I have a Discord where people discuss this constantly, they usually figure everything out. You are welcome to join ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘The model’s api url was not found’ is closed to new replies.