Im trying to create a chatbot that accepts image and text for a competition which will be in a week's time. at first everything was working well, the chatbot is able to recieve messages and will give a reply. however there seems to be a bug somewhere and now it is not working at all. the error will always pop up and say: Error 4200: Error from chatbot code: -1 ive already attached my code below.anyone know the answer to solve this, will be greatly appreciated!
The MIT key has a monthly limit.
Maybe the well has run dry?
I created this project a few days ago, so i highly doubt so. but if thats the case, how do I resolve it ?
Is there an option for you to specify your own key for that component?
The basic ChatBot control is working using my code and default settings. I imagine the issue is with your code and project setting an / or your Internet connection.
The Blocks you posted but are not helpful . The do not show the control settings you used and your Image png or jpg resources. You might post the aia.
Did you change the code that was working in any way? Add a button, a feature or something else. Did you make an aia of the app that worked? If you load that aia does your app work again/
See this discussion Error 4200: Error from the ChatBot code: 404 and 429 - #3 by SteveJG . That might be your issue. Where are you located Annabelle? Are you using a VPN?
I didn't make a copy of aia with the code that worked. only made a saved checkpoint. i've loaded the checkpoint as well, but it wasn't working too..
I accidentally deleted some of the code that was working by accident, but i replaced them with the exact same blocks.
Im living in Southeast Asia, and im not using a VPN and my country didn't ban AI usage.
im not sure if my tokens are finished or not.. is there a way to check how many I have left?
Ocno.aia (5.4 KB)
This is the aia with the current code, the error message isnt showing now, but the reply message from the chatbot still doesn't appear.
There are probable coding errors, property settings and more
You are not using the default settings. When I use the defaults, and change some of the Project code. I see the above . It indicates Chatbot is working using default settings. and not using the image tool.
try
OcnoChatCheckModified.aia (5.4 KB)
oh, i needed it to be able to upload pictures and send it to the chatbot as well for evaluation of the image as thats the main function of this project.
Do you have a Chatgpt account and have you a credit card on file? Use of advanced features is not supported unless you have enough tokens.
I didn't use my credit card with my chatgpt account, nor give any sort of payment. without it does that mean that image support for chatgpt is not allowed, unless some sort of payment is given?
That is my understanding. I do not have the account since I use the App Inventor Chatbot default setting, which are free for a limited amount of use per day.
You set the Token and API key
I cannot use them.
I see, I will look into it further regarding the pricing about images in chatgpt pricing list, but if there is any other way to upload images with the question to the chatbot that would be great as i dont have the budget and money to pay for the advanced features, but thanks anyways!
Oh, I now see that they do again have a 'free' tier discussed here>
I do not know whether that tier allows image questions to the chat. You just have to experiment unless someone else joins this discussion.
It says a limited amount of image upload is given for the free tier, maybe i just have to try again on a later date, and hopefully that will work as per last time