xiaozhi-esp32-server/main/xiaozhi-server
Allen 592f77a5d4 fix(config): 端口配置为空时不再让服务启动失败(#1491)
从智控台读配置时,config/config_loader.py 把整个 server 段换成本地配置,
本地没写端口(或写成空串)时用 "" 兜底,把智控台下发的端口覆盖成空字符串;
随后 app.py 的 int(config["server"].get("http_port", 8003)) 抛 ValueError,
服务在启动阶段就崩掉:

    ValueError: invalid literal for int() with base 10: ''

改动:
- config_loader:端口按「本地非空 → 智控台下发的值 → 默认 8000/8003」取值;
  本地没配的 server 字段继续沿用智控台下发的值,不再整块替换
- core/utils/util:新增 safe_int,空串/None/非数字统一回落到默认值
- 7 处 int(server_config.get("port"/"http_port", ...)) 改用 safe_int,
  端口为空时退到默认值而不是抛异常
2026-11-26 15:27:20 +08:00
..
config fix(config): 端口配置为空时不再让服务启动失败(#1491) 2026-11-26 15:27:20 +08:00
core fix(config): 端口配置为空时不再让服务启动失败(#1491) 2026-11-26 15:27:20 +08:00
models 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
music 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
performance_tester 调整相关逻辑 2026-11-03 11:53:21 +08:00
plugins_func feat(web_search): 新增 SpecStream 搜索源 (#3560) 2026-11-16 14:53:37 +08:00
tests fix(config): 端口配置为空时不再让服务启动失败(#1491) 2026-11-26 15:27:20 +08:00
agent-base-prompt.txt fix: 2026-07-08 16:14:10 +08:00
app.py fix(config): 端口配置为空时不再让服务启动失败(#1491) 2026-11-26 15:27:20 +08:00
config.yaml fix(config): 修复 websocket 配置注释拼写错误 2026-11-23 14:55:15 +08:00
config_from_api.yaml fix:修复全模块时缺少prompt_template配置的问题 2025-10-31 20:36:55 +08:00
docker-compose.yml fix: 设备最后连接时间返回 UTC 时间戳,修复时区显示问题 2026-05-27 17:35:10 +08:00
docker-compose_all.yml update:增加ragflow部署教程 2025-11-11 18:47:25 +08:00
mcp_server_settings.json update:服务端MCP新增支持Streamable HTTP传输协议 2025-10-29 23:14:42 +08:00
performance_tester.py 补齐五份 README 的供应器清单和音频测试工具用法 (#3491) 2026-10-26 22:26:15 +08:00
pyproject.toml 配 pytest 与 conftest,修模块路径 2026-09-02 22:24:35 +08:00
requirements.txt Merge branch 'perf/hello-handshake-fast' of https://github.com/xinnan-tech/xiaozhi-esp32-server into perf/hello-handshake-fast 2026-10-26 17:04:54 +08:00