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 f7c5747 commit c9e6509Copy full SHA for c9e6509
src/main/kotlin/com/javaaidev/openai/OpenAIChatModel.kt
@@ -100,7 +100,9 @@ class OpenAIChatModel(
100
)
101
.build()
102
}?.let {
103
- messageParamBuilder.toolCalls(it)
+ if (it.isNotEmpty()) {
104
+ messageParamBuilder.toolCalls(it)
105
+ }
106
}
107
paramsBuilder.addMessage(messageParamBuilder.build())
108
0 commit comments