SimpleChatTC:Cleanup: tool resp xml, some allowed domains

Add a newline between name and content in the xml representation
of the tool response, so that it is more easy to distinguish things

Add github, linkedin and apnews domains to allowed.domains for
simpleproxy.py
This commit is contained in:
hanishkvc 2025-10-29 03:38:34 +05:30
parent cf06c8682b
commit 59effa6ea8
2 changed files with 8 additions and 1 deletions

View File

@ -15,6 +15,8 @@
"^arxiv\\.org$",
".*\\.nature\\.com$",
".*\\.science\\.org$",
"^apnews\\.com$",
".*\\.apnews\\.com$",
".*\\.reuters\\.com$",
".*\\.bloomberg\\.com$",
".*\\.forbes\\.com$",
@ -38,6 +40,9 @@
".*\\.ndtv\\.com$",
"^lwn\\.net$",
"^arstechnica\\.com$",
".*\\.linkedin\\.com$",
".*\\.github\\.io$",
"^github\\.com$",
".*\\.github\\.com$"
],
"bearer.insecure": "NeverSecure"

View File

@ -96,7 +96,9 @@ class ChatMessageEx {
el.appendChild(doc.createTextNode(k[1]))
doc.documentElement.appendChild(el)
}
return new XMLSerializer().serializeToString(doc);
let xmlStr = new XMLSerializer().serializeToString(doc);
xmlStr = xmlStr.replace(/\/name><content/, '\/name>\n<content');
return xmlStr;
}
/**