Does killing connection stop new tokens from being generated

If I’m running a python process, for example, using the openai library, and I kill my process while receiving STREAMED json packets, will this stop token generation on the server-side?

The stop sequence option is great when certain responses are expected, but sometimes it is convenient to just disconnect in certain circumstances. But if I’m being charged for all tokens that would have been received even after disconnecting, well, I’d just like to know. Thanks!!!

1 Like