@shop-os/modelkit 0.3.6 → 0.3.8

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 CHANGED
@@ -929,7 +929,9 @@ var OTHER_MODELS = [
929
929
  },
930
930
  {
931
931
  id: "bg-remove",
932
- aliases: [],
932
+ // Task ids the two emitters report on usage events (trigger-workflows,
933
+ // vibe-triggers); the usage price lookup resolves them to this row.
934
+ aliases: ["prodia-background-remover", "prodia-remove-background"],
933
935
  label: "Background Remover",
934
936
  type: "bg-remove",
935
937
  adapter: "prodia",
@@ -6868,6 +6870,7 @@ var openaiImageAdapter = {
6868
6870
 
6869
6871
  // src/adapters/prodia.ts
6870
6872
  var PRODIA_JOB_URL = "https://inference.prodia.com/v2/job";
6873
+ var FLUX_2_PRO_T2I_JOB = "inference.flux-2.pro.txt2img.v1";
6871
6874
  var FLUX_2_PRO_JOB = "inference.flux-2.pro.img2img.v1";
6872
6875
  var FLUX_KLEIN_T2I_JOB = "inference.flux-2.klein.txt2img.v1";
6873
6876
  var FLUX_KLEIN_I2I_JOB = "inference.flux-2.klein.img2img.v1";
@@ -7040,7 +7043,7 @@ async function generateProdiaImage(req, ctx) {
7040
7043
  safety_tolerance: 5
7041
7044
  };
7042
7045
  if (req.seed !== void 0) config.seed = req.seed;
7043
- job = { type: FLUX_2_PRO_JOB, config };
7046
+ job = { type: refs.length > 0 ? FLUX_2_PRO_JOB : FLUX_2_PRO_T2I_JOB, config };
7044
7047
  inputs = refs;
7045
7048
  accept = "image/png";
7046
7049
  mime = "image/png";