Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4308388

Browse files
fix: Implemented ChatResponseFormat Function
1 parent faae5f3 commit 4308388

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎build.gradle.kts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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") valtype: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)

AltStyle によって変換されたページ (->オリジナル) /