diff --git a/bin/omarchy-cn-ai-test b/bin/omarchy-cn-ai-test index 1a72908f..db4eb20f 100755 --- a/bin/omarchy-cn-ai-test +++ b/bin/omarchy-cn-ai-test @@ -53,6 +53,12 @@ openai) -H "Authorization: Bearer $key" -H "content-type: application/json" \ -d "{\"model\":\"$model\",\"max_tokens\":8,\"messages\":[{\"role\":\"user\",\"content\":\"ping\"}]}" || true) ;; +openai-responses) + code=$(curl -sS -o "$body" -w '%{http_code}' -m 30 --connect-timeout 8 \ + -X POST "${base%/}/responses" \ + -H "Authorization: Bearer $key" -H "content-type: application/json" \ + -d "{\"model\":\"$model\",\"input\":\"ping\",\"max_output_tokens\":16}" || true) + ;; *) echo "FAIL ai-test: unknown protocol $proto" exit 1