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]
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.
This reply was modified 2 years, 2 months ago by 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.
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 🙂
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?
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.
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 🙂
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.