The model’s api url was not found

[ad_1]

Hi,

Just to make sure, you are using 2.2.56?

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.

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?

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.

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 🙂

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

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 36 minutes ago by Jordy Meow.

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.

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

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 🙂

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

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 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer