@ouro.bot/cli 0.1.0-alpha.192 → 0.1.0-alpha.194

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,8 +123,14 @@ async function pingProvider(provider, config) {
123
123
  const client = runtime.client;
124
124
  await client.messages.create({ model: "claude-haiku-4-5-20251001", max_tokens: 1, messages: [{ role: "user", content: "ping" }] }, { signal: controller.signal, headers: { "anthropic-beta": "claude-code-20250219,oauth-2025-04-20" } });
125
125
  }
126
+ else if (provider === "openai-codex") {
127
+ // Codex uses the Responses API (chatgpt.com/backend-api/codex/responses),
128
+ // not the Chat Completions API. Ping via responses endpoint.
129
+ const client = runtime.client;
130
+ await client.responses.create({ model: runtime.model, input: "ping", store: false }, { signal: controller.signal });
131
+ }
126
132
  else {
127
- // OpenAI-compatible providers (azure, codex, minimax, github-copilot)
133
+ // OpenAI-compatible providers (azure, minimax, github-copilot)
128
134
  const client = runtime.client;
129
135
  await client.chat.completions.create({ model: runtime.model, max_tokens: 1, messages: [{ role: "user", content: "ping" }] }, { signal: controller.signal });
130
136
  }