orchestrated 0.1.32 → 0.1.33

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.
Files changed (3) hide show
  1. package/index.js +13 -3
  2. package/index.js.map +3 -3
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -115283,8 +115283,18 @@ function getEvaluationOptions(name, options, state) {
115283
115283
  batchClient
115284
115284
  });
115285
115285
  } else {
115286
- const OpenAI5 = __require("openai").default;
115287
- openaiClient = merged.openaiClient || new OpenAI5;
115286
+ if (merged.openaiClient) {
115287
+ openaiClient = merged.openaiClient;
115288
+ } else if (batchProcessor === "BEDROCK_OPENAI") {
115289
+ openaiClient = createSyncFallbackClient();
115290
+ if (!openaiClient) {
115291
+ throw new Error(`Bedrock configuration is incomplete for sync execution with batchProcessor=BEDROCK_OPENAI. Required: bedrockRegion, bedrockApiKey, bedrockServiceRoleArn, bedrockModelId.
115292
+ ` + "Provide via state, environment variables (ORCHESTRATED_BEDROCK_*), or Orchestrated.yaml.");
115293
+ }
115294
+ } else {
115295
+ const OpenAI5 = __require("openai").default;
115296
+ openaiClient = new OpenAI5;
115297
+ }
115288
115298
  }
115289
115299
  const onResult = merged.onResult;
115290
115300
  return {
@@ -116118,4 +116128,4 @@ export {
116118
116128
  Behavioral
116119
116129
  };
116120
116130
 
116121
- //# debugId=E69C9539C2C08B5A64756E2164756E21
116131
+ //# debugId=F3E1273F2BB8316964756E2164756E21