orchestrated 0.1.22 → 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 +5 -4
- package/index.js.map +4 -4
- package/package.json +1 -1
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-
|
|
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,7 +207923,7 @@ async function evaluateDataCase(dataCase, evaluator, _ctx, options) {
|
|
|
207922
207923
|
id: caseId,
|
|
207923
207924
|
client: client2
|
|
207924
207925
|
};
|
|
207925
|
-
if (options.
|
|
207926
|
+
if (options.batchProcessor === "BEDROCK_OPENAI" || options.batchProcessor === "BEDROCK") {
|
|
207926
207927
|
scorerArgs.model = _ctx.state.bedrockModelId;
|
|
207927
207928
|
scorerArgs.maxTokens = 512 * 4;
|
|
207928
207929
|
}
|
|
@@ -208681,4 +208682,4 @@ export {
|
|
|
208681
208682
|
Behavioral
|
|
208682
208683
|
};
|
|
208683
208684
|
|
|
208684
|
-
//# debugId=
|
|
208685
|
+
//# debugId=66C98E2F34A392C264756E2164756E21
|