Unpair a Bluetooth device
()
| 12688 | logger.info(f"[API /api/network] Returning {len(network_data)} hosts (alive: {alive_count}, degraded: {degraded_count})") |
| 12689 | |
| 12690 | response = jsonify(network_data) |
| 12691 | response.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' |
| 12692 | response.headers['Pragma'] = 'no-cache' |
| 12693 | response.headers['Expires'] = '0' |
| 12694 | return response |
| 12695 | |
| 12696 | except Exception as e: |
| 12697 | logger.error(f"Error getting network data from SQLite: {e}") |
| 12698 | logger.debug(f"Traceback: {traceback.format_exc()}") |
| 12699 | return jsonify({'error': str(e)}), 500 |
| 12700 | |
| 12701 | |
| 12702 | def _batch_ai_classify(nodes, indices, ai_service, labels, valid_types): |
| 12703 | """Classify multiple low-confidence devices in a SINGLE GPT-5.4 Nano call. |
| 12704 | |
| 12705 | Mutates nodes in-place for the given indices. |
| 12706 | """ |
| 12707 | if not indices: |
| 12708 | return |
| 12709 | |
| 12710 | # Build a compact table for the prompt |
nothing calls this directly
no test coverage detected