@jaypie/llm 1.2.38 → 1.2.39

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.
@@ -56,8 +56,8 @@ const MODEL = {
56
56
  GEMINI_PRO: "gemini-3.1-pro-preview",
57
57
  // OpenAI
58
58
  GPT: "gpt-5.5",
59
- GPT_MINI: "gpt-5.5-mini",
60
- GPT_NANO: "gpt-5.5-nano",
59
+ GPT_MINI: "gpt-5.4-mini",
60
+ GPT_NANO: "gpt-5.4-nano",
61
61
  // xAI
62
62
  GROK: "grok-latest",
63
63
  };
@@ -2070,8 +2070,7 @@ class BedrockAdapter extends BaseProviderAdapter {
2070
2070
  if (request.system) {
2071
2071
  bedrockRequest.system = [{ text: request.system }];
2072
2072
  }
2073
- if (request.temperature !== undefined &&
2074
- this.supportsTemperature(model)) {
2073
+ if (request.temperature !== undefined && this.supportsTemperature(model)) {
2075
2074
  bedrockRequest.inferenceConfig = {
2076
2075
  ...bedrockRequest.inferenceConfig,
2077
2076
  temperature: request.temperature,
@@ -2212,10 +2211,7 @@ class BedrockAdapter extends BaseProviderAdapter {
2212
2211
  return {
2213
2212
  ...rest,
2214
2213
  toolConfig: {
2215
- tools: [
2216
- ...(rest.toolConfig?.tools ?? []),
2217
- fakeTool,
2218
- ],
2214
+ tools: [...(rest.toolConfig?.tools ?? []), fakeTool],
2219
2215
  },
2220
2216
  };
2221
2217
  }
@@ -2439,7 +2435,8 @@ class BedrockAdapter extends BaseProviderAdapter {
2439
2435
  return this.extractStructuredOutput(response) !== undefined;
2440
2436
  }
2441
2437
  // Fake-tool path: last content block is a structured_output toolUse
2442
- const content = (bedrockResponse.output?.message?.content ?? []);
2438
+ const content = (bedrockResponse.output?.message?.content ??
2439
+ []);
2443
2440
  const last = content[content.length - 1];
2444
2441
  return (!!last &&
2445
2442
  "toolUse" in last &&
@@ -2448,14 +2445,16 @@ class BedrockAdapter extends BaseProviderAdapter {
2448
2445
  extractStructuredOutput(response) {
2449
2446
  const bedrockResponse = response;
2450
2447
  if (bedrockResponse.__jaypieStructuredOutput) {
2451
- const content = (bedrockResponse.output?.message?.content ?? []);
2448
+ const content = (bedrockResponse.output?.message?.content ??
2449
+ []);
2452
2450
  const textBlock = content.find((b) => "text" in b);
2453
2451
  if (!textBlock)
2454
2452
  return undefined;
2455
2453
  return extractJson(textBlock.text);
2456
2454
  }
2457
2455
  // Fake-tool path
2458
- const content = (bedrockResponse.output?.message?.content ?? []);
2456
+ const content = (bedrockResponse.output?.message?.content ??
2457
+ []);
2459
2458
  const last = content[content.length - 1];
2460
2459
  if (last &&
2461
2460
  "toolUse" in last &&