mirror of
https://github.com/hoshikawa2/agent_platform_oci.git
synced 2026-07-09 22:04:21 +00:00
First commit
This commit is contained in:
7
scripts/smoke_usage_test.sh
Normal file
7
scripts/smoke_usage_test.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
BASE_URL="${BASE_URL:-http://localhost:8000}"
|
||||
curl -s -X POST "$BASE_URL/gateway/message" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"channel":"web","payload":{"text":"teste smoke","user_id":"smoke-user","session_id":"smoke-session","message_id":"smoke-1"}}' | python -m json.tool
|
||||
curl -s "$BASE_URL/debug/usage" | python -m json.tool
|
||||
Reference in New Issue
Block a user