Lambdua / openai4j

Java client library for OpenAI API.Full support for all OpenAI API models including Completions, Chat, Edits, Embeddings, Audio, Files, Assistants-v2, Images, Moderations, Batch, and Fine-tuning.
MIT License
303 stars 25 forks source link

parallel_tool_calls parameter support in Assistants and Chat Completions APIs #36

Closed propertius closed 4 months ago

propertius commented 4 months ago

Please add support for the new parameter parallel_tool_calls (see https://community.openai.com/t/new-api-feature-disable-parallel-function-calling-via-parallel-tool-calls-false/805405, https://platform.openai.com/docs/api-reference/runs/createThreadAndRun and https://platform.openai.com/docs/api-reference/chat/create).

Lambdua commented 4 months ago

The latest version is currently supported, but some problems have occurred. It will be available in the next version soon after it is fixed.

propertius commented 4 months ago

Hi @Lambdua, I have the latest version of your library (0.20.9) and I cannot define whether tool calls are to be made parallel. The same applies for the ChatCompletionRequest.

var runRequest = RunCreateRequest.builder()
                .assistantId(assistantId)
                .parallelToolCalls(false) // not yet implemented
                .build();
Lambdua commented 4 months ago

0.21.0 will support