@bitfab/sdk 0.28.4 → 0.28.5

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/index.d.cts CHANGED
@@ -1603,7 +1603,7 @@ declare class BitfabFunction {
1603
1603
  /**
1604
1604
  * SDK version from package.json (injected at build time)
1605
1605
  */
1606
- declare const __version__ = "0.28.4";
1606
+ declare const __version__ = "0.28.5";
1607
1607
 
1608
1608
  /**
1609
1609
  * Constants for the Bitfab SDK.
package/dist/index.d.ts CHANGED
@@ -1603,7 +1603,7 @@ declare class BitfabFunction {
1603
1603
  /**
1604
1604
  * SDK version from package.json (injected at build time)
1605
1605
  */
1606
- declare const __version__ = "0.28.4";
1606
+ declare const __version__ = "0.28.5";
1607
1607
 
1608
1608
  /**
1609
1609
  * Constants for the Bitfab SDK.
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  flushTraces,
15
15
  getCurrentSpan,
16
16
  getCurrentTrace
17
- } from "./chunk-3F46BMPM.js";
17
+ } from "./chunk-7UU5L64L.js";
18
18
  import {
19
19
  BITFAB_PROGRESS_PREFIX,
20
20
  BitfabError,
package/dist/node.cjs CHANGED
@@ -673,7 +673,7 @@ registerAsyncLocalStorageClass(
673
673
  );
674
674
 
675
675
  // src/version.generated.ts
676
- var __version__ = "0.28.4";
676
+ var __version__ = "0.28.5";
677
677
 
678
678
  // src/constants.ts
679
679
  var DEFAULT_SERVICE_URL = "https://bitfab.ai";
@@ -1768,17 +1768,24 @@ function generateClientDefinitions(providers) {
1768
1768
  for (const providerDef of providers) {
1769
1769
  for (const model of providerDef.models) {
1770
1770
  const clientName = getClientName(providerDef.provider, model.model);
1771
+ const temperatureOption = supportsTemperatureZero(
1772
+ providerDef.provider,
1773
+ model.model
1774
+ ) ? "\n temperature 0" : "";
1771
1775
  definitions.push(`client<llm> ${clientName} {
1772
1776
  provider ${providerDef.provider}
1773
1777
  options {
1774
1778
  model "${model.model}"
1775
- api_key env.${providerDef.apiKeyEnv}
1779
+ api_key env.${providerDef.apiKeyEnv}${temperatureOption}
1776
1780
  }
1777
1781
  }`);
1778
1782
  }
1779
1783
  }
1780
1784
  return definitions.join("\n\n");
1781
1785
  }
1786
+ function supportsTemperatureZero(provider, model) {
1787
+ return provider === "openai" && (model.startsWith("gpt-4.1") || model.startsWith("gpt-4o"));
1788
+ }
1782
1789
  function withDefaultClients(bamlSource, providers) {
1783
1790
  const hasDefaultClient = bamlSource.includes("client<llm> OpenAI_");
1784
1791
  if (hasDefaultClient) {