Hi, I’m moving from the chat completion api to the respones api. When referencing a file_id in the request I get the error “openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘Invalid input: Expected context stuffing file type to be a supported format: .pdf but got none.’, ‘type’: ‘invalid_request_error’, ‘param’: ‘input’, ‘code’: None}}”
This is my request
model_name="gpt-5"
response = client.responses.create(
temperature=MODEL_TEMPERATURE,
model=model_name,
text={
"format": {
"type": "json_schema",
"name": "output_response",
"strict": True,
"schema": RESPONSE_SCHEMA
}
},
store=False,
input=[
{
"role": "developer",
"content": prompt
},
{
"role": "user",
"content": [
{"type" : "input_file", "file_id": uploaded_file_id}
]
}
]
)
Am I doing anything wrong here? According to the docs, this should work..