I’m experiencing the same problem as discussed within this post but the solution isn’t working for me.
Updated with screenshots
I have a local data store containing records with a File ID of each file. I perform a search on the datastore and this retrieves the relevant records I require.
I then use an Array aggregator to populate the records into an array.
As described in the original post, I then call out to OpenAR with the File ID’s mapped as follows:
{{ifempty(map(73.array; “data.ID”))}}{{null}}
This always returns 404 Files were not found from OpenAI. I’ve verified the file ID’s are correct and it works if I pass one file id at a time.
Looking at the input bundle it looks as follows:
[
{
“role”: “user”,
“tools”: [
“retrieval”
],
“fileIds”: [
“file-removed, file-removed, file-removed, file-removed, file-removed, file-removed, file-removed”
],
“message”: “Files for content are attached.”,
“threadId”: “removed”,
“assistantId”: “removed”
}
]
Is it expecting the fieldIds to be formatted as follows with the extra "'s?
"fileIds": [
"file-removed", "file-removed", "file-removed", "file-removed", "file-removed", "file-removed", "file-removed"
],
input-bundle.txt (475 Bytes)
bundle.json (14 Bytes)
Any help gratefully received.