atiaomar1978-hub opened a new pull request, #24900: URL: https://github.com/apache/camel/pull/24900
**CAMEL-23968**. ## Issue [CAMEL-23968](https://issues.apache.org/jira/browse/CAMEL-23968) — expose OpenAI SDK client `requestTimeout`, `maxRetries`, and `additionalHeader.*` in `camel-openai`. ## Changes | Option | Wiring | |--------|--------| | `requestTimeout` (ms, default `0` = SDK 10 min) | `builder.timeout(Duration.ofMillis(...))` | | `maxRetries` (default `2`) | `builder.maxRetries(...)` | | `additionalHeader.<name>` (multi-value, `security=secret`) | `builder.putHeader(name, value)` | Applied once in `createClient()` via new `configureHttpClient()` method. ## Tests — `OpenAIClientConfigurationTest` (8 tests) - Defaults and URI parsing - Request timeout applied / SDK default when `0` - Max retries (`0` and `5`) - Additional headers on `ClientOptions` - Null header values skipped - HTTP headers verified on wire via mock (`OpenAI-Organization`, `api-key`) **Full module:** `102/102` passed (`mvn test` on `camel-openai`) ## Git - **Branch:** `CAMEL-23968-openai-client-options` - **Commit:** `72b2285c658` -- 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]
