Files
Mofox-Core/src/chat
tt-P607 d5c8bde3a2 fix(chat): 修复能量调整计算中的负数幂错误
当能量值非常接近高能量阈值(0.7)时,由于浮点数精度问题,`energy - 0.7` 的结果可能为一个极小的负数,这会导致 `ValueError` (negative number cannot be raised to a fractional power)。

通过使用 `max(0, ...)` 来确保幂运算的基数始终为非负数,从而解决了这个潜在的运行时错误,增强了系统的健壮性。
2025-10-03 10:39:21 +08:00
..
2025-10-02 20:26:01 +08:00
2025-10-02 20:26:01 +08:00
2025-10-02 20:26:01 +08:00
2025-10-02 20:26:01 +08:00
2025-10-02 20:26:01 +08:00
2025-10-02 20:26:01 +08:00
2025-10-02 20:26:01 +08:00