openai4j icon indicating copy to clipboard operation
openai4j copied to clipboard

Support max completion tokens in o-series models

Open chrisetheridge opened this issue 7 months ago • 2 comments

The OpenAI API states that for o-series models, maxTokens is now deprecated. It has been replaced with maxCompletionTokens. However, the ChatCompletionRequest builder only allows for maxTokens:

https://github.com/Lambdua/openai4j/blob/main/api/src/main/java/com/theokanning/openai/completion/chat/ChatCompletionRequest.java

chrisetheridge avatar Mar 23 '25 16:03 chrisetheridge