mirror of
https://github.com/open-webui/open-webui
synced 2025-06-10 00:17:52 +00:00
refac: tool call result display
This commit is contained in:
parent
1921420319
commit
b97ea72616
@ -73,7 +73,7 @@
|
||||
return JSON.stringify(parsed, null, 2);
|
||||
} else {
|
||||
// It's a primitive value like a number, boolean, etc.
|
||||
return String(parsed);
|
||||
return `${JSON.stringify(String(parsed))}`;
|
||||
}
|
||||
} catch (e) {
|
||||
// Not valid JSON, return as-is
|
||||
|
Loading…
Reference in New Issue
Block a user