braintrust 0.0.188 → 0.0.190
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 +3 -3
- package/package.json +1 -1
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.
|
|
1239
|
+
version: "0.0.190",
|
|
1240
1240
|
description: "SDK for integrating Braintrust",
|
|
1241
1241
|
repository: {
|
|
1242
1242
|
type: "git",
|
|
@@ -7884,7 +7884,7 @@ function makeFunctionDefinition({
|
|
|
7884
7884
|
}
|
|
7885
7885
|
const objectType = "prompt";
|
|
7886
7886
|
const prompt = func.prompt_data.prompt;
|
|
7887
|
-
const promptContents = prompt.type === "completion" ? `prompt: ${doubleQuote(prompt.content)}` : `messages: ${import_util5.default.inspect(prompt.messages, { depth: null }).trimStart()}`;
|
|
7887
|
+
const promptContents = prompt.type === "completion" ? `prompt: ${doubleQuote(prompt.content)}` : `messages: ${import_util5.default.inspect(prompt.messages, { depth: null, maxStringLength: Infinity }).trimStart()}`;
|
|
7888
7888
|
const rawToolsParsed = prompt.type === "chat" && prompt.tools && prompt.tools.length > 0 ? import_zod4.z.array(import_typespecs4.toolFunctionDefinitionSchema).safeParse(JSON.parse(prompt.tools)) : void 0;
|
|
7889
7889
|
if (rawToolsParsed && !rawToolsParsed.success) {
|
|
7890
7890
|
console.warn(
|
|
@@ -7932,7 +7932,7 @@ async function getPrettierModule() {
|
|
|
7932
7932
|
if (!prettierModule) {
|
|
7933
7933
|
try {
|
|
7934
7934
|
prettierModule = await import("prettier");
|
|
7935
|
-
} catch
|
|
7935
|
+
} catch {
|
|
7936
7936
|
console.warn(
|
|
7937
7937
|
warning(
|
|
7938
7938
|
"Failed to load prettier module. Will not use prettier to format output."
|