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:
parent
cf06c8682b
commit
59effa6ea8
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue