I’m trying to map an image from Tally to chat-gpt. I’m mapping the binary data of the file using the suggested code: {{7.image_data}}, like so:
I keep getting this error, what should I do?
Thank you in advance for any tip.
I’m trying to map an image from Tally to chat-gpt. I’m mapping the binary data of the file using the suggested code: {{7.image_data}}, like so:
I keep getting this error, what should I do?
Thank you in advance for any tip.
Welcome to the Make community!
Looks like you’ve got to map the images as an array in a specific format.
You can try using an Iterator-Aggregator combo trick;
Every result (item/record) from an Iterator module will output a bundle. To “combine” them into a single structure, you’ll need to use an aggregator of some sort.
Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module.
The Array Aggregator module also allows you to build a complex array of collections for a later module’s field to map multiple items (collections) to it.
Here is an example of using the “Target structure type” of an Array Aggregator module:
As you can see, the “Map” toggle on fields are used when you have an array. You can easily build an array variable to map to a field, by using an Array Aggregator module and select the “Target Structure Type” as the future field you want to map the array into.
samliew – request private consultation
Join the unofficial Make Discord server to chat with us!
Hey @Raquel
OpenAI moduel accepts images in an array of filetype and data. As you are mapping single file, , so you need to turn off the map button and select the filetype as “ImageFile” and then map the variable in data field.
Regards,
Msquare Automation - Gold Partner of Make
Visit us here | Youtube Channel