@shop-os/modelkit 0.3.6 → 0.3.7

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
@@ -6751,6 +6751,7 @@ var openaiImageAdapter = {
6751
6751
 
6752
6752
  // src/adapters/prodia.ts
6753
6753
  var PRODIA_JOB_URL = "https://inference.prodia.com/v2/job";
6754
+ var FLUX_2_PRO_T2I_JOB = "inference.flux-2.pro.txt2img.v1";
6754
6755
  var FLUX_2_PRO_JOB = "inference.flux-2.pro.img2img.v1";
6755
6756
  var FLUX_KLEIN_T2I_JOB = "inference.flux-2.klein.txt2img.v1";
6756
6757
  var FLUX_KLEIN_I2I_JOB = "inference.flux-2.klein.img2img.v1";
@@ -6923,7 +6924,7 @@ async function generateProdiaImage(req, ctx) {
6923
6924
  safety_tolerance: 5
6924
6925
  };
6925
6926
  if (req.seed !== void 0) config.seed = req.seed;
6926
- job = { type: FLUX_2_PRO_JOB, config };
6927
+ job = { type: refs.length > 0 ? FLUX_2_PRO_JOB : FLUX_2_PRO_T2I_JOB, config };
6927
6928
  inputs = refs;
6928
6929
  accept = "image/png";
6929
6930
  mime = "image/png";