braintrust 0.0.168 → 0.0.169

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/browser.js CHANGED
@@ -3435,7 +3435,7 @@ var Prompt = class {
3435
3435
  };
3436
3436
  } else if (flavor === "completion") {
3437
3437
  if (prompt.type !== "completion") {
3438
- throw new Error("Prompt is a chat prompt. Use buildChat() instead");
3438
+ throw new Error(`Prompt is a chat prompt. Use flavor: 'chat' instead`);
3439
3439
  }
3440
3440
  if (options.messages) {
3441
3441
  throw new Error(
package/dist/browser.mjs CHANGED
@@ -3384,7 +3384,7 @@ var Prompt = class {
3384
3384
  };
3385
3385
  } else if (flavor === "completion") {
3386
3386
  if (prompt.type !== "completion") {
3387
- throw new Error("Prompt is a chat prompt. Use buildChat() instead");
3387
+ throw new Error(`Prompt is a chat prompt. Use flavor: 'chat' instead`);
3388
3388
  }
3389
3389
  if (options.messages) {
3390
3390
  throw new Error(
package/dist/cli.js CHANGED
@@ -1236,7 +1236,7 @@ var require_package = __commonJS({
1236
1236
  "package.json"(exports2, module2) {
1237
1237
  module2.exports = {
1238
1238
  name: "braintrust",
1239
- version: "0.0.168",
1239
+ version: "0.0.169",
1240
1240
  description: "SDK for integrating Braintrust",
1241
1241
  repository: {
1242
1242
  type: "git",
@@ -1311,7 +1311,7 @@ var require_package = __commonJS({
1311
1311
  },
1312
1312
  dependencies: {
1313
1313
  "@ai-sdk/provider": "^0.0.11",
1314
- "@braintrust/core": "0.0.64",
1314
+ "@braintrust/core": "0.0.65",
1315
1315
  "@next/env": "^14.2.3",
1316
1316
  "@vercel/functions": "^1.0.2",
1317
1317
  ai: "^3.2.16",
@@ -4405,7 +4405,7 @@ var Prompt = class {
4405
4405
  };
4406
4406
  } else if (flavor === "completion") {
4407
4407
  if (prompt.type !== "completion") {
4408
- throw new Error("Prompt is a chat prompt. Use buildChat() instead");
4408
+ throw new Error(`Prompt is a chat prompt. Use flavor: 'chat' instead`);
4409
4409
  }
4410
4410
  if (options.messages) {
4411
4411
  throw new Error(
package/dist/index.js CHANGED
@@ -3668,7 +3668,7 @@ var Prompt = class {
3668
3668
  };
3669
3669
  } else if (flavor === "completion") {
3670
3670
  if (prompt.type !== "completion") {
3671
- throw new Error("Prompt is a chat prompt. Use buildChat() instead");
3671
+ throw new Error(`Prompt is a chat prompt. Use flavor: 'chat' instead`);
3672
3672
  }
3673
3673
  if (options.messages) {
3674
3674
  throw new Error(
package/dist/index.mjs CHANGED
@@ -3603,7 +3603,7 @@ var Prompt = class {
3603
3603
  };
3604
3604
  } else if (flavor === "completion") {
3605
3605
  if (prompt.type !== "completion") {
3606
- throw new Error("Prompt is a chat prompt. Use buildChat() instead");
3606
+ throw new Error(`Prompt is a chat prompt. Use flavor: 'chat' instead`);
3607
3607
  }
3608
3608
  if (options.messages) {
3609
3609
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braintrust",
3
- "version": "0.0.168",
3
+ "version": "0.0.169",
4
4
  "description": "SDK for integrating Braintrust",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@ai-sdk/provider": "^0.0.11",
78
- "@braintrust/core": "0.0.64",
78
+ "@braintrust/core": "0.0.65",
79
79
  "@next/env": "^14.2.3",
80
80
  "@vercel/functions": "^1.0.2",
81
81
  "ai": "^3.2.16",