@wix/evalforge-evaluator 0.151.0 → 0.153.0

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/build/index.js CHANGED
@@ -3835,6 +3835,12 @@ async function executeWithAiSdk(context) {
3835
3835
  llmTrace,
3836
3836
  conversation
3837
3837
  };
3838
+ } catch (err) {
3839
+ const baseMsg = err instanceof Error ? err.message : String(err);
3840
+ throw new Error(
3841
+ `AI gateway request failed (provider=${provider}, model=${modelId}): ${baseMsg}`,
3842
+ { cause: err }
3843
+ );
3838
3844
  } finally {
3839
3845
  await closeMcpClients(clients);
3840
3846
  }