@koda-sl/baker-cli 0.443.0-dev.edb8d8767 → 0.444.0-dev.cac1750ec

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.
@@ -14988,7 +14988,7 @@ async function videoDuration(video) {
14988
14988
  return null;
14989
14989
  }
14990
14990
  }
14991
- async function askGateway(model, parts, timeoutMs, spent) {
14991
+ async function askGateway(model, parts, timeoutMs, spent, reasoning) {
14992
14992
  const key = openRouterKey();
14993
14993
  if (!key) return null;
14994
14994
  try {
@@ -14998,7 +14998,8 @@ async function askGateway(model, parts, timeoutMs, spent) {
14998
14998
  body: JSON.stringify({
14999
14999
  model,
15000
15000
  messages: [{ role: "user", content: parts }],
15001
- usage: { include: true }
15001
+ usage: { include: true },
15002
+ ...reasoning ? { reasoning } : {}
15002
15003
  }),
15003
15004
  signal: AbortSignal.timeout(timeoutMs)
15004
15005
  });
@@ -15047,7 +15048,7 @@ async function askAboutStills(images, prompt, onSpend) {
15047
15048
  if (!hasOpenRouterKey()) return null;
15048
15049
  return await ask(images, prompt, (usage) => onSpend?.(usage));
15049
15050
  }
15050
- async function askAboutImages(model, images, prompt, onSpend, timeoutMs = 6e4) {
15051
+ async function askAboutImages(model, images, prompt, onSpend, timeoutMs = 6e4, reasoning) {
15051
15052
  if (!hasOpenRouterKey()) return null;
15052
15053
  return await askGateway(
15053
15054
  model,
@@ -15058,7 +15059,8 @@ async function askAboutImages(model, images, prompt, onSpend, timeoutMs = 6e4) {
15058
15059
  )
15059
15060
  ],
15060
15061
  timeoutMs,
15061
- (usage) => onSpend?.(usage)
15062
+ (usage) => onSpend?.(usage),
15063
+ reasoning
15062
15064
  );
15063
15065
  }
15064
15066
  async function askAboutText(model, prompt, onSpend) {
@@ -15222,7 +15224,9 @@ async function readTextBoxes(image, opts = {}) {
15222
15224
  return { status: "not_checked" };
15223
15225
  }
15224
15226
  for (let attempt = 0; attempt < 2; attempt++) {
15225
- const answer = await askAboutImages(TEXT_BOX_READER_MODEL, [jpeg], TEXT_BOX_PROMPT, opts.onSpend);
15227
+ const answer = await askAboutImages(TEXT_BOX_READER_MODEL, [jpeg], TEXT_BOX_PROMPT, opts.onSpend, 6e4, {
15228
+ effort: "minimal"
15229
+ });
15226
15230
  const boxes = textBoxesFromReader(answer);
15227
15231
  if (boxes) return { status: "read", boxes };
15228
15232
  }
@@ -18571,4 +18575,4 @@ export {
18571
18575
  defaultRegistry,
18572
18576
  createEngineFromEnv
18573
18577
  };
18574
- //# sourceMappingURL=chunk-APTNJ2EY.js.map
18578
+ //# sourceMappingURL=chunk-GY352NRN.js.map