From d0c4c3a0b3fe6c48a72ef6bcdfb072200ed738af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Mon, 24 Aug 2026 20:50:37 -0400 Subject: [PATCH] AI test: codex Responses API branch Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp --- bin/omarchy-cn-ai-test | 6 ++++++ 1 file changed, 6 insertions(+) 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