mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-10-26 01:54:36 +08:00
Read config.json with utf-8-sig so a BOM (e.g. saved by Windows Notepad) no longer breaks config/model updates from the web console; write-back stays plain utf-8 to strip the BOM on next save. Gate the /poll and /api/scheduler/runs background pollers behind auth so a password-protected console no longer spams "401 Unauthorized" before the user logs in. Co-authored-by: cowagent <cow@cowagent.ai>