Enha: remove old tool calls
This commit is contained in:
12
helpfuncs.go
12
helpfuncs.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user