File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/kotlin/com/cjcrafter/openai Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import com.github.breadmoirai.githubreleaseplugin.GithubReleaseTask
2
2
3
3
group = " com.cjcrafter"
4
- version = " 1.3.1 "
4
+ version = " 1.3.2 "
5
5
6
6
plugins {
7
7
`java- library`
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ open class OpenAI @JvmOverloads constructor(
97
97
try {
98
98
val httpResponse = client.newCall(httpRequest).execute()
99
99
lateinit var response: CompletionResponse
100
- OpenAICallback (true , { throw it }) {
100
+ OpenAICallback (false , { throw it }) {
101
101
response = gson.fromJson(it, CompletionResponse ::class .java)
102
102
}.onResponse(httpResponse)
103
103
@@ -247,7 +247,7 @@ open class OpenAI @JvmOverloads constructor(
247
247
try {
248
248
val httpResponse = client.newCall(httpRequest).execute()
249
249
lateinit var response: ChatResponse
250
- OpenAICallback (true , { throw it }) {
250
+ OpenAICallback (false , { throw it }) {
251
251
response = gson.fromJson(it, ChatResponse ::class .java)
252
252
}.onResponse(httpResponse)
253
253
You can’t perform that action at this time.
0 commit comments