mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-19 06:07:28 +08:00
perf: optimize web_fetch output by removing indent
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"clawgo/pkg/logger"
|
"clawgo/pkg/logger"
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -275,7 +276,7 @@ func (t *WebFetchTool) Execute(ctx context.Context, args map[string]interface{})
|
|||||||
"text": text,
|
"text": text,
|
||||||
}
|
}
|
||||||
|
|
||||||
resultJSON, _ := json.MarshalIndent(result, "", " ")
|
resultJSON, _ := json.Marshal(result)
|
||||||
return string(resultJSON), nil
|
return string(resultJSON), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user