@ghostspeak/plugin-gateway-ghost 0.1.0 → 0.1.1

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.js CHANGED
@@ -10701,7 +10701,7 @@ function createTextEmbeddingHandler(config) {
10701
10701
  text2 = embedParams.text;
10702
10702
  }
10703
10703
  if (!text2 || text2.trim().length === 0) {
10704
- throw new Error("Text cannot be empty for embedding");
10704
+ return new Array(3072).fill(0);
10705
10705
  }
10706
10706
  const model = getEmbeddingModel(config, config.AI_GATEWAY_EMBEDDING_MODEL);
10707
10707
  const result = await embed({
@@ -11429,5 +11429,5 @@ export {
11429
11429
  AIGatewayError
11430
11430
  };
11431
11431
 
11432
- //# debugId=45F177DC8C0D5C9264756E2164756E21
11432
+ //# debugId=ACCB992F3D6D8F7064756E2164756E21
11433
11433
  //# sourceMappingURL=index.js.map