omp-fabric 1.26.2 → 1.26.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.26.3
4
+
5
+ ### Fixed
6
+
7
+ - The `ignored` report covers every parameter a dialect cannot honour. `count` is honoured by the `images` dialect alone, so `count: 3` through `chat`, `responses`, or `gemini` returned one image and said nothing; a `saveTo` that cannot apply because several images came back was dropped the same way. Both now appear in the result.
8
+
3
9
  ## 1.26.2
4
10
 
5
11
  ### Fixed
@@ -8918,16 +8918,16 @@ var readSourceImage = async (source, cwd) => {
8918
8918
  if (!mimeType) throw new Error(`unsupported or missing image file: ${resolved}`);
8919
8919
  return { data: bytes.toString("base64"), mimeType };
8920
8920
  };
8921
- var ignoredParams = (dialect, aspectRatio, size) => {
8921
+ var ignoredParams = (input) => {
8922
8922
  const ignored = [];
8923
- if (dialect === "chat") {
8924
- if (aspectRatio !== void 0) ignored.push("aspectRatio");
8925
- if (size !== void 0) ignored.push("size");
8926
- return ignored;
8927
- }
8928
- if (dialect === "responses" && aspectRatio !== void 0 && resolveImageSize(aspectRatio, void 0) === void 0) {
8923
+ if (input.dialect === "chat") {
8924
+ if (input.aspectRatio !== void 0) ignored.push("aspectRatio");
8925
+ if (input.size !== void 0) ignored.push("size");
8926
+ } else if (input.dialect === "responses" && input.aspectRatio !== void 0 && resolveImageSize(input.aspectRatio, void 0) === void 0) {
8929
8927
  ignored.push("aspectRatio");
8930
8928
  }
8929
+ if (input.dialect !== "images" && input.count > 1) ignored.push("count");
8930
+ if (input.saveTo !== void 0 && input.returned > 1) ignored.push("saveTo");
8931
8931
  return ignored;
8932
8932
  };
8933
8933
  var transient = (error) => {
@@ -9138,7 +9138,14 @@ var ImageProvider = class {
9138
9138
  `Generated ${written.length} image(s) with ${model.provider}/${model.id} (${dialect}):
9139
9139
  ${written.map((entry) => ` ${entry.path} (${entry.bytes} bytes)`).join("\n")}`
9140
9140
  );
9141
- const ignored = ignoredParams(dialect, aspectRatio, size);
9141
+ const ignored = ignoredParams({
9142
+ dialect,
9143
+ aspectRatio,
9144
+ size,
9145
+ count,
9146
+ saveTo,
9147
+ returned: written.length
9148
+ });
9142
9149
  return {
9143
9150
  ok: true,
9144
9151
  model: `${model.provider}/${model.id}`,