mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-05 00:45:29 +08:00
feat: extend DSML tag prefix to also recognize underscore-connected variants
Support `<dsml_tool_calls>`, `<dsml_invoke>`, `<dsml_parameter>` in addition to the existing pipe, space, hyphen, and collapsed forms. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -242,7 +242,7 @@ func consumeToolMarkupNamePrefixOnce(lower, text string, idx int) (int, bool) {
|
||||
}
|
||||
if strings.HasPrefix(lower[idx:], "dsml") {
|
||||
next := idx + len("dsml")
|
||||
if next < len(text) && text[next] == '-' {
|
||||
if next < len(text) && (text[next] == '-' || text[next] == '_') {
|
||||
next++
|
||||
}
|
||||
return next, true
|
||||
|
||||
Reference in New Issue
Block a user