Skip to content

Commit 47578bc

Browse files
author
lin040204
committed
fix:delete unused func
1 parent 3db3c86 commit 47578bc

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

  • spx-backend/internal/copilot/asscompletion

spx-backend/internal/copilot/asscompletion/prompt.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ var systemPromptTpl string
1313
// It is initialized during package initialization.
1414
var SystemPrompt string
1515

16-
1716
func init() {
1817
// The system prompt for asset completion is static and doesn't need template processing
1918
SystemPrompt = systemPromptTpl
@@ -69,18 +68,3 @@ func BuildUserPrompt(prefix string, limit int) string {
6968
"Please list suggestions directly, one per line, without numbers or bullets. / 请直接列出建议,每行一个,不要编号。",
7069
limit, prefix, prefix, limit, prefix, prefix, prefix, prefix, prefix, prefix, prefix, prefix)
7170
}
72-
73-
// ContainsChinese checks if a string contains Chinese characters
74-
func ContainsChinese(s string) bool {
75-
for _, r := range s {
76-
if r >= 0x4e00 && r <= 0x9fff { // CJK Unified Ideographs range
77-
return true
78-
}
79-
}
80-
return false
81-
}
82-
83-
// containsChinese is a private alias for backward compatibility
84-
func containsChinese(s string) bool {
85-
return ContainsChinese(s)
86-
}

0 commit comments

Comments
 (0)