You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Plus-L (via GitHub)" <gi...@apache.org> on 2025/05/12 07:30:26 UTC

[I] feat: Split timeout Field into Separate Configurations for Streaming and Non-Streaming Modes in ai-proxy-multi Plugin [apisix]

Plus-L opened a new issue, #12203:
URL: https://github.com/apache/apisix/issues/12203

   ### Description
   
   Hello!
   
   In the ai-proxy-multi plugin, the 'timeout' field currently controls both streaming and non-streaming request timeouts. However, the timeout calculation differs significantly between these two modes:
   
   Streaming mode: Timeout is measured between consecutive data chunks
   Non-streaming mode: Timeout is measured for the entire response payload
   
   This unified timeout approach creates several issues:
   
   Non-streaming requests (e.g., Resoning LLMs) often require much longer timeouts (minutes in some cases, But the maximum timeout in the plugin is 60s)
   It's impossible to optimize timeout values for both modes simultaneously
   
   Proposal:
   I suggest splitting the timeout field into two separate configuration options:
   
   streaming_timeout: Controls the maximum time between consecutive data chunks in streaming mode
   non_streaming_timeout: Controls the maximum time for the entire response in non-streaming mode
   
   Best regards


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] feat: Split timeout Field into Separate Configurations for Streaming and Non-Streaming Modes in ai-proxy-multi Plugin [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12203:
URL: https://github.com/apache/apisix/issues/12203#issuecomment-4009974838

   Duplicate of https://github.com/apache/apisix/issues/12072


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] feat: Split timeout Field into Separate Configurations for Streaming and Non-Streaming Modes in ai-proxy-multi Plugin [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop closed issue #12203: feat: Split timeout Field into Separate Configurations for Streaming and Non-Streaming Modes in ai-proxy-multi Plugin
URL: https://github.com/apache/apisix/issues/12203


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org