mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 06:57:33 +08:00
This commit is contained in:
8
app/utils/format.ts
Normal file
8
app/utils/format.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function prettyObject(msg: any) {
|
||||
const prettyMsg = [
|
||||
"```json\n",
|
||||
JSON.stringify(msg, null, " "),
|
||||
"\n```",
|
||||
].join("");
|
||||
return prettyMsg;
|
||||
}
|
Reference in New Issue
Block a user