We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf7e961 commit fa9f7fcCopy full SHA for fa9f7fc
README.md
@@ -772,11 +772,12 @@ To set a documented parameter or property to an undocumented or not yet supporte
772
773
```java
774
import com.openai.core.JsonValue;
775
+import com.openai.models.ChatModel;
776
import com.openai.models.chat.completions.ChatCompletionCreateParams;
777
778
ChatCompletionCreateParams params = ChatCompletionCreateParams.builder()
- .addUserMessage("Say this is a test")
779
- .model(JsonValue.from(42))
+ .messages(JsonValue.from(42))
780
+ .model(ChatModel.GPT_4_1)
781
.build();
782
```
783
0 commit comments