fix(xai): recompute total_tokens after adding reasoning tokens to output (#39667)