mirror of
https://github.com/Direct-Dev-Ru/go-lcg.git
synced 2025-11-16 01:29:55 +00:00
mobile version styled -ready for new version 2.0.1
This commit is contained in:
10
shell-code/curl.sh
Normal file
10
shell-code/curl.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
execute_command() {
|
||||
curl -s -X POST "http://localhost:8085/api/execute" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"prompt\": \"$1\", \"verbose\": \"$2\"}" | \
|
||||
jq -r '.'
|
||||
}
|
||||
|
||||
execute_command "$1" "$2"
|
||||
Reference in New Issue
Block a user