Skip to content

Commit 47c8de5

Browse files
authored
Merge pull request #51 from CoasterFreakDE/master
fix: Implemented ChatResponseFormat Function
2 parents faae5f3 + 4308388 commit 47c8de5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask
22

33
group = "com.cjcrafter"
4-
version = "2.1.0"
4+
version = "2.1.1"
55

66
plugins {
77
`java-library`

src/main/kotlin/com/cjcrafter/openai/chat/ChatResponseFormat.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package com.cjcrafter.openai.chat
22

33
import com.fasterxml.jackson.annotation.JsonProperty
44

5-
class ChatResponseFormat {
5+
class ChatResponseFormat(@JsonProperty("type") val type: Type = Type.TEXT) {
66

77
enum class Type {
8-
@JsonProperty("json")
8+
@JsonProperty("json_object")
99
JSON,
1010
@JsonProperty("text")
1111
TEXT

0 commit comments

Comments
 (0)