atiaomar1978-hub commented on PR #25337: URL: https://github.com/apache/camel/pull/25337#issuecomment-5194191853
Addressed @davsclaus review feedback in commit `2cbf19a16e9`: 1. **Optional micrometer-core** — marked `<optional>true</optional>` in `camel-ai-observability/pom.xml` so AI users are not forced to pull Micrometer transitively. 2. **`@since 4.22`** — added to `AbstractAgent.getChatModel()` javadoc. 3. **GenAiModelResolver** — replaced fragile class-name substring matching with langchain4j `ModelProvider`, `ChatModel.defaultRequestParameters().modelName()`, and package-prefix fallback; producers now use `ChatResponse.modelName()` for response model. 4. **OpenAI streaming tokens** — enables `stream_options.include_usage` and accumulates usage from the final chunk when recording the observation. Tests: `mvn test -pl components/camel-ai/camel-ai-observability` — 14 passed. _AI-generated comment on behalf of atiaomar1978-hub_ -- 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]
