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
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();
311
311
ChatCompletionCreateParams params = ChatCompletionCreateParams . builder()
312
312
.addMessage(ChatCompletionMessageParam . ofChatCompletionUserMessageParam(
313
313
ChatCompletionUserMessageParam . builder()
314
- .role(ChatCompletionUserMessageParam . Role . USER )
315
314
.content(ChatCompletionUserMessageParam . Content . ofTextContent(" Who won the world series in 2020?" ))
316
315
.build()))
317
316
.model(" gpt-4o" )
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ public static void main(String[] args) {
33
33
ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
34
34
.addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
35
35
ChatCompletionUserMessageParam .builder ()
36
- .role (ChatCompletionUserMessageParam .Role .USER )
37
36
.content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
38
37
.build ()))
39
38
.model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ public static void main(String[] args) {
34
34
ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
35
35
.addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
36
36
ChatCompletionUserMessageParam .builder ()
37
- .role (ChatCompletionUserMessageParam .Role .USER )
38
37
.content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
39
38
.build ()))
40
39
.model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ public static void main(String[] args) {
39
39
ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
40
40
.addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
41
41
ChatCompletionUserMessageParam .builder ()
42
- .role (ChatCompletionUserMessageParam .Role .USER )
43
42
.content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
44
43
.build ()))
45
44
.model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ public static void main(String[] args) {
39
39
ChatCompletionCreateParams params = ChatCompletionCreateParams .builder ()
40
40
.addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
41
41
ChatCompletionUserMessageParam .builder ()
42
- .role (ChatCompletionUserMessageParam .Role .USER )
43
42
.content (ChatCompletionUserMessageParam .Content .ofTextContent ("Who won the world series in 2020?" ))
44
43
.build ()))
45
44
.model ("gpt-4o" )
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ public static void main(String[] args) {
15
15
.maxTokens (1024 )
16
16
.addMessage (ChatCompletionMessageParam .ofChatCompletionUserMessageParam (
17
17
ChatCompletionUserMessageParam .builder ()
18
- .role (ChatCompletionUserMessageParam .Role .USER )
19
18
.content (ChatCompletionUserMessageParam .Content .ofTextContent (
20
19
"Tell me a story about building the best SDK!" ))
21
20
.build ()))
You can’t perform that action at this time.
0 commit comments