Skip to content

Commit b888813

Browse files
authored
docs(chat): update function params builder code snippet (#208) [skip-ci]
1 parent e79b5ef commit b888813

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/ChatFunctionCall.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fun currentWeather(location: String, unit: String): String {
5353
Define the parameters for the function the model might call.
5454

5555
```kotlin
56-
val params = FunctionParameters.buildJson {
56+
val params = Parameters.buildJsonObject {
5757
put("type", "object")
5858
putJsonObject("properties") {
5959
putJsonObject("location") {
@@ -175,7 +175,7 @@ suspend fun main() {
175175
)
176176
)
177177

178-
val params = FunctionParameters.buildJson {
178+
val params = Parameters.buildJsonObject {
179179
put("type", "object")
180180
putJsonObject("properties") {
181181
putJsonObject("location") {
@@ -254,4 +254,4 @@ fun currentWeather(location: String, unit: String): String {
254254
}
255255
```
256256

257-
This completes the guide for executing a chat completion request with a function call. Happy coding!
257+
This completes the guide for executing a chat completion request with a function call. Happy coding!

0 commit comments

Comments
 (0)