I am only starting to kick the tires of the deepagents CLI, so bear with me. I started by hooking into a local model via Ollama and then jumped to openAI 5.4.
My prompt:
>help me summarize this submission @file.pdf
The file existts. This is for ChatGPT 5.4: The error that is thrown
I was able to replicate this error on my machine as well.
This happens when you use OpenAI Environment Default Model, which uses gpt-5.2 but by default we are not using the response API in the cli initiation of the model, which causes the Bad Request error, as the file parameter is only supported in the Response API.