claude-task-master icon indicating copy to clipboard operation
claude-task-master copied to clipboard

bug: OpenAI API error during object generation: tools is not supported

Open Ranteck opened this issue 7 months ago • 1 comments

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

  1. Set the research model to gpt-4o-search-preview in Taskmaster configuration.

  2. 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
    }
    
  3. 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 research is gpt-4o-search-preview.
  • Switching the research model to gemini-2.5-pro-preview-05-06 resolves 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.

Ranteck avatar Jun 02 '25 13:06 Ranteck

I'm guessing this is more of an enhancement than a bug ?

Crunchyman-ralph avatar Jun 03 '25 12:06 Crunchyman-ralph

Try changing research model to o4-mini in your .taskmaster/config.json:

"research": {
  "provider": "openai",
  "modelId": "o4-mini",
  "maxTokens": 64000,
  "temperature": 0.1
}

mateus4k avatar Jun 24 '25 15:06 mateus4k

Fixed in 0.18.0

Crunchyman-ralph avatar Jun 24 '25 15:06 Crunchyman-ralph