Refreshing ai-plugin.json

Hi All,

One issue I’m running into when developing Chat Plugins is refreshing ai-plugin.json with changes. It seems like it eventually refreshes, but it’s really unpredictable and doesn’t seem to refresh simply by reinstalling your localhost plugin.

This is particularly frustrating when I’m trying to troubleshoot description_for_model property within ai-plugin.json. This seems like a particularly important field for controlling the plugin and I really want to experiment with using it in different ways. The delay and unpredictability in refreshing the file really slows down development.

Wondering if anyone has experienced this or has some techniques or trouble-shooting tips to solve this issue.

Thanks,
Mark

1 Like

Doesn’t refresh unless you uninstall and reinstall the plug-in.

I’m afraid that doesn’t seem to work, at least not right away. I update description_for_model, completely uninstall the plugin, and reinstall it and it’s the same old ai-plugin.json - the old one seems to be cached by ChatGPT. I see that it never actually makes a call to my API to /.well-known/ai-plugin.json, it just makes a call to the openapi.json doc.

same issue here. Did you ever find a resolution? Seems like https://chat.openai.com/backend-api/ caches for a while and does not update when I want it to

No, never did find a resolution. ai-plugin.json eventually changes of course, but there always seems to be a significant delay that you can’t control. For now I’ve just landed on a fairly reasonably-seeming ai-plugin.json and have given up on quickly iterating / optimizing it

Are you adding any cache-control headers to your response?

No there’s no cacheing happening on my end / no cache control headers. Running my API on localhost, I can see that ChatGPT is simply not requesting ai-plugin.json, even when reinstalling the plugin. Perhaps it would if I reinstalled it on a different localhost port - haven’t tried that.

Very weird. Tried this locally - updated the name and human description and it seemed to refresh no problem. I can see the requests coming through.

"OPTIONS /.well-known/ai-plugin.json HTTP/1.1" 200 -
"OPTIONS /logo.png HTTP/1.1" 200 -
"GET /.well-known/ai-plugin.json HTTP/1.1" 200 -
"OPTIONS /openapi.yaml HTTP/1.1" 200 -
"GET /openapi.yaml HTTP/1.1" 200 -
"OPTIONS /.well-known/ai-plugin.json HTTP/1.1" 200 -
"GET /.well-known/ai-plugin.json HTTP/1.1" 200 -
"OPTIONS /openapi.yaml HTTP/1.1" 200 -
"GET /openapi.yaml HTTP/1.1" 200 -
"OPTIONS /logo.png HTTP/1.1" 200 -
"GET /.well-known/ai-plugin.json HTTP/1.1" 200 -
"GET /openapi.yaml HTTP/1.1" 200 -
"OPTIONS /.well-known/ai-plugin.json HTTP/1.1" 200 -
"GET /.well-known/ai-plugin.json HTTP/1.1" 200 -
"OPTIONS /openapi.yaml HTTP/1.1" 200 -
"GET /openapi.yaml HTTP/1.1" 200 -
"OPTIONS /logo.png HTTP/1.1" 200 -
"GET /.well-known/ai-plugin.json HTTP/1.1" 200 -
"GET /openapi.yaml HTTP/1.1" 200 -

If anything, it seems to be asking for it more often than it needs to. I see it loading when a new chat starts.

"OPTIONS /.well-known/ai-plugin.json HTTP/1.1" 200 -
"GET /.well-known/ai-plugin.json HTTP/1.1" 200 -
"OPTIONS /openapi.yaml HTTP/1.1" 200 -
"GET /openapi.yaml HTTP/1.1" 200 -