claude-code-openai 0.1.21 → 0.1.23
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.
- package/dist/cli.js +7 -4
- 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:
|
|
204663
|
+
buildTime: "2026-04-01T20:40:14.446Z",
|
|
204664
204664
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
204665
204665
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
204666
204666
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -592949,7 +592949,7 @@ function getAnthropicEnvMetadata() {
|
|
|
592949
592949
|
function getBuildAgeMinutes() {
|
|
592950
592950
|
if (false)
|
|
592951
592951
|
;
|
|
592952
|
-
const buildTime = new Date("2026-04-01T20:
|
|
592952
|
+
const buildTime = new Date("2026-04-01T20:40:14.446Z").getTime();
|
|
592953
592953
|
if (isNaN(buildTime))
|
|
592954
592954
|
return;
|
|
592955
592955
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -595238,6 +595238,9 @@ async function* queryModelOpenAI(messages, systemPrompt, thinkingConfig, tools,
|
|
|
595238
595238
|
const openaiModel = resolveOpenAIModel(options.model);
|
|
595239
595239
|
const instructions = convertSystemPrompt(systemPrompt.filter(Boolean).map((text2) => ({ type: "text", text: text2 })));
|
|
595240
595240
|
const oaiTools = convertToolSchemas(tools);
|
|
595241
|
+
if (!client3.isOAuthChatgpt && !oaiTools.some((t2) => t2.type === "web_search_preview")) {
|
|
595242
|
+
oaiTools.push({ type: "web_search_preview", search_context_size: "medium" });
|
|
595243
|
+
}
|
|
595241
595244
|
const toolChoice = convertToolChoice(options.toolChoice);
|
|
595242
595245
|
const supportsReasoning = /^(gpt-5|o[1-9]|o3)/.test(openaiModel);
|
|
595243
595246
|
const reasoning = supportsReasoning ? convertThinkingConfig(thinkingConfig) : undefined;
|
|
@@ -679538,7 +679541,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
679538
679541
|
var call56 = async () => {
|
|
679539
679542
|
return {
|
|
679540
679543
|
type: "text",
|
|
679541
|
-
value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:
|
|
679544
|
+
value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:40:14.446Z"})`
|
|
679542
679545
|
};
|
|
679543
679546
|
}, version6, version_default;
|
|
679544
679547
|
var init_version = __esm(() => {
|
|
@@ -777549,4 +777552,4 @@ async function main2() {
|
|
|
777549
777552
|
}
|
|
777550
777553
|
main2();
|
|
777551
777554
|
|
|
777552
|
-
//# debugId=
|
|
777555
|
+
//# debugId=C114B13EE9049E7F64756E2164756E21
|