aboutsummaryrefslogtreecommitdiffstats
path: root/tools/demo_tool.js
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-07 21:58:46 +0800
committerGitHub <noreply@github.com>2024-06-07 21:58:46 +0800
commit0c6b609c261cb6f586668626d860dc6754725794 (patch)
treec41bb58e38908bbfa1430c7d2b10974ab8a873cf /tools/demo_tool.js
parent63df67acea19b3708d34ef3b656c1b784c2a72f4 (diff)
downloadllm-functions-docker-0c6b609c261cb6f586668626d860dc6754725794.tar.gz
refactor: demo_tool.* inspect LLM_* env vars (#33)
Diffstat (limited to 'tools/demo_tool.js')
-rw-r--r--tools/demo_tool.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/demo_tool.js b/tools/demo_tool.js
index 4fd6f04..c8b7237 100644
--- a/tools/demo_tool.js
+++ b/tools/demo_tool.js
@@ -12,5 +12,13 @@
* @param {Args} args
*/
exports.run = function run(args) {
- console.log(JSON.stringify(args, null, 2));
+ for (const [key, value] of Object.entries(args)) {
+ console.log(`${key}: ${JSON.stringify(value)}`);
+ }
+
+ for (const [key, value] of Object.entries(process.env)) {
+ if (key.startsWith("LLM_")) {
+ console.log(`${key}: ${value}`);
+ }
+ }
}