Can one make multiple concurrent calls to the same Azure OpenAI Endpoint?

Stawsh Murawski 5 Reputation points
2024-10-15T17:47:20.67+00:00

Can one make multiple concurrent calls to the same Azure OpenAI Endpoint? We have a two web apps that use Azure OpenAI, make API calls from Python. This concurrent call would happen when a second user of our application takes an action for which our app calls Azure OpenAI, or an OpenAI API, while the call from the first instance has not yet returned. This second user might be running in the same AppServer instance, or another parallel instance, or an instance of our second application.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,082 questions
Azure | Azure Startups
{count} vote

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,676 Reputation points Moderator
    2024-10-15T20:16:54.24+00:00

    Hello @Stawsh Murawski , Thanks for using Microsoft Q&A Platform.

    Yes, you can make the concurrent calls to the Azure OpenAI Endpoint. However, the maximum number of concurrent executions is going to be limited by capacity (Tokens-per-Minute (TPM).

    Please note that there are rate limits imposed by Azure OpenAI. These limits define the maximum number of requests you can make within a certain time frame. Exceeding these limits might result in throttling or errors.

    You can refer to the quota limits here: https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits

    Your use-case looks similar to Multi-Agent Systems functionality. With the Azure Assistant API, you can create multi-agent systems that are persistent and infinitely long, and append messages as users interact, all while the Assistant accesses files and tools in parallel, including a Code Interpreter and function calling capabilities.

    Here is the documentation you can refer to: https://github.com/Azure-Samples/azureai-samples/tree/main/scenarios/Assistants/multi-agent

    I hope this helps.

    Regards,

    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.