atiaomar1978-hub opened a new pull request, #26106:
URL: https://github.com/apache/camel/pull/26106

   ## Summary
   
   Follow-up to CAMEL-23861 / 
[CAMEL-24559](https://issues.apache.org/jira/browse/CAMEL-24559): extend GenAI 
observability to additional OpenAI producer operations beyond `chat-completion`.
   
   This PR instruments **OpenAI embeddings, moderation, and responses** with 
the existing `GenAiObservability` API.
   
   | Operation | `gen_ai.operation.name` |
   |-----------|-------------------------|
   | `openai:embeddings` | `embeddings` |
   | `openai:moderation` | `moderation` (Camel extension) |
   | `openai:responses` | `chat` |
   | `openai:chat-completion` | `chat` (unchanged) |
   
   ## Changes
   
   - Instrument `OpenAIEmbeddingsProducer`, `OpenAIModerationProducer`, 
`OpenAIResponsesProducer`
   - Add `GenAiOperationName.MODERATION`
   - Tests: `OpenAIEmbeddingsObservabilityTest`, 
`OpenAIModerationObservabilityTest`, `OpenAIResponsesObservabilityTest`
   - Docs: `ai-observability.adoc`, catalog mirror, 4.23 upgrade guide
   
   ## Test plan
   
   ```bash
   ./mvnw -pl components/camel-ai/camel-openai -am test 
-Dtest=OpenAIEmbeddingsObservabilityTest,OpenAIModerationObservabilityTest,OpenAIResponsesObservabilityTest
   ```
   
   Images, audio, Spring AI modules, and cloud LLMs remain for future 
CAMEL-24559 follow-ups.
   
   ---
   _AI-generated PR description 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]

Reply via email to