triangle-utils 1.4.143 → 1.4.145

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.
@@ -57,7 +57,7 @@ export class UtilsBedrock {
57
57
  output_config: output_config
58
58
  };
59
59
  if (verbosity > 1) {
60
- console.log(request);
60
+ console.log(JSON.stringify(request, undefined, 4));
61
61
  }
62
62
  const response = await this.anthropic_bedrock_mantle.messages.create(request);
63
63
  const usage = response.usage;
@@ -65,7 +65,7 @@ export class UtilsBedrock {
65
65
  console.log(usage);
66
66
  }
67
67
  if (verbosity > 1) {
68
- console.log(response.content);
68
+ console.log(JSON.stringify(response.content, undefined, 4));
69
69
  }
70
70
  const text = response.content.filter(content => content.type === "text")[0].text;
71
71
  return text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.143",
3
+ "version": "1.4.145",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -78,7 +78,7 @@ export class UtilsBedrock {
78
78
  output_config : output_config
79
79
  }
80
80
  if (verbosity > 1) {
81
- console.log(request)
81
+ console.log(JSON.stringify(request, undefined, 4))
82
82
  }
83
83
  const response = await this.anthropic_bedrock_mantle.messages.create(request)
84
84
 
@@ -87,7 +87,7 @@ export class UtilsBedrock {
87
87
  console.log(usage)
88
88
  }
89
89
  if (verbosity > 1) {
90
- console.log(response.content)
90
+ console.log(JSON.stringify(response.content, undefined, 4))
91
91
  }
92
92
  const text = response.content.filter(content => content.type === "text")[0].text
93
93
  return text