@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.js CHANGED
@@ -810,7 +810,9 @@ var OTHER_MODELS = [
810
810
  },
811
811
  {
812
812
  id: "bg-remove",
813
- aliases: [],
813
+ // Task ids the two emitters report on usage events (trigger-workflows,
814
+ // vibe-triggers); the usage price lookup resolves them to this row.
815
+ aliases: ["prodia-background-remover", "prodia-remove-background"],
814
816
  label: "Background Remover",
815
817
  type: "bg-remove",
816
818
  adapter: "prodia",
@@ -6751,6 +6753,7 @@ var openaiImageAdapter = {
6751
6753
 
6752
6754
  // src/adapters/prodia.ts
6753
6755
  var PRODIA_JOB_URL = "https://inference.prodia.com/v2/job";
6756
+ var FLUX_2_PRO_T2I_JOB = "inference.flux-2.pro.txt2img.v1";
6754
6757
  var FLUX_2_PRO_JOB = "inference.flux-2.pro.img2img.v1";
6755
6758
  var FLUX_KLEIN_T2I_JOB = "inference.flux-2.klein.txt2img.v1";
6756
6759
  var FLUX_KLEIN_I2I_JOB = "inference.flux-2.klein.img2img.v1";
@@ -6923,7 +6926,7 @@ async function generateProdiaImage(req, ctx) {
6923
6926
  safety_tolerance: 5
6924
6927
  };
6925
6928
  if (req.seed !== void 0) config.seed = req.seed;
6926
- job = { type: FLUX_2_PRO_JOB, config };
6929
+ job = { type: refs.length > 0 ? FLUX_2_PRO_JOB : FLUX_2_PRO_T2I_JOB, config };
6927
6930
  inputs = refs;
6928
6931
  accept = "image/png";
6929
6932
  mime = "image/png";