Enha: remove old tool calls

This commit is contained in:
Grail Finder
2025-12-20 11:04:57 +03:00
parent 25229d7c6f
commit 8c18b1b74c
2 changed files with 50 additions and 24 deletions

View File

@@ -9,6 +9,8 @@ import (
"path"
"strings"
"unicode"
"math/rand/v2"
)
func isASCII(s string) bool {
@@ -239,3 +241,13 @@ func makeStatusLine() string {
isRecording, persona, botPersona, injectRole)
return statusLine + imageInfo + shellModeInfo
}
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
func randString(n int) string {
b := make([]rune, n)
for i := range b {
b[i] = letters[rand.IntN(len(letters))]
}
return string(b)
}