Skip to main content
If you have chosen Microsoft Foundry as your AI provider for Semgrep Multimodal, and you see Error 429 - Max Tokens Exceeded:
1
In Microsoft Foundry, go to your resource’s deployments and select the deployment that Semgrep uses.
2
Edit the deployment and increase its Tokens per Minute Rate Limit to the maximum value.
3
If the error persists, contact Microsoft Azure support to request a quota upgrade.
If you can’t save the endpoint and API key when configuring Semgrep, Semgrep cannot establish a connection with Microsoft Foundry.
  1. Ensure that Resource endpoint is your Foundry resource’s endpoint, such as https://my-resource.services.ai.azure.com, or the target URI of a deployment on that resource.
  2. Verify that your API key belongs to the same resource.
  3. Verify that each Deployment name matches a deployment on the resource exactly.