What is the best practice for keeping containers alive?

It would seem the most reliable way would be to use a separate API call and cheap model that can still write code with top_p:0.0, referencing the container ID in the tool parameter, and ask for a very simple zero-impact script to be sent, such as “Give my your Python notebook environment’s system time by immediately sending a script to python tool”, every 10 minutes or so.

At “$0.03” per container as the method for billing, this should be cheaper than losing the session container, besides the data and work of a chat being lost and unable to continue. Probably undesired pattern by OpenAI, but oh, well.

Under 500 “nano” tokens, $0.00005 (plus $0.03 to show you)