`gpt-5-codex` is unable to use File Search Tool on Vector Stores

If I try to get information from a custom vector store (with code guidelines, patterns, domain knowledge), I get a 400 Bad Request Error with:

openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: “Hosted tool ‘file_search’ is not supported with gpt-5-codex.”, ‘type’: ‘invalid_request_error’, ‘param’: ‘tools’, ‘code’: None}}

Is there a way that in the future, we can use File Search such as with other OpenAI models or this was a business decision to not include this tool?

1 Like