openai-java
openai-java copied to clipboard
The message returned from the conversation is only partial.
The message returned from the conversation is only partial,For example, returning a large block of code cannot be completed.
you should consider altering the token limit of the request, so you get a more complete response. you should maybe also read the API documentation that clearly state this : https://platform.openai.com/docs/api-reference/chat/create#chat-create-max_tokens
basically take a look at ChatCompletionRequest.maxToken()
also the model you use have limits, lookup thoses.