## The problem

Reported in Semantic Kernel: Python: Function Calling Error when Using APIM Managed Azure OpenAI.

## The fix

[fbinotto (commenter)]: If function calling fails with a 400 through Azure APIM, check the azure-openai-token-limit policy: estimate-prompt-tokens must be set to false. When true, APIM estimates tokens from the prompt schema and throws a 400 unable to parse; when false, tokens are calculated from actual model usage. Both reporters confirmed function calling works after the change.