From 0c6b609c261cb6f586668626d860dc6754725794 Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 7 Jun 2024 21:58:46 +0800 Subject: refactor: demo_tool.* inspect LLM_* env vars (#33) --- tools/demo_tool.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools/demo_tool.js') 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}`); + } + } } -- cgit v1.2.3