bug: OpenAI API error during object generation: tools is not supported
Description
Taskmaster AI throws an OpenAI API error when attempting to parse a PRD file using the parse_prd command. The issue appears related to the model currently assigned to the research role in the configuration (gpt-4o-search-preview), which does not support the required functionality.
Steps to Reproduce
-
Set the
researchmodel togpt-4o-search-previewin Taskmaster configuration. -
Run the following command:
{ "projectRoot": "c:\\Users\\hugo1\\OneDrive\\Documents\\LIfeID\\lifeid-mobile", "input": "c:\\Users\\hugo1\\OneDrive\\Documents\\LIfeID\\lifeid-mobile\\.taskmaster\\docs\\prd.txt", "output": ".taskmaster/tasks/tasks.json", "force": true } -
Observe the output in the console.
Expected Behavior
Taskmaster should parse the PRD file and output the generated tasks into .taskmaster/tasks/tasks.json without error.
Actual Behavior
Taskmaster fails with the following error:
Error: OpenAI API error during object generation: tools is not supported in this model. For a list of supported models, refer to https://platform.openai.com/docs/guides/function-calling#models-supporting-function-calling.
Screenshots or Logs
Error: OpenAI API error during object generation: tools is not supported in this model.
Environment
- Task Master version: \0.15.0
- Node.js version: \18.20
- Operating system: Windows 11
- IDE: \Windsurf
Additional Context
- The model currently used for
researchisgpt-4o-search-preview. - Switching the
researchmodel togemini-2.5-pro-preview-05-06resolves the issue, suggesting this is a compatibility problem between Taskmaster and specific OpenAI models. - Possibly related to tool/function calling incompatibilities with OpenAI’s newer preview models.
I'm guessing this is more of an enhancement than a bug ?
Try changing research model to o4-mini in your .taskmaster/config.json:
"research": {
"provider": "openai",
"modelId": "o4-mini",
"maxTokens": 64000,
"temperature": 0.1
}
Fixed in 0.18.0