Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
43ae9fe7
Commit
43ae9fe7
authored
Aug 04, 2023
by
pythongosssss
Browse files
add system stats function
parent
0bbd9dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
web/scripts/api.js
web/scripts/api.js
+9
-0
No files found.
web/scripts/api.js
View file @
43ae9fe7
...
...
@@ -264,6 +264,15 @@ class ComfyApi extends EventTarget {
}
}
/**
* Gets system & device stats
* @returns System stats such as python version, OS, per device info
*/
async
getSystemStats
()
{
const
res
=
await
this
.
fetchApi
(
"
/system_stats
"
);
return
await
res
.
json
();
}
/**
* Sends a POST request to the API
* @param {*} type The endpoint to post to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment