opencode icon indicating copy to clipboard operation
opencode copied to clipboard

GPT-5 Not working on Azure - Functions not supported

Open obiMadu opened this issue 1 year ago • 5 comments

Image

obiMadu avatar Aug 14 '25 00:08 obiMadu

👋 This issue might be a duplicate of existing issues. Please check:

  • #1697: BUG: gpt-5 azure Unsupported parameter: 'max_tokens' - Reports Azure GPT-5 parameter compatibility issues
  • #1742: Bug: Unknown parameter: 'reasoningEffort'. Did you mean 'reasoning_effort'? - Similar Azure GPT-5 parameter issues
  • #1823: Reasoning effort from opencode.json not passed through for Azure models - Azure-specific parameter handling problems
  • #441: Invalid Schema errors on Azure OpenAI Models - General Azure OpenAI schema/function support issues

If none of these address your specific case, please let us know how this issue differs.

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

Nope, it doesn't relate to any of these. This is a different 'functions with gpt5-chat' error

obiMadu avatar Aug 14 '25 00:08 obiMadu

The gpt-5-chat model does not support function calling. You need gpt-5 or mini or nano. See https://learn.microsoft.com/en-us/azure/ai-foundry/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-5

hkrutzer avatar Aug 17 '25 09:08 hkrutzer

thank you @hkrutzer

rekram1-node avatar Aug 17 '25 13:08 rekram1-node

closing since Azure docs say this is expected

rekram1-node avatar Aug 17 '25 13:08 rekram1-node