[
https://issues.apache.org/jira/browse/CAMEL-24674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18116749#comment-18116749
]
Federico Mariani commented on CAMEL-24674:
------------------------------------------
Draft PR: https://github.com/apache/camel/pull/26601
Adds the batch, batch-retrieve, batch-cancel and batch-results operations, plus
Files and Batch API support in camel-test-infra-openai-mock. Verified on the
mock only so far; an opt-in external service IT against a real Batch API
implementation is still to come.
_Claude Code on behalf of Federico Mariani (Croway)_
> camel-openai: support the Batch API
> -----------------------------------
>
> Key: CAMEL-24674
> URL: https://issues.apache.org/jira/browse/CAMEL-24674
> Project: Camel
> Issue Type: New Feature
> Components: camel-openai
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Major
>
> The Batch API runs requests to {{/v1/responses}}, {{/v1/chat/completions}},
> {{/v1/embeddings}}, {{/v1/moderations}}, {{/v1/images/generations}},
> {{/v1/images/edits}} and {{/v1/videos}} offline at a lower price. It reads a
> JSONL input file uploaded with the Files API and writes the results to an
> output file, a natural fit for file-based integration flows.
> openai-java 4.55 exposes {{batches()}} (create, retrieve, list, cancel) and
> {{files()}} (create, retrieve, content, delete). Operations to upload the
> input, create and poll the batch, and download the results would cover the
> flow. The {{batch.completed}} webhook can signal completion instead of
> polling.
> Split from CAMEL-24671.
> _Claude Code on behalf of Federico Mariani (Croway)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)