File tree Expand file tree Collapse file tree 6 files changed +0
-6
lines changed
openai-azure-java-example/src/main/java/com.openai.azure.examples
openai-java-example/src/main/java/com/openai/example Expand file tree Collapse file tree 6 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,6 @@ OpenAIClient client = clientBuilder.build();
311311ChatCompletionCreateParams params = ChatCompletionCreateParams . builder()
312312 .addMessage(ChatCompletionMessageParam . ofChatCompletionUserMessageParam(
313313 ChatCompletionUserMessageParam . builder()
314- .role(ChatCompletionUserMessageParam . Role . USER )
315314 .content(ChatCompletionUserMessageParam . Content . ofTextContent(" Who won the world series in 2020?" ))
316315 .build()))
317316 .model(" gpt-4o" )
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ public static void main(String[] args) {
3333 ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
3434 .addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
3535 ChatCompletionUserMessageParam .builder ()
36- .role (ChatCompletionUserMessageParam .Role .USER )
3736 .content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
3837 .build ()))
3938 .model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ public static void main(String[] args) {
3434 ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
3535 .addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
3636 ChatCompletionUserMessageParam .builder ()
37- .role (ChatCompletionUserMessageParam .Role .USER )
3837 .content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
3938 .build ()))
4039 .model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ public static void main(String[] args) {
3939 ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
4040 .addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
4141 ChatCompletionUserMessageParam .builder ()
42- .role (ChatCompletionUserMessageParam .Role .USER )
4342 .content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
4443 .build ()))
4544 .model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ public static void main(String[] args) {
3939 ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
4040 .addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
4141 ChatCompletionUserMessageParam .builder ()
42- .role (ChatCompletionUserMessageParam .Role .USER )
4342 .content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
4443 .build ()))
4544 .model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ public static void main(String[] args) {
1515 .maxTokens (1024 )
1616 .addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
1717 ChatCompletionUserMessageParam .builder ()
18- .role (ChatCompletionUserMessageParam .Role .USER )
1918 .content (ChatCompletionUserMessageParam .Content .ofTextContent (
2019 "Tell me a story about building the best SDK!" ))
2120 .build ()))
You can’t perform that action at this time.
0 commit comments