Hi @A Aathithya we're sorry to hear you're facing this issue. Could you please provide more details about the size of the request and the expected response from the OpenAI API? Are there any specific limitations or constraints imposed by the API that might be contributing to the timeouts?
A 504 Gateway Timeout error typically indicates that the server failed to process the request within a specific time limit. In your case, the long input length might be contributing to this issue.
Consider upgrading your App Service plan to a higher tier, like Standard or Premium. These tiers offer more resources (CPU, memory, etc.) to handle larger requests. Also, if you're already on a higher tier, you can scale up your app service to allocate more resources to your specific instance