diff --git a/README.md b/README.md index 93a6399..f4d6866 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,10 @@ import com.openai.models.ChatCompletionCreateParams; import java.util.List; ChatCompletionCreateParams params = ChatCompletionCreateParams.builder() + .message(List.of(ChatCompletionMessageParam.ofChatCompletionUserMessageParam(ChatCompletionUserMessageParam.builder() + .content(ChatCompletionUserMessageParam.Content.ofTextContent("Say this is a test")) + .role(ChatCompletionUserMessageParam.Role.user) + .build()))) .model("gpt-4o") .build(); ChatCompletion chatCompletion = client.chat().completions().create(params);