Skip to content

Commit 4bf868a

Browse files
docs: remove or fix invalid readme examples
1 parent 4587737 commit 4bf868a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -772,11 +772,12 @@ To set a documented parameter or property to an undocumented or not yet supporte
772772

773773
```java
774774
import com.openai.core.JsonValue;
775+
import com.openai.models.ChatModel;
775776
import com.openai.models.chat.completions.ChatCompletionCreateParams;
776777

777778
ChatCompletionCreateParams params = ChatCompletionCreateParams.builder()
778-
.addUserMessage("Say this is a test")
779-
.model(JsonValue.from(42))
779+
.messages(JsonValue.from(42))
780+
.model(ChatModel.GPT_4_1)
780781
.build();
781782
```
782783

0 commit comments

Comments
 (0)