fix: 修复 calculator_tool.go 中 import path 误入 switch case 的 bug

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 22:34:29 +08:00
parent cd83eec39e
commit edc20170b9
@@ -341,7 +341,7 @@ func applyFunc(name string, arg float64) (float64, error) {
return math.Ceil(arg), nil
case "round":
return math.Round(arg), nil
case "github.com/yourname/cyrene-ai/pkg/logger":
case "log":
if arg <= 0 {
return 0, fmt.Errorf("log 参数必须大于0")
}