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

bug: Error: Azure OpenAI API error

Open xiaotang-12-ops opened this issue 5 months ago • 6 comments

"I'm sure the model name 'gpt-4.1' and the URL are correct, but it's still throwing an error and I don't understand why.

Image

xiaotang-12-ops avatar Jul 16 '25 06:07 xiaotang-12-ops

Following the official recommendation, I updated Task Master to version 0.2 in Cursor, but I'm still unable to successfully invoke mcp

xiaotang-12-ops avatar Jul 16 '25 06:07 xiaotang-12-ops

Can I see your config.json

Crunchyman-ralph avatar Jul 17 '25 05:07 Crunchyman-ralph

我可以看看你的 config.json 吗

{ "models": { "main": { "provider": "azure", "modelId": "gpt-4.1", "maxTokens": 64000, "temperature": 0.2 }, "research": { "provider": "azure", "modelId": "gpt-4.1", "maxTokens": 8700, "temperature": 0.1 }, "fallback": { "provider": "azure", "modelId": "gpt-4.1", "maxTokens": 8192, "temperature": 0.2 } }, "global": { "logLevel": "info", "debug": false, "defaultNumTasks": 10, "defaultSubtasks": 5, "defaultPriority": "medium", "projectName": "Task Master", "ollamaBaseURL": "http://localhost:11434/api", "bedrockBaseURL": "https://bedrock.us-east-1.amazonaws.com", "responseLanguage": "English", "defaultTag": "master", "azureBaseURL": "https://admin-m9jmde1e-eastus2.cognitiveservices.azure.com/", "userId": "1234567890" }, "claudeCode": {} }

xiaotang-12-ops avatar Jul 17 '25 06:07 xiaotang-12-ops

Hello, @xiaotang-12-ops : are you sure the name is "azureBaseURL", I have "azureOpenaiBaseURL" on my side... @Crunchyman-ralph : can you confirm please ? I'm using azure openai models, I don't find how to make it works... some help ? Thank you by advance.

UPDATE: Finally I take URI cible of the model (not the ai service) and remove the end of URI into /deployments and use it config.json EX: https://xxxxxxxxxxxxxxx.openai.azure.com/openai/deployments

chaclay avatar Jul 23 '25 19:07 chaclay

你好, @xiaotang-12-ops:你确定名字是“azureBaseURL”吗,我这边有“azureOpenaiBaseURL”...... @Crunchyman-ralph:请问您能确认一下吗? 我正在使用 Azure OpenAI 模型,但不知道该如何操作……能帮忙吗? 提前谢谢您。

更新: 最后我采用模型的 URI 定义(不是 ai 服务)并将 URI 的末尾删除到 /deployments 中并使用它 config.json EX:https://xxxxxxxxxxxxxxx.openai.azure.com/openai/deployments

I haven't been successful either, nor have I waited for an official reply from me

xiaotang-12-ops avatar Jul 24 '25 00:07 xiaotang-12-ops

Found 3 possible duplicate issues:

  1. https://github.com/eyaltoledano/claude-task-master/issues/638
  2. https://github.com/eyaltoledano/claude-task-master/issues/627
  3. https://github.com/eyaltoledano/claude-task-master/issues/816

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with [Task Master Bot]

github-actions[bot] avatar Aug 28 '25 14:08 github-actions[bot]

@xiaotang-12-ops closing this for now, if anyone can create a post on the taskmaster discord in the #troubleshooting channel that way we can debug and hop on a call and solve together since I don't have an azure account, I would have to test my fixes with someone who does have an azure account.

Crunchyman-ralph avatar Dec 10 '25 10:12 Crunchyman-ralph