Skip to content

Commit

Permalink
docs: add missing parameter to code snippet (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 4, 2024
1 parent 55f2616 commit 4785151
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,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);
Expand Down

0 comments on commit 4785151

Please sign in to comment.