yumoqing 21bf30d2a6 fix: add finally block to write_llmusage — recover from GeneratorExit on client disconnect
When client disconnects mid-stream, Python GC kills the generator with
GeneratorExit (BaseException subclass), which is NOT caught by except Exception.
write_llmusage at line 93 was never reached, causing ~16% usage records lost.
finally block ensures llmusage is written even on GeneratorExit.
2026-07-30 10:49:06 +08:00
..
2025-08-01 21:09:41 +08:00
2026-04-08 17:23:24 +08:00
2025-09-23 12:15:24 +08:00
2025-09-25 17:40:00 +08:00
2025-08-25 11:16:49 +08:00