Fix MySQL cursor disconnection error in record_token_usage
- Move all cursor operations inside the 'with' context manager block - Connection was being closed before cursor.execute() was called - Fixes 'Cursor is not connected' error in token usage recording
Showing
Please
register
or
sign in
to comment