Files

1 line
12 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{"repo": "2902hhh/chatwifi-cpp", "files": {"config/chatwifi.conf": {"d15b2af970fa364bc5fb654fc3036e366fb5aa07": {"t": 1785745387.327971, "n": 1176, "h": "a25acd83993fd0cb", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 32\nllm_temperature = 0.0\nllm_timeout_sec = 120\nllm_summary_timeout_sec = 60\nllm_server_ready_timeout_sec = 60\n\n# ---- DeepSeek API(用于生成简报,减轻本地 LLM 压力) ----\nsummary_api_url = https://api.deepseek.com/v1/chat/completions\n# API Key 请存入 config/chatwifi.secrets(该文件已加入 .gitignore)\n# 也可设置环境变量: export DEEPSEEK_API_KEY=sk-xxxx\nsummary_api_key_file = chatwifi.secrets\nsummary_model = deepseek-chat\nsummary_max_tokens = 512\nsummary_temperature = 0.3\nsummary_timeout_sec = 60\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 300\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "91ab861bc43296261ebc9ba3b348f12cfdc338ee": {"t": 1785750913.9677312, "n": 1176, "h": "a25acd83993fd0cb", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 32\nllm_temperature = 0.0\nllm_timeout_sec = 120\nllm_summary_timeout_sec = 60\nllm_server_ready_timeout_sec = 60\n\n# ---- DeepSeek API(用于生成简报,减轻本地 LLM 压力) ----\nsummary_api_url = https://api.deepseek.com/v1/chat/completions\n# API Key 请存入 config/chatwifi.secrets(该文件已加入 .gitignore)\n# 也可设置环境变量: export DEEPSEEK_API_KEY=sk-xxxx\nsummary_api_key_file = chatwifi.secrets\nsummary_model = deepseek-chat\nsummary_max_tokens = 512\nsummary_temperature = 0.3\nsummary_timeout_sec = 60\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 300\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "bd544b6c838f875cb5ecd9d50a71d14814a0a4da": {"t": 1785750915.0529058, "n": 1185, "h": "588dd33760d160d0", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 32\nllm_temperature = 0.0\nllm_timeout_sec = 120\nllm_summary_timeout_sec = 300\nllm_server_ready_timeout_sec = 180\n\n# ---- DeepSeek API(用于生成简报,减轻本地 LLM 压力) ----\nsummary_api_url = https://api.deepseek.com/v1/chat/completions\n# API Key 请存入 config/chatwifi.secrets(该文件已加入 .gitignore)\n# 也可设置环境变量: export DEEPSEEK_API_KEY=sk-xxxx\nsummary_api_key_file = config/chatwifi.secrets\nsummary_model = deepseek-chat\nsummary_max_tokens = 512\nsummary_temperature = 0.3\nsummary_timeout_sec = 60\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 300\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "27f83a8f26a8ca4d7f0db51916d4c779ef3890cb": {"t": 1785750916.1761987, "n": 1091, "h": "bb7975a46d6cabdc", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 32\nllm_temperature = 0.0\nllm_timeout_sec = 120\nllm_summary_timeout_sec = 300\nllm_server_ready_timeout_sec = 180\n\n# ---- DeepSeek API(用于生成简报,减轻本地 LLM 压力) ----\nsummary_api_url = https://api.deepseek.com/v1/chat/completions\nsummary_api_key = sk-196b1afaffea48ff9bbe9d9e7f470f5c\nsummary_model = deepseek-chat\nsummary_max_tokens = 512\nsummary_temperature = 0.3\nsummary_timeout_sec = 60\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 300\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "8cc829f73e06d8052eea40d144c57d16bb5c8b4b": {"t": 1785750917.2462058, "n": 1056, "h": "d79ab6854f1caefb", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 32\nllm_temperature = 0.0\nllm_timeout_sec = 120\nllm_summary_timeout_sec = 300\n\n# ---- DeepSeek API(用于生成简报,减轻本地 LLM 压力) ----\nsummary_api_url = https://api.deepseek.com/v1/chat/completions\nsummary_api_key = sk-196b1afaffea48ff9bbe9d9e7f470f5c\nsummary_model = deepseek-chat\nsummary_max_tokens = 512\nsummary_temperature = 0.3\nsummary_timeout_sec = 60\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 300\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "05e33a59bcc0efd24a3a75f1ec80020c6f95fae0": {"t": 1785750918.319788, "n": 1055, "h": "f30f78437216eccf", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 32\nllm_temperature = 0.0\nllm_timeout_sec = 120\nllm_summary_timeout_sec = 300\n\n# ---- DeepSeek API(用于生成简报,减轻本地 LLM 压力) ----\nsummary_api_url = https://api.deepseek.com/v1/chat/completions\nsummary_api_key = sk-196b1afaffea48ff9bbe9d9e7f470f5c\nsummary_model = deepseek-chat\nsummary_max_tokens = 512\nsummary_temperature = 0.3\nsummary_timeout_sec = 60\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 60\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "3f00597362e05f50239df634b1bc8cd2113a2072": {"t": 1785750919.418477, "n": 1044, "h": "f71932e3c0f9ea34", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 128\nllm_temperature = 0.0\nllm_timeout_sec = 30\nllm_summary_timeout_sec = 300\n\n# ---- DeepSeek API(用于生成简报,减轻本地 LLM 压力) ----\nsummary_api_url = https://api.deepseek.com/v1/chat/completions\nsummary_api_key = sk-your-deepseek-api-key\nsummary_model = deepseek-chat\nsummary_max_tokens = 512\nsummary_temperature = 0.3\nsummary_timeout_sec = 60\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 60\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "bd1299f04544be3c55870a7ebfd7db4a610ddde4": {"t": 1785750920.5269175, "n": 785, "h": "63729960e55a8964", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 128\nllm_temperature = 0.0\nllm_timeout_sec = 30\nllm_summary_timeout_sec = 90\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 60\nsummary_metrics_lines = 30\nsummary_ops_lines = 15\n"}, "1e456380a1d8ff29cdee2c5432196c984e0839c4": {"t": 1785750921.6061091, "n": 759, "h": "aba7a76a9f3b876b", "c": "# ChatWiFi C++ 配置文件\nlisten_host = 0.0.0.0\nlisten_port = 8000\nlog_dir = data\n\nwifi_interface = wlan0\ndnsmasq_leases_path = /var/lib/misc/dnsmasq.leases\n\n# llama.cpp server API 地址 (OpenAI 兼容)\nllm_server_url = http://127.0.0.1:8081/v1/chat/completions\nllm_model_path = /home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens = 128\nllm_temperature = 0.0\nllm_timeout_sec = 30\n\nupdate_script = /usr/local/sbin/update-hotspot\nupdate_timeout_sec = 45\nrequire_sudo = true\n\nhotspot_stop_command = systemctl stop hostapd dnsmasq\nhotspot_stop_timeout_sec = 15\n\nhotspot_start_command = systemctl start hostapd dnsmasq\nhotspot_start_timeout_sec = 20\n\nmetrics_interval_sec = 1\nsummary_interval_sec = 600\nsummary_metrics_lines = 600\nsummary_ops_lines = 200\n"}, "05fbf00816aabcf3e1e97907cf0e52a40d5e532c": {"t": 1785750926.0431027, "n": 1016, "h": "6e5676244f19f5b4", "c": "# 监听地址与端口\nlisten_host=0.0.0.0\nlisten_port=8001\n\n# 日志目录(相对路径会基于当前工作目录)\nlog_dir=../data\n\n# WiFi 接口与 DHCP 租约文件\nwifi_interface=wlan0\ndnsmasq_leases_path=/var/lib/NetworkManager/dnsmasq-wlan0.leases\n\n# llama.cpp CLI 调用模板\n# 可用占位符: {model} {prompt} {max_tokens} {temperature}\nllm_command_template=llama-cli -m {model} -p {prompt} -n {max_tokens} --temp {temperature}\nllm_model_path=/home/dinghuan/chatwifi-local/Qwen3.5-0.8B-UD-Q4_K_XL.gguf\nllm_max_tokens=128\nllm_temperature=0.0\nllm_timeout_sec=30\n\n# WiFi 更新脚本路径\nupdate_script=/usr/local/sbin/update-hotspot\nupdate_timeout_sec=45\nrequire_sudo=true\n\n# 关闭热点命令\nhotspot_stop_command=nmcli con down \"pi-hotspot\"\nhotspot_stop_timeout_sec=15\n\n# 开启热点命令\nhotspot_start_command=nmcli con up \"pi-hotspot\"\nhotspot_start_timeout_sec=20\n\n# 实时采样与简报配置\nmetrics_interval_sec=1\nsummary_interval_sec=60\nsummary_metrics_lines=600\nsummary_ops_lines=200\nsummary_prompt_file=\n\n# 设备策略保存路径(留空则使用 log_dir/device_policies.conf)\ndevice_policy_file=\n\n# 可选: 指定 system prompt 文件路径(多行)\nsystem_prompt_file=\n"}}}}