@vargai/gateway 0.1.3 → 0.1.4
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 +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14200,6 +14200,9 @@ class VargImageModel {
|
|
|
14200
14200
|
};
|
|
14201
14201
|
if (options.aspectRatio)
|
|
14202
14202
|
params.aspect_ratio = options.aspectRatio;
|
|
14203
|
+
if (options.files && options.files.length > 0) {
|
|
14204
|
+
params.files = options.files.filter((f) => f.type === "url").map((f) => ({ url: f.url }));
|
|
14205
|
+
}
|
|
14203
14206
|
if (options.providerOptions?.varg) {
|
|
14204
14207
|
params.provider_options = options.providerOptions.varg;
|
|
14205
14208
|
}
|