Hello,
I am trying to attach files for use in the code interpreter while creating a new Response object however I am getting an “unknown_parameter” error despite following the exact format of the documentation:
my request:
{
“model”: “gpt-4.1”,
“tools”: [{
“type”: “code_interpreter”,
“container”: {“type”: “auto”, “files”: [“file-RHX729yPuiDrbrjkouw2RH”, “file-JKhgNcpEbLZJz58vYu7iaK”]}
}],
“instructions”: “You are a chatbot that analysis telematics csv files”,
“input”: “What is the average idling duration in minutes?”
}
Response:
{
“error”: {
“message”: “Unknown parameter: ‘tools[0].container.files’.”,
“type”: “invalid_request_error”,
“param”: “tools[0].container.files”,
“code”: “unknown_parameter”
}
}
Documentation shows the following:
““container”: { “type”: “auto”, files: [“file-1”, “file-2”] }”
Any help would be greatly appreciated