@fabriktor/fx 0.0.179 → 0.0.180

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.
@@ -325,11 +325,6 @@ export function feedObjects(objects) {
325
325
  resource: "feed_object",
326
326
  msg: "Storage did not return a public URL and media type.",
327
327
  });
328
- if (!embedding?.text?.trim())
329
- throw errResolveFailed({
330
- resource: "feed_object",
331
- msg: "Storage did not return caption text for this media.",
332
- });
333
328
  // Generated Feed inputs contain caption content; Feed computes its vector.
334
329
  return feedObjectInput({
335
330
  public_url: object.public_url,
@@ -40,10 +40,10 @@ export function feedObjectInput(object) {
40
40
  public_url: object.public_url,
41
41
  mime_prefix: object.mime_prefix,
42
42
  embedding: {
43
- text: object.embedding.text ?? "",
44
- file: object.embedding.file ?? "",
45
- file_url: object.embedding.file_url ?? "",
46
- mime: object.embedding.mime ?? "",
43
+ text: object.embedding?.text ?? "",
44
+ file: object.embedding?.file ?? "",
45
+ file_url: object.embedding?.file_url ?? "",
46
+ mime: object.embedding?.mime ?? "",
47
47
  },
48
48
  };
49
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/fx",
3
- "version": "0.0.179",
3
+ "version": "0.0.180",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {