Is the a.i component has prompt limit?

Hi, I love the a.i component and been using it a lot.

I noticed (or it’s a bug) that the a.i component stopped responding to my prompts after like 50-60 prompts.

Is it just me? Or something in Glide?

Notice: most of the prompts are adjustments and fixes to get the best result, so its like 5-10 for creating and the rest for fixing.

I’m not aware of a prompt limit per se, but I would imagine like any of the AI models, there is a limit to the amount of conversation context before you need to start a new conversation. With the paid models that Glide uses, I imagine the context window is quite large. I’ve never had it flat out refuse to make any further changes. 50-60 prompts doesn’t seem excessive, but do realize that the context window also contains 50-60 versions of the code, so imagining that conversation in ChatGPT for example, you can start to see that you probably have hundreds of pages of prompts and code replies.

Where I more often than not run into issues is when the reply length from the AI maxes out and cuts off the end of the code that the AI is writing. It still responds and makes changes, but I start to lose pieces of the component that I’ve already built because the code at the bottom is lost. In those cases I have to convince the AI to use less comments, reduce CSS usage, use shorter variable names in the code, and if possible try to merge redundant code or make the code more efficient. All in an effort to make the codebase smaller. (I tend to push the limits of the AI component and essentially build small applets that do many things rather than simple components that only have one function.)

As for your case of it not responding, usually a browser refresh fixes that for me. It could also be possible that there is an uncaught javascript exception in your code that is causing the browser window to partially crash. Sometimes it’s beneficial to ask the AI to apply Try/Catch logic to catch any unaccounted-for errors that would normally crash the session. I’ve had to do the same thing in the javascript column under certain circumstances.

1 Like