fix: mcp config styles (#320)

This commit is contained in:
JeffJiang
2025-06-13 18:01:19 +08:00
committed by GitHub
parent 7d38e5f900
commit 03e6a1a6e7
2 changed files with 3 additions and 1 deletions

View File

@@ -23,6 +23,8 @@ export const Link = ({
if (call && call.name === "web_search" && call.result) {
const result = JSON.parse(call.result) as Array<{ url: string }>;
result.forEach((r) => {
// encodeURI is used to handle the case where the link contains chinese or other special characters
links.add(encodeURI(r.url));
links.add(r.url);
});
}