claude-code-openai 0.1.24 → 0.1.26

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.
Files changed (2) hide show
  1. package/dist/cli.js +18 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -204660,7 +204660,7 @@ var init_metadata = __esm(() => {
204660
204660
  isClaudeAiAuth: isClaudeAISubscriber(),
204661
204661
  version: "2.1.88-rebuild",
204662
204662
  versionBase: getVersionBase(),
204663
- buildTime: "2026-04-01T20:45:10.833Z",
204663
+ buildTime: "2026-04-01T21:04:34.601Z",
204664
204664
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
204665
204665
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
204666
204666
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -257005,6 +257005,9 @@ function modelSupportsEffort(model) {
257005
257005
  if (isEnvTruthy(process.env.CLAUDE_CODE_ALWAYS_ENABLE_EFFORT)) {
257006
257006
  return true;
257007
257007
  }
257008
+ if (getAPIProvider() === "openai") {
257009
+ return /^(gpt-5|o[1-9]|o3)/.test(m2) || m2.includes("opus") || m2.includes("sonnet");
257010
+ }
257008
257011
  const supported3P = get3PModelCapabilityOverride(model, "effort");
257009
257012
  if (supported3P !== undefined) {
257010
257013
  return supported3P;
@@ -257165,6 +257168,9 @@ function getDefaultEffortForModel(model) {
257165
257168
  return "medium";
257166
257169
  }
257167
257170
  }
257171
+ if (getAPIProvider() === "openai" && modelSupportsEffort(model)) {
257172
+ return "medium";
257173
+ }
257168
257174
  if (isUltrathinkEnabled() && modelSupportsEffort(model)) {
257169
257175
  return "medium";
257170
257176
  }
@@ -592949,7 +592955,7 @@ function getAnthropicEnvMetadata() {
592949
592955
  function getBuildAgeMinutes() {
592950
592956
  if (false)
592951
592957
  ;
592952
- const buildTime = new Date("2026-04-01T20:45:10.833Z").getTime();
592958
+ const buildTime = new Date("2026-04-01T21:04:34.601Z").getTime();
592953
592959
  if (isNaN(buildTime))
592954
592960
  return;
592955
592961
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -595248,7 +595254,14 @@ async function* queryModelOpenAI(messages, systemPrompt, thinkingConfig, tools,
595248
595254
  }
595249
595255
  const toolChoice = convertToolChoice(options.toolChoice);
595250
595256
  const supportsReasoning = /^(gpt-5|o[1-9]|o3)/.test(openaiModel);
595251
- const reasoning = supportsReasoning ? convertThinkingConfig(thinkingConfig) : undefined;
595257
+ let reasoning = supportsReasoning ? convertThinkingConfig(thinkingConfig) : undefined;
595258
+ if (reasoning && options.effortValue) {
595259
+ const effortStr = typeof options.effortValue === "string" ? options.effortValue : "medium";
595260
+ const mapped = effortStr === "max" ? "high" : effortStr;
595261
+ if (["high", "medium", "low"].includes(mapped)) {
595262
+ reasoning = { ...reasoning, effort: mapped };
595263
+ }
595264
+ }
595252
595265
  let input;
595253
595266
  const usePreviousResponseId = !client3.isOAuthChatgpt && _lastResponseId != null;
595254
595267
  if (usePreviousResponseId) {
@@ -679546,7 +679559,7 @@ var init_bridge_kick = __esm(() => {
679546
679559
  var call56 = async () => {
679547
679560
  return {
679548
679561
  type: "text",
679549
- value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:45:10.833Z"})`
679562
+ value: `${"2.1.88-rebuild"} (built ${"2026-04-01T21:04:34.601Z"})`
679550
679563
  };
679551
679564
  }, version6, version_default;
679552
679565
  var init_version = __esm(() => {
@@ -777557,4 +777570,4 @@ async function main2() {
777557
777570
  }
777558
777571
  main2();
777559
777572
 
777560
- //# debugId=1236D03F415513E764756E2164756E21
777573
+ //# debugId=F97171E9D2513B5D64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-openai",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "Claude Code CLI with OpenAI GPT-5.4 backend support",
5
5
  "type": "module",
6
6
  "bin": {