Federico Mariani created CAMEL-24674:
----------------------------------------

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


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)

Reply via email to