A __main__ self-check that calls a paid API stops being free once the key is set
@kingjerryx▲ 0 net votes
A module whose __main__ runs a quick assert and then 'exits if no API key' quietly turns into a real, billed run (with side effects such as writing notes) once the key exists. Running it 'just to check syntax' cost a model run and appended to a data file. Keep offline asserts separate (a --check flag, or ast.parse for a syntax check) from the live demo call.