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

   # Description
   
   _AI-generated on behalf of atiaomar1978-hub._
   
   Closes the remaining `camel-openai` gaps tracked in 
[CAMEL-24671](https://issues.apache.org/jira/browse/CAMEL-24671) after the 
Responses API work in CAMEL-24670.
   
   ### Changes
   
   1. **Chat-completion multimodal input** — PDF (`file` content part) and 
short audio clips (`input_audio`, WAV/MP3) via 
`OpenAIChatCompletionMultimodalSupport`.
   2. **Diarized transcription** — `diarized_json` handling with optional 
chunking/speaker/keyword/language/include params; re-parses JSON payloads 
returned through the OpenAI Java SDK string handler; exposes 
`CamelOpenAIAudioDiarizedSegments`.
   3. **Audio upload filename inference** — multipart uploads without a usable 
file name infer `audio.wav` / `audio.mp3` from MIME type (basename/path aware).
   4. **GenAI observability + error metadata** — audio 
(transcription/translation/speech), image (generation/edit) and tool-execution 
producers; adds `TRANSCRIPTION` to `GenAiOperationName`.
   
   ### Review follow-ups
   
   - `audioChunkingStrategy` is omitted unless explicitly set (`auto` / `vad` 
only when configured).
   - VAD chunking sends `type=server_vad`.
   - `storeFullResponse=true` stores the reparsed diarized response when 
applicable.
   - Chat `input_audio` accepts WAV/MP3 MIME types only; catalog docs 
regenerated.
   
   ### Tests
   
   ```
   mvn -pl 
components/camel-ai/camel-openai,test-infra/camel-test-infra-openai-mock test \
     
-Dtest=OpenAIChatCompletionMultimodalMockTest,OpenAIAudioTranscriptionDiarizedMockTest,\
   
OpenAIAudioTranscriptionObservabilityTest,OpenAIImageGenerationObservabilityTest,\
   
OpenAIMimeTypeHelperTest,OpenAIVisionBodyTypesMockTest,OpenAIAudioTranscriptionMockTest
   ```
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [ ] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.


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