atiaomar1978-hub commented on PR #24900:
URL: https://github.com/apache/camel/pull/24900#issuecomment-5012860735

   ## CAMEL-23968 — OpenAI SDK client options
   
   Two commits on `CAMEL-23968-openai-client-options`:
   
   ### Main change (`72b2285`)
   Exposes three OpenAI Java SDK client knobs in `camel-openai`:
   
   | Option | Default | Behavior |
   |--------|---------|----------|
   | `requestTimeout` | `0` | HTTP timeout in ms; `> 0` → 
`builder.timeout(...)`; otherwise SDK default (~10 min) |
   | `maxRetries` | `2` | Passed to `builder.maxRetries(...)` |
   | `additionalHeader.<name>` | — | Multi-value headers (e.g. Azure org/key); 
`builder.putHeader(...)` |
   
   **Wiring:** `OpenAIEndpoint.configureHttpClient()` runs from 
`createClient()`.
   
   **Files:** `OpenAIConfiguration.java`, `OpenAIEndpoint.java`, new 
`OpenAIClientConfigurationTest.java` (8 tests), regenerated `openai.json` + 
endpoint configurer/uri factory.
   
   ### Follow-up (`789f84b`)
   Review feedback:
   - Javadoc on test helper `clientOptions()` — notes reflection on SDK private 
field `clientOptions` (fragile if SDK renames it)
   - `requestTimeout` docs — negative values treated like `0` (SDK default)
   
   ### Verification
   - **102/102** tests passed in `camel-openai`


-- 
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]

Reply via email to