orchestrated 0.1.21 → 0.1.23

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/index.js CHANGED
@@ -206343,7 +206343,6 @@ init_zod();
206343
206343
  import { createHash as createHash2 } from "node:crypto";
206344
206344
 
206345
206345
  // src/batch/manager.ts
206346
- init_bedrock_openai_client();
206347
206346
  import { createHash } from "node:crypto";
206348
206347
  import * as fs from "node:fs";
206349
206348
  import * as os from "node:os";
@@ -206477,6 +206476,8 @@ function converseOutputToBatchResult(record2) {
206477
206476
  }
206478
206477
 
206479
206478
  // src/batch/manager.ts
206479
+ init_bedrock_openai_client();
206480
+
206480
206481
  class S3FileManager {
206481
206482
  bucket;
206482
206483
  region;
@@ -206589,7 +206590,7 @@ class BatchClient {
206589
206590
  this.bedrockConfig = opts.bedrock;
206590
206591
  this.s3FileManager = new S3FileManager(opts.bedrock.s3Bucket, opts.bedrock.region);
206591
206592
  this.client = new BedrockOpenAI({
206592
- baseURL: `https://bedrock-mantle.${opts.bedrock.region}.api.aws/v1`,
206593
+ baseURL: `https://bedrock-runtime.${opts.bedrock.region}.amazonaws.com/openai/v1`,
206593
206594
  apiKey: opts.bedrock.apiKey,
206594
206595
  defaultHeaders: {
206595
206596
  "X-Amzn-Bedrock-RoleArn": opts.bedrock.serviceRoleArn,
@@ -207922,8 +207923,9 @@ async function evaluateDataCase(dataCase, evaluator, _ctx, options) {
207922
207923
  id: caseId,
207923
207924
  client: client2
207924
207925
  };
207925
- if (options.execute === "sync" && (options.batchProcessor === "BEDROCK_OPENAI" || options.batchProcessor === "BEDROCK")) {
207926
+ if (options.batchProcessor === "BEDROCK_OPENAI" || options.batchProcessor === "BEDROCK") {
207926
207927
  scorerArgs.model = _ctx.state.bedrockModelId;
207928
+ scorerArgs.maxTokens = 512 * 4;
207927
207929
  }
207928
207930
  const fieldsToExclude = new Set(["state", "ctx", "tags", "id", "client"]);
207929
207931
  const argsForStorage = Object.fromEntries(Object.entries(scorerArgs).filter(([key]) => !fieldsToExclude.has(key)));
@@ -208680,4 +208682,4 @@ export {
208680
208682
  Behavioral
208681
208683
  };
208682
208684
 
208683
- //# debugId=AD205A8029985CD264756E2164756E21
208685
+ //# debugId=66C98E2F34A392C264756E2164756E21