feat: adjust the way of returning data to LLM (#69)
This commit is contained in:
@@ -4,6 +4,5 @@ const os = require("node:os");
|
||||
*/
|
||||
exports.get_sysinfo = function getSysinfo() {
|
||||
return `OS: ${os.type()}
|
||||
Arch: ${os.arch()}
|
||||
User: ${process.env["USER"]}`
|
||||
Arch: ${os.arch()}`
|
||||
}
|
||||
|
||||
@@ -8,5 +8,4 @@ def get_sysinfo():
|
||||
return "\n".join([
|
||||
f"OS: {platform.system()}",
|
||||
f"Arch: {platform.machine()}",
|
||||
f"User: {os.environ.get('USER')}"
|
||||
])
|
||||
@@ -3,9 +3,10 @@ set -e
|
||||
|
||||
# @cmd Get the system info
|
||||
get_sysinfo() {
|
||||
echo "OS: $(uname)"
|
||||
echo "Arch: $(arch)"
|
||||
echo "User: $USER"
|
||||
cat <<EOF >> "$LLM_OUTPUT"
|
||||
OS: $(uname)
|
||||
Arch: $(arch)
|
||||
EOF
|
||||
}
|
||||
|
||||
# See more details at https://github.com/sigoden/argc
|
||||
|
||||
Reference in New Issue
Block a user