fix(tdz): move totalLatency declaration before saveUsageStats call in nonStreamingHandler
ReferenceError: Cannot access 'totalLatency' before initialization
at nonStreamingHandler.js:250 — totalLatency was declared at line 298 but
referenced at line 250 (TDZ: const not yet initialized). Moved the declaration
above the saveUsageStats call. This was the root cause of the chat-completions
500 error on all providers (test model + chat).
Full Changelog: 0.6.4...0.6.5-Hotfix