package com.vincent.rsf.ai.gateway.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration public class WebAsyncConfig implements WebMvcConfigurer { @Override public void configureAsyncSupport(AsyncSupportConfigurer configurer) { // StreamingResponseBody is used for long-lived model streams; disable the MVC async timeout. configurer.setDefaultTimeout(0L); } }