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] authored Dec 4, 2024
1 parent 7955574 commit f08fc6e
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 @@ -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);
Expand Down

0 comments on commit f08fc6e

Please sign in to comment.