eemario opened a new pull request, #1412: URL: https://github.com/apache/flink-agents/pull/1412
Linked issue: #1411 ### Purpose of change Make DashScope Chat and Embedding connections apply their configured request timeout. Agents currently passes `timeout`, but the SDK reads `request_timeout`, leaving the transport at its default (300 seconds in DashScope 1.24.10). #### Runtime flow Connection options and call kwargs → DashScope text/multimodal API → HTTP or WebSocket request timeout. #### Key decisions Use the SDK keyword `request_timeout` and preserve explicit call-level overrides. No duration type migration is needed. ### Behavioral Semantics #### Interaction decisions | Connection setting | Call-level `request_timeout` | Effective timeout | |---|---|---| | Omitted | Omitted | 60 seconds for Chat; 30 for Embedding | | Configured | Omitted | Connection value | | Any | Provided | Call-level value | #### Behavioral contracts Configured fractional seconds reach the SDK transport unchanged for both text and multimodal requests, through HTTP and WebSocket paths. #### Failure behavior Existing validation and SDK exception propagation remain unchanged. The corrected timeout may cause slow requests to time out earlier than when the connection setting was ignored. ### Tests | Contract | Coverage | |---|---| | Connection defaults reach the transport | Default cases in both `test_request_timeout_reaches_sdk_transport` tests | | Fractional connection values reach the transport | 1.25-second cases across text/multimodal and HTTP/WebSocket | | Explicit call overrides remain effective | 2.5-second override cases across the same paths | 89 tests passed across DashScope chat, native structured output, and embedding suites; 4 live integration tests deselected. Ruff and diff checks passed. The 24 new cases use real DashScope 1.24.10 request construction and intercept sending before network I/O. Before the fix, all 16 default/configured cases failed and the 8 override cases passed. Live service calls and elapsed timeout enforcement were not tested. ### API No public signatures, types, units, or declared defaults change. This makes the existing connection timeout configuration effective. ### Documentation - [ ] `doc-needed` - [x] `doc-not-needed` - [ ] `doc-included` ### Was this patch authored or co-authored using generative AI tooling? - [x] Yes - [ ] No Generated-by: Codex CLI 0.167.0-alpha.4.1 (GPT-6) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
