Merge PR #7207
This commit is contained in:
commit
f8ade25db9
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -4386,7 +4386,7 @@ function attachLiveStream(activeSid, streamId, uploaded=[], options={}){
|
||||
s=s.replace(/<(?:\s*|\s*DSML\s*[||]\s*)?function_calls(?:>|$)[\s\S]*$/i,'');
|
||||
// Remove malformed DSML tag fragments like "<|DSML |" that can leak in tokens.
|
||||
s=s.replace(/<\s*|\s*DSML\s*[||]\s*/gi,'');
|
||||
return s.trim();
|
||||
return s.replace(/^\s+/, '');
|
||||
}
|
||||
function _streamDisplay(){
|
||||
return _extractInlineThinkingFromContent(_stripXmlToolCalls(assistantText), liveReasoningText, {streaming:true}).content;
|
||||
|
||||
+1
-1
@@ -7496,7 +7496,7 @@ function _stripXmlToolCallsDisplay(s){
|
||||
s=s.replace(/<(?:\s*|\s*DSML\s*[||]\s*)?function_calls(?:>|$)[\s\S]*$/i,'');
|
||||
// Remove malformed DSML tag fragments like "<|DSML |" that can leak in tokens.
|
||||
s=s.replace(/<\s*|\s*DSML\s*[||]\s*/gi,'');
|
||||
return s.trim();
|
||||
return s.replace(/^\s+/, '');
|
||||
}
|
||||
|
||||
function _sanitizeThinkingDisplayText(text){
|
||||
|
||||
Reference in new issue
Block a user