mirror of
https://github.com/zhengkai/orca.git
synced 2026-02-17 01:42:27 +08:00
limit
This commit is contained in:
9
misc/test/moderations.sh
Executable file
9
misc/test/moderations.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASE="${OPENAI_API_BASE:-https://api.openai.com/v1}"
|
||||
|
||||
curl -v "${BASE}/moderations" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${OPENAI_API_KEY}" \
|
||||
-d '{"input": "你媽逼啊"}' \
|
||||
| jq . -
|
||||
Reference in New Issue
Block a user