We are experiencing an issue when calling a custom Action (createMap) that requires openaiFileIdRefs.
Expected Behavior
According to the documentation:
https://developers.openai.com/api/docs/actions/sending-files
When providing a local file path (e.g. /mnt/data/output.html) in the Action call, the runtime should automatically transform it into a file reference object:
{
"name": "...",
"id": "...",
"mime_type": "...",
"download_link": "..."
}
This object should be injected into openaiFileIdRefs.
Actual Behavior
- When calling:
"openaiFileIdRefs": []
The API correctly fails schema validation:
[] should be non-empty
- When calling:
"openaiFileIdRefs": ["/mnt/data/output.html"]
The request fails with:
AssertionError
The runtime does not:
-
Auto-populate file metadata
-
Transform the local path into a file object
-
Inject the required
name,id,mime_type,download_link
Environment Details
-
File exists in sandbox:
/mnt/data/output.html -
File ID is generated (visible in system logs)
-
Action schema requires:
openaiFileIdRefs: {
type: "array",
minItems: 1,
items: {
name: string,
id: string,
mime_type: string,
download_link: string
}
}
The Action cannot succeed because the runtime does not bind the file reference into the payload.
Summary
The publishing capability itself is functional, but:
-
File reference injection into
openaiFileIdRefsis not working. -
The runtime is not transforming sandbox paths into file objects as described in the documentation.
-
This blocks all file-based Action calls.
Please advise whether:
-
The transformation behavior has changed,
-
A different payload format is now required,
-
Or this is a regression in the Actions runtime.