We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents faae5f3 + 4308388 commit 47c8de5Copy full SHA for 47c8de5
build.gradle.kts
@@ -1,7 +1,7 @@
1
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask
2
3
group = "com.cjcrafter"
4
-version = "2.1.0"
+version = "2.1.1"
5
6
plugins {
7
`java-library`
src/main/kotlin/com/cjcrafter/openai/chat/ChatResponseFormat.kt
@@ -2,10 +2,10 @@ package com.cjcrafter.openai.chat
import com.fasterxml.jackson.annotation.JsonProperty
-class ChatResponseFormat {
+class ChatResponseFormat(@JsonProperty("type") val type: Type = Type.TEXT) {
enum class Type {
8
- @JsonProperty("json")
+ @JsonProperty("json_object")
9
JSON,
10
@JsonProperty("text")
11
TEXT
0 commit comments