Currently, the Azure AI Language service for text summarization primarily operates in an asynchronous mode, as you've noted. The typical workflow involves making a POST request to initiate the summarization process, which returns an "operation-location" that you must use in a subsequent GET request to retrieve the results. Unfortunately, the documentation does not provide a synchronous method for obtaining summaries directly.
For shorter texts, while the asynchronous approach may seem less ideal, it is the only supported method at this time. If you are looking for a synchronous-like experience, you might consider implementing a polling mechanism that checks the status of the operation immediately after the POST request, but this would still be fundamentally asynchronous.
If you need immediate results for very short texts, you might explore alternative summarization libraries or services that support synchronous calls, but these would not be part of the Azure AI Language service offerings.
References: