@firebase/ai 2.1.0-canary.84b8bed35 → 2.1.0-canary.9b63cd60e

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/dist/index.cjs.js CHANGED
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
8
8
  var logger$1 = require('@firebase/logger');
9
9
 
10
10
  var name = "@firebase/ai";
11
- var version = "2.1.0-canary.84b8bed35";
11
+ var version = "2.1.0-canary.9b63cd60e";
12
12
 
13
13
  /**
14
14
  * @license
@@ -1329,7 +1329,7 @@ async function handlePredictResponse(response) {
1329
1329
  });
1330
1330
  }
1331
1331
  else {
1332
- throw new AIError(AIErrorCode.RESPONSE_ERROR, `Unexpected element in 'predictions' array in response: '${JSON.stringify(prediction)}'`);
1332
+ throw new AIError(AIErrorCode.RESPONSE_ERROR, `Predictions array in response has missing properties. Response: ${JSON.stringify(responseJson)}`);
1333
1333
  }
1334
1334
  }
1335
1335
  return { images, filteredReason };