mirror of
https://github.com/open-webui/open-webui
synced 2025-06-15 19:05:04 +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);
|
return JSON.stringify(parsed, null, 2);
|
||||||
} else {
|
} else {
|
||||||
// It's a primitive value like a number, boolean, etc.
|
// It's a primitive value like a number, boolean, etc.
|
||||||
return String(parsed);
|
return `${JSON.stringify(String(parsed))}`;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Not valid JSON, return as-is
|
// Not valid JSON, return as-is
|
||||||
|
Loading…
Reference in New Issue
Block a user