What is the gateway/edge request timeout that returns the 504 to the client

Site: simplifiedpersonnel-hub (Pro). My analyze function completes successfully at ~45s (visible in function logs, not terminated), but the client receives a 504 well before the function returns. What is the gateway/edge request timeout that returns the 504 to the client, and can it be raised? The function execution limit itself appears to already exceed 26s, so this is specifically about the connection being cut before the completed response reaches the browser.